Re: Woody Sendmail: blacklist_recipients feature not working
From: Oliver Fuchs <firstname.lastname@example.org>
To: roy hills <email@example.com>
Subject: Re: Woody Sendmail: blacklist_recipients feature not working
Date: Wed, 22 Sep 2004 06:16:56 +0200
Did you rebuilt the sendmail.cf file?
Did you restart sendmail?
Yes, I re-ran sendmailconfig after making the change to the sendmail.mc
I ran "makemap" to update the access.db after changing the access file.
> And my access file contains:
> 127.0.0.1 RELAY
> 192.168.124 RELAY
> 192.168.120 RELAY
> somestrangeuser@ REJECT
> firstname.lastname@example.org REJECT
> To:root@ REJECT
Why did you use "To:root@"? Should it not be "root@"?
You can use the tags "To:", "From:" or "Connect:" on the LHS of the access
map to limit the matching to envelope rcpt, envelope from or connection
This is also covered in the latest bat book I think.
Anyway, I get the same problem even if I don't use the "To:" tag. For
example, if access contains:
Then, after running makemap, I get:
# Connect to SMTP port
rsh@vmware-host:~$ telnet 192.168.124.1 25
Connected to 192.168.124.1.
Escape character is '^]'.
220 mercury ESMTP Ready
250 mercury.nta-monitor.com Hello vmware-host.demo.nta-monitor.com
[172.16.3.254], pleased to meet you
# root sender is correctly blocked
MAIL FROM: <email@example.com>
550 5.7.1 <firstname.lastname@example.org>... Access denied
250 2.0.0 Reset state
# ... but root recipient is not blocked
MAIL FROM: <email@example.com>
250 2.1.0 <firstname.lastname@example.org>... Sender ok
RCPT TO: <email@example.com>
250 2.1.5 <firstname.lastname@example.org>... Recipient ok
221 2.0.0 mercury.nta-monitor.com closing connection
Connection closed by foreign host.
Use MSN Messenger to send music and pics to your friends