Commit Graph
100 Commits
Author SHA1 Message Date
Adam Cooke 9e91c75157 send the mail from and rcpt to on raw messages too 2017-06-14 09:59:09 +01:00
Adam Cooke 464bf21e2a fixes queue size script 2017-06-14 09:37:13 +01:00
Adam Cooke 126a59200a add script to return current queue size (for monitoring) 2017-06-14 09:30:23 +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 97f95fe831 only exclude asset gems if there are prebuilt assets 2017-06-02 12:47:20 +01:00
Adam Cooke 7178977ef5 export RAILS_GROUPS for precompiling assets 2017-06-02 12:45:39 +01:00
Adam Cooke adb3eccec4 require asset gems in development too 2017-06-02 12:44:35 +01:00
Adam Cooke 3fb4ac3804 require assets for precompilation of assets 2017-06-02 12:42:02 +01:00
Adam Cooke 477fb4b199 don't include assets when bundling 2017-06-02 12:14:02 +01:00
Adam Cooke 0f61c8bfa4 put asset gems in their own group 2017-06-02 12:12:27 +01:00
Adam Cooke fda0cfafc6 rename admin to advanced settings & add help text
closes #163
2017-06-02 12:11:19 +01:00
Adam Cooke 4e7cec443c ensure IP addresses are unique
fixes #165
2017-06-01 14:41:38 +01:00
Adam Cooke c3f71b0d2a don't use moonrope from repo 2017-06-01 14:26:58 +01:00
Adam Cooke ce90a1d4f5 don't use acme-client from the repo 2017-06-01 14:25:00 +01:00
Adam Cooke e443a3addb improvements to the auto upgrade script
* change how the channel is passed
* restart rather than stop/start when upgrading
* add safe mode for forcing a stop/start on upgrade
2017-06-01 14:07: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 96f190ae25 fixes style issue on error when no messages found 2017-05-30 15:16:01 +01:00
Adam Cooke 47d78b0725 rename the session from _deliver_session to _postal_session 2017-05-26 13:18:45 +01:00
Adam Cooke 1e62f9bd0e re-add postal signatures to outgoing http requests 2017-05-26 10:36:31 +01:00
Adam Cooke 7d2484d47f make sure nano & wget are installed on the quick install 2017-05-18 12:28:38 +01:00
Adam Cooke 3f8c52501b put postal version in footer 2017-05-18 12:25:28 +01:00
Adam Cooke 525fd8cc05 update ubuntu 16.04 script 2017-05-18 12:24:16 +01:00
Adam Cooke 2a5d8034ae pass the channel along with auto-upgrade 2017-05-18 12:23:41 +01:00
Adam Cooke 3485cd7229 update auto upgrade script to work with packages plus direct from repo 2017-05-18 12:08:04 +01:00
Adam Cooke 58a8b96611 don't compile assets on initialization if they already are built 2017-05-18 12:02:16 +01:00
Adam Cooke 0ef7d4c0e4 only compile assets on upgrade if they aren't prebuilt 2017-05-18 12:01:05 +01:00
Adam Cooke 965d9a7ec6 require fileutils 2017-05-18 11:51:33 +01:00
Adam Cooke 91de111946 use the log_root for the puma log redirection 2017-05-18 11:48:00 +01:00
Adam Cooke 73b4edd92e put rails logging through the app logger 2017-05-18 11:47:59 +01:00
Adam Cooke 76e1f6e9f7 update procodile logging to be outside of the app root 2017-05-18 11:45:43 +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
Adam Cooke bf35d207d6 fixes build script 2017-05-18 10:58:51 +01:00
Adam Cooke df72f5e2b9 upgrade nokogiri 2017-05-18 10:46:25 +01:00
Adam Cooke 734c8781c3 add a script to build & upload postal packages 2017-05-17 19:30:33 +01:00
Adam Cooke fde35add28 update version to include revision & channel 2017-05-17 19:25:48 +01:00
Adam Cooke cb0e3a4f4e support for a null send limit for unlimited
part of #144
2017-05-16 15:52:43 +01:00
Adam Cooke 8b7bcd9a6a remove some nbsp 2017-05-16 15:35:13 +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
Adam Cooke 9a76538f11 remove IP pool rules when deleting an IP pool 2017-05-15 10:43:44 +01:00
Adam Cooke d33994ce0f fixes bug with IP rules list
closes #136
2017-05-12 17:06:35 +01:00
Adam Cooke 5e13d7d052 hold incoming messages when in development mode
(not very dry but this unqueueing logic could do with some tidying)
2017-05-12 15:07:56 +01:00
Adam Cooke 9bea99e633 verify new users straight away
users who signup will have received a link to do so which means their address is already verified
2017-05-12 14:47:16 +01:00
Adam Cooke e9b03987fe only allow users with an invite to create accounts 2017-05-12 14:45:42 +01:00
Adam Cooke 5cd0e4dc04 add option to not provision databases for servers 2017-05-08 16:41:37 +01:00
Adam Cooke 87560c9edf only remove the global database if we actually made one 2017-05-08 16:40:20 +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 f023ff0bc1 don't check the dns on create if there already is a status 2017-05-08 16:38:29 +01:00
Adam Cooke 2bde75720c initial test suite 2017-05-08 14:48:15 +01:00
Adam Cooke 1758dc466a reset before pulling to avoid issues 2017-05-05 19:55:20 +01:00
Adam Cooke 88170af3cb add script for generating and publishing the api docs to github 2017-05-05 19:54:56 +01:00
Adam Cooke 553aedf031 name the authenticator 2017-05-05 19:54:52 +01:00
Adam Cooke dc44d1619a support for multiple bind addresses on the fast server 2017-05-05 14:24:04 +01:00
Adam Cooke bf2d26ca01 run an initial apt update to avoid potential issues 2017-05-05 12:59:33 +01:00
Adam Cooke 24048eda6b don't need iptables any longer 2017-05-05 12:59:23 +01:00
Adam Cooke 67f89ea196 remove a bracket 2017-05-05 12:56:33 +01:00
Adam Cooke 527f659886 quick install guide 2017-05-05 12:50:28 +01:00
Adam Cooke 9c1349a844 remove iptables and use setcap in ubuntu install script 2017-05-05 12:07:41 +01:00
Adam Cooke f75806b693 wording updates on the server limit page 2017-05-05 12:06:38 +01:00
Adam Cooke 0ee58b2b3e send limit email wording updates 2017-05-05 12:05:52 +01:00
Adam Cooke f7b1158199 leave nginx config as-is 2017-05-05 11:57:03 +01:00
Adam Cooke 308372d3fd update nginx config as it will need to know the IPs it can listen on to avoid conflict with the fast server 2017-05-05 11:54:39 +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 f9b6485f22 a little extra thing for iptables 2017-05-05 11:27:33 +01:00
Adam Cooke fa95a3a713 well obviously nginx can only happen after the app has been cloned 2017-05-05 11:24:12 +01:00
Adam Cooke bc65feff46 some tidying on ubuntu1604.sh 2017-05-05 11:18:16 +01:00
Adam Cooke 5d0b8eb16d add some docs to ubuntu install script 2017-05-05 11:15:10 +01:00
Adam Cooke 2a606320be add a script to install postal on ubuntu 16.04 2017-05-05 11:05:19 +01:00
Adam Cooke 608b73afd4 add an example password to postal.example.yml 2017-05-05 10:49:44 +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 a3fe4a548d add sender to the param list for the send/message API method 2017-05-04 13:10:00 +01:00
Adam Cooke 3e281b576e global domains aren't supported any longer 2017-05-04 13:04:48 +01:00
Adam Cooke 22e0dd27ae attempt to renew track certificates more frequently for a better experience 2017-05-04 12:38:06 +01:00
Adam Cooke 3ba0a72779 log errors from cert verification 2017-05-04 12:37:16 +01:00
Adam Cooke e7b88842ca logging on certificate verification & issuance
closes #94
2017-05-04 11:18:44 +01:00
Adam Cooke 7ca4e74bbe initial logging for LE registration
part of #94
2017-05-04 11:12:28 +01:00
Adam Cooke 49faf73e66 fixes bug on credentials list 2017-05-02 13:44:32 +01:00
Adam Cooke f6784238d3 a sad sad day in postal-land, no more puns. 2017-05-02 13:33:17 +01:00
Adam Cooke 73cca62b93 verify the initial user 2017-05-02 08:10:57 +01:00
Adam Cooke 6af6e58d88 remove wildcard validation on routes
closes #57
2017-04-30 19:26:10 +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 45fd472f76 configurable maximum delivery attempts
closes #59
2017-04-29 11:56:25 +01:00
Adam Cooke 3333a7baf3 add script for testing app SMTP connections 2017-04-28 17:09:39 +01:00
Adam Cooke 6fc82b2049 remove the initial seeds 2017-04-28 17:01:37 +01:00
Adam Cooke a1aa173c51 add script to create an initial admin user 2017-04-28 17:01:11 +01:00
Adam Cooke cc04a57cf7 upgrade moonrope 2017-04-28 16:50:33 +01:00
Adam Cooke ff4687c2f7 update favicon
closes #47
2017-04-28 16:46:42 +01:00