59 Commits

Author SHA1 Message Date
Petter Helset 67e37b0770 Configurable OpenSSL versions and ciphers (#387) 2017-12-05 11:25:42 +00:00
Petter Helset 83ada69662 Handle exception ETIMEDOUT in SMTP server (#384) 2017-12-05 11:21:57 +00:00
Petter Helset 93434bbb7e Configurable message size limit. Defaults to 14MB. (#383) 2017-12-05 11:21:23 +00:00
igerzog 0d88d79319 Fix peer verification (#336)
Fixes the problem with `SSL_connect returned=1 errno=0 state=error: certificate verify failed` and solves hostname mismatch when use ip address instead of hostname
2017-12-05 11:18:07 +00:00
Charlie Smurthwaite a63c62ba62 strip continuation of received headers 2017-08-10 02:06:32 +01:00
mackinra 2a9702ba47 Added option to strip incoming Received headers (#282) 2017-08-10 00:05:40 +01:00
Charlie Smurthwaite f1bee5644b allow auth login with inline username 2017-07-11 09:52:49 +01:00
Adam Cooke 9e91c75157 send the mail from and rcpt to on raw messages too 2017-06-14 09:59:09 +01:00
Charlie Smurthwaite 48863dd6f4 initiate garbage collection between each job in the worker 2017-06-08 10:15:59 +01:00
Adam Cooke 724a6405a5 don't check for untrusted relays on outgoing messages 2017-06-07 09:59:06 +01:00
Adam Cooke 9f9cdc6a47 don't log exceptions when something can't go to greylog 2017-06-02 17:59:26 +01:00
Adam Cooke 1547022b2a tidy greylog 2017-06-02 17:20:27 +01:00
Adam Cooke 83176e7361 only submit entries to greylog that apply to the current level 2017-06-02 17:18:19 +01:00
Adam Cooke 0177a7b8de autoload SMTPSender 2017-06-02 16:24:45 +01:00
Adam Cooke 6f29bc8d3f ensure all timestamps from the message DB go through a zone 2017-06-02 15:36:12 +01:00
Adam Cooke 6e009f16b9 use explicit autoloads rather than from paths 2017-06-02 15:29:54 +01:00
Adam Cooke 9f4568e81a callbacks for catching errors on the worker 2017-06-02 14:25:25 +01:00
Adam Cooke 42ba1bb9f2 configurable database pool sizes 2017-06-01 13:49:29 +01:00
Adam Cooke 132078f84f multi-threaded workers 2017-06-01 13:48:50 +01:00
Adam Cooke 26ca38c2e1 only update links if there's a message ID 2017-06-01 10:45:32 +01:00
Adam Cooke 1e62f9bd0e re-add postal signatures to outgoing http requests 2017-05-26 10:36:31 +01:00
Adam Cooke 965d9a7ec6 require fileutils 2017-05-18 11:51:33 +01:00
Adam Cooke b1048b6986 attempt to make the log directory if missing 2017-05-18 11:44:52 +01:00
Adam Cooke 90d534574d add a configurable log root 2017-05-18 11:41:02 +01:00
Charlie Smurthwaite 90075769e0 set state to welcomed after successful email
fixes #151
2017-05-17 22:20:06 +01:00
Charlie Smurthwaite dacddb4d8e don't forget credentials on rset, helo or ehlo
resolves:137
2017-05-17 22:16:01 +01:00
Adam Cooke fde35add28 update version to include revision & channel 2017-05-17 19:25:48 +01:00
Adam Cooke 36db40cfe7 fixes issue with query string parsing when a z exists
closes #127
2017-05-16 15:25:35 +01:00
Adam Cooke 4106ac6c7e fixes bug with receiving messages to the return path
treats all messages sent to the return path and any domain with the return path prefix the same
2017-05-16 14:49:56 +01:00
Charlie Smurthwaite 43a5bc4e94 remove comments from structured headers when looking for email addresses
Resolves #112
2017-05-10 12:26:43 +01:00
Charlie Smurthwaite 5a757e722a remove AUTH= paramater from "MAIL FROM" before processing 2017-05-10 11:47:13 +01:00
Adam Cooke eee01c9e15 a little more testing 2017-05-08 16:39:32 +01:00
Adam Cooke 61e3bad83f add method for cleaning the message database 2017-05-08 16:39:13 +01:00
Adam Cooke dc44d1619a support for multiple bind addresses on the fast server 2017-05-05 14:24:04 +01:00
Adam Cooke d4fd6b9925 By default, we will now listen directly on various ports [breaking]
This allows us to avoid messing around with changes to iptables and generally makes installation easier for everyone.

If you have an instance of postal before this, you will need to do a couple of things to ensure your installation continues to work.

1. You will need to specify a `fast_server.bind_address` in your postal.yml configuration file. This is the IP that you dedicated to the fast server.
2. You will need to allow Ruby to listen on privileged ports (sudo setcap 'cap_net_bind_service=+ep' /usr/bin/ruby2.3).
3. You will need to remove any iptables rules that you may have added previously to accomodate the older way of doing this.
2017-05-05 11:45:27 +01:00
Adam Cooke 010e8c0e58 add a default certificate for the fast server 2017-05-05 09:57:39 +01:00
Adam Cooke 913190bce4 rename AM_CONFIG_ROOT to POSTAL_CONFIG_ROOT 2017-05-05 09:50:49 +01:00
Adam Cooke 7ca4e74bbe initial logging for LE registration
part of #94
2017-05-04 11:12:28 +01:00
Charlie Smurthwaite b90632b525 replace epoll and threaded servers with single nio4r evented server 2017-05-02 13:07:03 +01:00
Adam Cooke 2be702fac3 make sure resolv is required before it is used everywhere
closes #67
2017-04-30 19:25:03 +01:00
Adam Cooke f779e45f45 move espect into Postal::MessageInspection 2017-04-29 12:38:40 +01:00
Adam Cooke a1aa173c51 add script to create an initial admin user 2017-04-28 17:01:11 +01:00
Adam Cooke 88974cee85 use standard config style for accessing relay properties 2017-04-28 16:27:51 +01:00
Adam Cooke 1adedc6343 support for smtp relay hosts 2017-04-28 16:26:59 +01:00
Adam Cooke 695bdf90f9 improvements to ip monitoring on worker 2017-04-28 16:09:39 +01:00
Adam Cooke 6d27787a2e don't bother looking up local IPs 2017-04-28 15:53:24 +01:00
Adam Cooke 1be135a5d9 fixes issue with ip addresses that don't have an ipv6 pair 2017-04-28 15:50:26 +01:00
Adam Cooke 488dffd04b don't generate self signed smtp certificates 2017-04-28 15:17:06 +01:00
Adam Cooke caacaa7f92 disable SMTP TLS by default and add custom paths for SMTP key/cert
TLS can be enabled by setting 'smtp_server.tls_enabled' to true.
2017-04-28 15:12:56 +01:00
Adam Cooke 4de6dc20e6 don't use localhost as the HELO on outgoing SMTP connections
It can be configured using `dns.helo_hostname` or will be set to `dns.smtp_server_hostname`

Related to #19
2017-04-27 09:49:53 +01:00