Re: smtp_sender_restrictions, how to exclude a user based on his username AND his ip

From: mouss (no email)
Date: Sun Mar 09 2008 - 19:29:38 EDT

  • Next message: (no name): "Re: Mail attachements truncated - again"

    AlxFrag wrote:
    > Hi,
    >
    > i've set up postfix so as users can send emails only when using their
    > real "from address".
    >
    > In main.cf i have:
    >
    > smtpd_recipient_restrictions=permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination
    >
    >
    > smtpd_sender_login_maps=ldap:/etc/postfix/local_recipients.cf,
    >
    > smtpd_sender_restrictions=permit_mynetworks,check_sender_access
    > hash:/etc/postfix/block_senders,hash:/etc/postfix/my_domains,reject_authenticated_sender_login_mismatch
    >
    >
    > smtpd_restriction_classes=verify_login
    >
    > verify_login=reject_sender_login_mismatch
    >
    >
    > When i want to exclude a user from these restrictions i edit the
    > "my_domain" file like following:
    >
    > myuser at domain1 DUNNO
    >
    > Now, i want to exclude a user not only based on his username but based
    > on his IP address too. This can be useful for a script that sends
    > emails, hosted in a web server outside my domain.
    >

    to whitelist an IP, use check_client_access. if you want to whitelist a
    (client IP, sender) pair, use restriction classes.
    >
    > Is this possible?
    >
    > Thanks in advance,
    >
    > Alex


  • Next message: (no name): "Re: Mail attachements truncated - again"





    Hosted Email Solutions

    Invaluement Anti-Spam DNSBLs



    Powered By FreeBSD   Powered By FreeBSD