docker-mailserver/target
17Halbe 3b7fc5930c Introducing Postscreen (#799)
* Introduced Postscreen

cheaper, earlier and simpler blocking of zombies/spambots.
From http://postfix.cs.utah.edu/POSTSCREEN_README.html :
As a first layer, postscreen(8) blocks connections from zombies and other spambots that are responsible for about 90% of all spam. It is implemented as a single process to make this defense as cheap as possible.

Things we need to consider:

 - Do we need a whitelist/backlist file? (http://postfix.cs.utah.edu/postconf.5.html#postscreen_access_list)
   - Via introducing an optional config/postfix-access.cidr
   - The only permanent whitelisting I could imagine are monitoring services(which might (still?) behave weird/hastely) or blacklisting backup servers(since no traffic should be coming from them anyway)
 - Do we need deep inspections? They are desireable, but these tests are expensive: a good client must disconnect after it passes the test, before it can talk to a real Postfix SMTP server. Considered tests are:
   - postscreen_bare_newline_enable (http://postfix.cs.utah.edu/postconf.5.html#postscreen_bare_newline_action)
   - postscreen_non_smtp_command_enable (http://postfix.cs.utah.edu/postconf.5.html#postscreen_non_smtp_command_action)
   - postscreen_pipelining_enable (http://postfix.cs.utah.edu/postconf.5.html#postscreen_pipelining_action)
- Do we need to make the blacklisting via dnsblocking configurable? It's currently set and weighted as follows, where a score of 3 results in blocking, a score of -1 results in whitelisting:
   (*: adds the specified weight to the SMTP client's DNSBL score. Specify a negative number for whitelisting.)
   (http://postfix.cs.utah.edu/postconf.5.html#postscreen_dnsbl_sites)
   - zen.spamhaus.org*3
   - bl.mailspike.net
   - b.barracudacentral.org*2
   - bl.spameatingmonkey.net
   - bl.spamcop.net
   - dnsbl.sorbs.net
   - psbl.surriel.com
   - list.dnswl.org=127.0.[0..255].0*-2
   - list.dnswl.org=127.0.[0..255].1*-3
   - list.dnswl.org=127.0.[0..255].[2..3]*-4
- What to do when blacklisting? I currently set it to drop. We could
   - ignore: Ignore the failure of this test. Allow other tests to complete. Repeat this test the next time the client connects. This option is useful for testing and collecting statistics without blocking mail.
   - enforce: Allow other tests to complete. Reject attempts to deliver mail with a 550 SMTP reply, and log the helo/sender/recipient information. Repeat this test the next time the client connects.
   - drop: Drop the connection immediately with a 521 SMTP reply. Repeat this test the next time the client connects.

In the end I think we could drop postgrey support. Postscreen replaces postgrey in its entirety, while being more selective and not delaying mail. Especially if we consider using the deep inspection options of postscreen.

Hope that wasn't too much to read! ;)

* main.cf got misformatted..
Don't know how, should be ok now.

* fixed malformatted main.cf & repaired master.cf

* reenabled rbl stuff.. It's cached, therefore doesn't hurt

* fixed tests

* added tests, repaired tests, added info, introduced new Variable POSTSCREEN_ACTION, fixes
2018-02-04 21:31:08 +01:00
..
amavis/conf.d Improve the privacy of the client by removing sensitive details 2017-09-07 19:29:50 +02:00
bin Add newline to the end of the file 2017-09-10 09:52:22 +02:00
docker-configomat@e3e84ded29 Integrate docker-configomat for configuration parts of start-mailserver.sh #648 (#650) 2017-07-10 00:11:00 +02:00
dovecot Stretch backport (#813) 2018-02-04 21:27:47 +01:00
fail2ban debian stretch slim (#784) 2017-12-31 12:33:48 +01:00
fetchmail Implement fetchmail (#260) (#271) 2016-08-21 22:13:13 +02:00
opendkim Changed omitted headers for DKIM with mailtrain (#774) 2017-12-18 21:55:50 +01:00
opendmarc [opendmarc] Skip dmarc checks for email sent over authenticated sockets 2017-09-11 17:02:47 -07:00
postfix Introducing Postscreen (#799) 2018-02-04 21:31:08 +01:00
postgrey fixed postgrey inet parameter (#570) 2017-04-12 19:45:47 +02:00
supervisor Issue 747 (#748) 2017-10-18 07:43:30 +02:00
check-for-changes.sh fix arguments for [ command (#783) 2017-12-31 10:49:15 +01:00
fail2ban-wrapper.sh Issue 631 run services with supervisor (#676) 2017-08-07 17:39:40 +02:00
filebeat.yml.tmpl add ELK support (#331) 2016-09-29 22:52:05 +02:00
postfix-wrapper.sh Issue 631 run services with supervisor (#676) 2017-08-07 17:39:40 +02:00
start-mailserver.sh Introducing Postscreen (#799) 2018-02-04 21:31:08 +01:00