Hiya,

You sir, are a genius!!

I think it was one of those situations where I'd been round in circles so
many times I lost track of what was going on, that and reading to many
examples from different sources. The server itself with Squirrelmail,
clamav and spamassassin took two hours to set up and it was only this that
had be stumped.

Thanks again for your help and patience,

All the best,

Julian PB



> j...@bordengrammar.kent.sch.uk 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:
>>
>> pup...@bordengrammar.kent.sch.uk       restricted_mail_lists
>>
>> and user_permissions in the form:
>>
>> st...@bordengrammar.kent.sch.uk         REJECT
>> pup...@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.
>>
>
> it's the other way around: user_permissions should contain the
> restricted senders, while restricted_maillists should contain the
restricted mailing lists.
>
>
>
>
>
>




Reply via email to