Commit Graph

42 Commits

Author SHA1 Message Date
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
Adam Cooke 1f64c61105 add a defaults file containing all defaults for configuration options and tidy initial config 2017-04-27 09:35:57 +01:00
Adam Cooke 0f10481da0 ensure that we only try to log exceptions when raven is available 2017-04-26 20:54:50 +01:00
Adam Cooke 3d45a5d4f1 allow fast server to be disabled by removing it from the config file 2017-04-26 20:52:04 +01:00
Adam Cooke 2a029f94e5 add scirpt to return the default dkim record 2017-04-26 13:11:41 +01:00
Adam Cooke a06e9b27cd can't shift those any more, config returns a frozen array 2017-04-26 12:51:53 +01:00
Adam Cooke 50609a77cc update references to old certificates on smtp & fast server 2017-04-26 12:44:01 +01:00
Adam Cooke b27e5ed1f5 escape usernames & passwords when setting the DATABASE_URL 2017-04-26 11:41:05 +01:00
Adam Cooke 46daca9aa7 only allow organizations to be managed by admins 2017-04-21 10:18:24 +01:00
Adam Cooke 2fdba0ceb5 initial commit from appmail 2017-04-19 13:07:25 +01:00