smtp_recipient_restrictions not uploaded

Discussion in 'Installation/Configuration' started by wp.rauchholz, Jan 2, 2011.

  1. wp.rauchholz

    wp.rauchholz New Member

    I added the following to main.cf

    smtpd_recipient_restrictions =
    reject_invalid_hostname,
    reject_non_fqdn_hostname,
    reject_non_fqdn_sender,
    reject_non_fqdn_recipient,
    reject_unknown_sender_domain,
    reject_unknown_recipient_domain,
    reject_unauth_pipelining,
    permit_mynetworks,
    reject_unauth_destination,
    reject_rbl_client zombie.dnsbl.sorbs.net,
    reject_rbl_client relays.ordb.org,
    reject_rbl_client opm.blitzed.org,
    reject_rbl_client list.dsbl.org,
    reject_rbl_client sbl.spamhaus.org,
    reject_rhsbl_sender dsn.rfc-ignorant.org
    permit

    I reload (postfix reload) and re-started postfix (/etc/inint.d/postfix reload), but the output of
    postconf -d smtpd_client_restrictions smtpd_helo_restrictions smtpd_sender_restrictions smtpd_delay_reject smtpd_recipient_restrictions

    is still

    smtpd_client_restrictions =
    smtpd_helo_restrictions =
    smtpd_sender_restrictions =
    smtpd_delay_reject = yes
    smtpd_recipient_restrictions = permit_mynetworks, reject_unauth_destination


    what am I doing wrong?
    I added these lines to the end of main.cf

    THanks for your help
     
  2. falko

    falko Super Moderator Howtoforge Staff

    Did you add it like this... (without whitespace)
    Code:
    smtpd_recipient_restrictions =
    reject_invalid_hostname,
    reject_non_fqdn_hostname,
    reject_non_fqdn_sender,
    reject_non_fqdn_recipient,
    reject_unknown_sender_domain,
    reject_unknown_recipient_domain,
    reject_unauth_pipelining,
    permit_mynetworks,
    reject_unauth_destination,
    reject_rbl_client zombie.dnsbl.sorbs.net,
    reject_rbl_client relays.ordb.org,
    reject_rbl_client opm.blitzed.org,
    reject_rbl_client list.dsbl.org,
    reject_rbl_client sbl.spamhaus.org,
    reject_rhsbl_sender dsn.rfc-ignorant.org
    permit
    ... or like this (with whitespace)?
    Code:
    smtpd_recipient_restrictions =
      reject_invalid_hostname,
      reject_non_fqdn_hostname,
      reject_non_fqdn_sender,
      reject_non_fqdn_recipient,
      reject_unknown_sender_domain,
      reject_unknown_recipient_domain,
      reject_unauth_pipelining,
      permit_mynetworks,
      reject_unauth_destination,
      reject_rbl_client zombie.dnsbl.sorbs.net,
      reject_rbl_client relays.ordb.org,
      reject_rbl_client opm.blitzed.org,
      reject_rbl_client list.dsbl.org,
      reject_rbl_client sbl.spamhaus.org,
      reject_rhsbl_sender dsn.rfc-ignorant.org
      permit
    You need whitespace in the lines following smtpd_recipient_restrictions = because otherwise Postfix doesn't know the lines belong to the smtpd_recipient_restrictions directive.
     
  3. wp.rauchholz

    wp.rauchholz New Member

    With white space. Anyhow, I had to stop working on the server for a few days. Will start again tonight. Hope I'll get it working
     

Share This Page