Quote:
Originally Posted by uxbod Sorry, not in-front of my server but are these variables available from the zmlocalconfig ? So please try :- Code: zmlocalconfig -s | grep -i postfix |
That command gets you the current postfix main.cf variables set via localconfig.xml of course, but what I am asking is how do we permanently set additional variables.
Not exactly sure what you mean by "not in-front of my server", but we find the first three variables effective against connections from mail servers performing "dictionary" attacks.
By "dictionary" attack, I mean where a remote server continuously connects to try to send email to a series of clearly guessed, but invalid, recipients (e.g. "john@, james@, kevin@, louis@, etc., etc.)
Sure, Postfix rejects the connection due to invalid recipient, but doing so requires repeated ldap lookups and also consumes an smtp connection for the duration.
When the above three main.cf variables are in place, Postfix just silently does not respond to the sending mail server for thirty seconds, giving legitimate email connections a better opportunity to get through, and reducing the resources used on the server.
In actual fact, Postfix does this by default anyway, but the default soft error limit is 10 and the default sleep time is 1 second.
So, we really aren't introducing any new Postfix behavior here; just "adjusting" somewhat already existing behavior.
And, it's not our idea; we gleaned it from the excellent No Starch Press book "The Book of Postfix".
Hope that helps!
All the best,
Mark