Re: Blocking certain users from sending to certain internal mail addresses

From: mouss (no email)
Date: Thu Mar 12 2009 - 03:01:32 EDT

  • Next message: mouss: "Re: DNS setting"

     a écrit :
    > Hi List,
    >
    > I have Postfix 2.3.3 with amavis-new, spamassassin and clamav and am
    > trying to block a group of users from sending to two internal maillists
    > called staff and pupils.
    >
    > I have two files, restricted_maillists which is in the format:
    >
    > restricted_mail_lists
    >
    > and user_permissions in the form:
    >
    > REJECT
    > REJECT
    >
    >
    > I've hashed these, put them in a folder called rules in /etc/postfix and
    > added them to main.cf as:
    >
    > smtpd_recipient_restrictions = check_recipient_access
    > hash:/etc/postfix/rules/restricted_maillists,permit_mynetworks,reject_unauth_destination
    >
    > smtpd_restriction_classes = restricted_mail_lists
    >
    > restricted_mail_lists = check_sender_access
    > hash:/etc/postfix/rules/user_permissions,reject_unauth_destination
    >
    > Without the last reject line entries, it complains about not having a
    > legitimate entry in the restrictions list and with it, users in the banned
    > list can send mail to the lists. Can anyone give me a poke in the right
    > direction please as I've been going at this all day.
    >

    it's the other way around: user_permissions should contain the
    restricted senders, while restricted_maillists should contain the
    restricted mailing lists.


  • Next message: mouss: "Re: DNS setting"





    Hosted Email Solutions

    Invaluement Anti-Spam DNSBLs



    Powered By FreeBSD   Powered By FreeBSD