|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
jpb
bordengrammar.kent.sch.uk
Date: Wed Mar 11 2009 - 11:37:43 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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:
pupil1
bordengrammar.kent.sch.uk restricted_mail_lists
and user_permissions in the form:
staff
bordengrammar.kent.sch.uk REJECT
pupils
bordengrammar.kent.sch.uk 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.
Thanks,
Julian PB
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]