Thanks, for reply. Yes, I use port 587, but I can not disable AUTH on port 25... I also have a unruly users...

Lubo M.
--
~~~~~~~~~~~~~~~~~~~~
http://LuMaX.acom.sk
~~~~~~~~~~~~~~~~~~~~

Dňa 2. 9. 2014 16:15 Noel Jones  wrote / napísal(a):
On 9/2/2014 9:01 AM, Lubomir Majersky wrote:
Thanks, I overlooked. So if I understand it, this should be:

smtpd_sasl_exceptions_networks = cidr: /path/to/file.CIDR

no space between map:file

           = cidr:/path/to/file.cidr



and the 'file.CIDR' contains:

! 195.98.0.0/19    OK
! 195.98.128.0/19    OK
! ...    OK
! ...    OK
! 212.26.160.0/19    OK
0.0.0.0/0            REJECT

Is that so?

Yes, that should work.

Ideally, you should get your users to use the submission port 587
rather than port 25.  Then you can disable AUTH on port 25, and use
your firewall to restrict access to the submission port 587.

Also consider using a policy service such as postfwd to rate-limit
your users.  That will limit the damage when an account is compromised.
http://www.postfix.org/SMTPD_POLICY_README.html
http://postfwd.org/


   -- Noel Jones

Reply via email to