Re: Testing the restrictions

From: Ralf Hildebrandt (no email)
Date: Tue Jul 01 2003 - 16:11:10 EDT


* Roelandts, Guy <>:

> Ralf advised me to use a syntax to write some restrictions on whom could send
> mail through a postfix system. I did test it but the check does not work, being new to
> Postfix I don't know if my syntax is correct.
>
> To re-call what I want to achieve is deny people to use mydomain.com in the Mail From:
> part if they are not in mynetworks. I tried :
>
> smtpd_recipient_restrictions =
> permit_mynetworks
> reject_unauth_destination
> check_sender_access hash:/etc/postfix/sender_access
> reject_unknown_sender_domain
> reject_non_fqdn_recipient
> permit

> and in the sender_access db I wrote :
>
> mydomain.com 554 mydomain.com from outside? Are you crazy

You must edit "/etc/postfix/sender_access" and then
"postmap /etc/postfix/sender_access"

> what am I doing wrong ?? How could I check if Postfix ever checks in
> the db?? Note that the reject_unknown_sender_domain does not work
> either ...

Show complete logs of a mail that should have been rejected.

-- 
Ralf Hildebrandt                                 
my current spamtrap                              
http://www.arschkrebs.de/postfix/                Tel. +49 (0)30-450 570-155
Radioactive cats have 18 half-lives.







Hosted Email Solutions

Invaluement Anti-Spam DNSBLs



Powered By FreeBSD   Powered By FreeBSD