Postfix restriction problem

Discussion in 'Server Operation' started by gianni21, Nov 7, 2008.

  1. gianni21

    gianni21 New Member

    Hi i'm giovanni, i've a mailserver with postfix (relase 2001) and i've added an alias [email protected] that point to all the mailbox of my domain, so now i've a big problem, this alias is shooted by spammers and i want to restrict the policy and allows to use it only if the sender is logged on my domain. Well, i've find this official tutorial:
    /etc/postfix/main.cf:
    smtpd_recipient_restrictions =
    check_recipient_access hash:/etc/postfix/access

    /etc/postfix/access:
    [email protected]in permit_mynetworks,reject
    [email protected]name permit_mynetworks,reject
    --------
    so i've applied it to my config. files:

    /etc/postfix/main.cf:
    smtpd_recipient_restrictions =

    check_recipient_access hash:/etc/postfix/access

    /etc/postfix/access:
    [email protected] permit_mynetworks,reject
    ------
    so at the end i've given these command:
    postmap /etc/postfix/access
    postfix reload

    The result isn't good, when any mail client try to send an email the mail client software give a timeout and it's impossible to reach the addressee.
    When i clean up the access file and main.cf all returns like before...(the clients can send emails and everyone can send email at [email protected])
    maybe with this tutorial i've cancelled part of the default configuration and therefore doesn't it work ?
    Thanks a lot
     
  2. falko

    falko Super Moderator Howtoforge Staff

    Any errors in your mail log?

    Did you run
    Code:
    postmap /etc/postfix/access
    ?

    Can you try this in your main.cf?
    Code:
    smtpd_recipient_restrictions = reject_invalid_hostname, reject_unauth_pipelining, permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, check_recipient_access hash:/etc/postfix/access, permit
     
  3. gianni21

    gianni21 New Member

    yes i've run postmap /etc/postfix/access

    i'll try:
    smtpd_recipient_restrictions = reject_invalid_hostname, reject_unauth_pipelining, permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, check_recipient_access hash:/etc/postfix/access, permit

    but what does it means?
     

Share This Page