Preventing Spam with Postfix

Discussion in 'Installation/Configuration' started by CubAfull, Jul 19, 2008.

  1. CubAfull

    CubAfull Member HowtoForge Supporter

    Searching for good solution to prevent most of the spam i found this...

    Code:
    # vi /etc/postfix/main.cf
    Set/modify configuration as follows

    Code:
    disable_vrfy_command = yes
    smtpd_delay_reject = yes
    smtpd_helo_required = yes
    smtpd_helo_restrictions = permit_mynetworks,
         reject_non_fqdn_hostname,
         reject_invalid_hostname,
         permit
    smtpd_recipient_restrictions =
       permit_sasl_authenticated,
       reject_invalid_hostname,
       reject_non_fqdn_hostname,
       reject_non_fqdn_sender,
       reject_non_fqdn_recipient,
       reject_unknown_sender_domain,
       reject_unknown_recipient_domain,
       permit_mynetworks,
       reject_rbl_client list.dsbl.org,
       reject_rbl_client sbl.spamhaus.org,
       reject_rbl_client cbl.abuseat.org,
       reject_rbl_client dul.dnsbl.sorbs.net,
       permit
    smtpd_error_sleep_time = 1s
    smtpd_soft_error_limit = 10
    smtpd_hard_error_limit = 20
    It would be correct to add this setting to Postfix in Debian Etch (The Perfect Setup) + ISPConfig?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The above should work fine with ISPConfig too.
     
  3. bolero

    bolero New Member

    Some of this looks redundant and also belonging in another category to me. Compare with the Postfix documentation before use.
     

Share This Page