This is a discussion on Re: Postfix bouncing<846a16d7-8ab7-4e6d-a788-d09c16170cc9@v4g2000hsf.googlegroups.com><0d362fae-8249-4f84-8e15-3d94e80666a3@b15g2000hsa.googlegroups.com> within the mailing.postfix.users forums, part of the Mail Servers and Related category; On 2007-11-30, ONYX <ivakras1@gmail.com> wrote: > smtpd_recipient_restrictions = ..., > ..., > check_sender_access regexp:/path/to/file_with_restrictions, &...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
On 2007-11-30, ONYX <ivakras1@gmail.com> wrote:
> smtpd_recipient_restrictions = ..., > ..., > check_sender_access regexp:/path/to/file_with_restrictions, > ... > > The file /path/to/file_with_restrictions must contain something like > that: > /^spamer@.*/ REJECT Drink a poison > /.*@spamer-domain.com$/ REJECT Drink a poison > /^good-sender@.*/ OK > /.*@good-domain.com/ OK You don't need regexp for that, hash will do: spamer@ REJECT Drink a poison spamer-domain.com REJECT Drink a poison good-sender@ OK good-domain.com OK > If you wish to use smtpd_sender_restrictions - use it without > check_sender_access: > > smtpd_sender_restrictions = ..., > ..., > regexp:/path/to/file_with_restrictions, > ... You can still use it with check_sender_access regexp:/path/to/file_with_restrictions -- Ralf Hildebrandt (i.A. des IT-Zentrums) Ralf.Hildebrandt@charite.de Charite - Universitätsmedizin Berlin Tel. +49 (0)30-450 570-155 Gemeinsame Einrichtung von FU- und HU-Berlin Fax. +49 (0)30-450 570-962 IT-Zentrum Standort CBF send no mail to plonk@charite.de |