Am Donnerstag, 2. Oktober 2003 15:30 schrieb Thomas Deutsch:
> Martin Fahrendorf wrote:
> > Am Donnerstag, 2. Oktober 2003 14:58 schrieb Thomas Deutsch:
> >>Hi
> >>
> >>How can I block a domain in my postfix.
> >>
> >>Exaple:
> >>
> >>I don't like to recieve mails from default.com.
> >>
> >>So where can I block default.com?
> >
> > Add to your smtpd_recipient_restrictions in main.cf the following line
> >
> >         check_sender_access regexp:/etc/postfix/unwanted_sender
> >
> > andd add to toe file unwanted_sender something like
> >
> > /[EMAIL PROTECTED]/   550 Not accepted sender address
>
> I've put this in the main.cf (On one line):
>
> smtpd_recipient_restrictions = check_sender_access
> regexp:/etc/postfix/unwanted_sender
>
> But postfix says in the syslog:
>
> Oct  2 15:25:26 homer postfix/smtpd[20850]: fatal: parameter
> "smtpd_recipient_restrictions": specify at least one working instance
> of: check_relay_domains, reject_unauth_destination, reject, defer or
> defer_if_permit
>
> Do you know where the problem is?

yes, you should add it to you current configuration. If you don't have a 
"smtpd_recipient_restrictions parameter set, see 
"postconf smtpd_recipient_restrictions"
for the default (comment out your current entry)

The default is 

smtpd_recipient_restrictions = permit_mynetworks,check_relay_domains

or that (depends on version of postfix I think)

smtpd_recipient_restrictions = permit_mynetworks,reject_unauth_destination

so add it to this and everything shout work.

Your settings should look like

smtpd_recipient_restrictions =
        permit_mynetworks
        check_sender_access regexp:/etc/postfix/unwanted_sender
        reject_unauth_destination

>
> greetings
>
> Thomas

Martin
-- 
------------------------------------------------------------
H E L I X Gesellschaft f�r Software & Engineering mbH
------------------------------------------------------------
Hanauer Landstrasse 52              Telefon (069) 4789 35-30
D-60314 Frankfurt am Main           Telefax (069) 4789 35-44
------------------------------------------------------------
http://www.helix-gmbh.net                [EMAIL PROTECTED]
------------------------------------------------------------

Attachment: pgp00000.pgp
Description: signature

Reply via email to