[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Woody Sendmail: blacklist_recipients feature not working



On Tue, 21 Sep 2004, roy hills wrote:

> I'm running Debian Woody x86 on my mail server, and I'm using Sendmail 
> 8.12.3-6.6 as my MTA.
> 
> Normal mail delivery is working, but I can't get the "blacklist_recipients" 
> feature to work.  The relevant bit from my sendmail.mc is:
> 
> # Use the access map for blacklisting and relaying
> FEATURE(`access_db')dnl
> FEATURE(`blacklist_recipients')dnl
> 

Did you rebuilt the sendmail.cf file?
Did you restart sendmail?

> And my access file contains:
> 
> 127.0.0.1                               RELAY
> 192.168.124                             RELAY
> 192.168.120                             RELAY
> somestrangeuser@                        REJECT
> strangeperson@hotmail.com               REJECT
> To:root@                                REJECT

Why did you use "To:root@"? Should it not be "root@"?

> I convert this to access.db with "makemap hash access.db < access".

> 
> I find that normal sender-based access control is working, but 
> recipient-based
> is not despite the fact that I'm specifying "blacklist_recipients" in my 
> config:
> 
> # Connect to SMTP port
> $ telnet 192.168.124.1 25
> Trying 192.168.124.1...
> Connected to 192.168.124.1.
> Escape character is '^]'.
> 220 mercury ESMTP Ready
> HELO sailor
> 250 mercury.nta-monitor.com Hello vmware-host.demo.nta-monitor.com 
> [172.16.3.254], pleased to meet you
> 
> # Test sender rejection - works OK
> MAIL FROM: <root@test.com>
> 250 2.1.0 <root@test.com>... Sender ok
> RSET
> 250 2.0.0 Reset state
> MAIL FROM: <somestrangeuser@test.com>
> 550 5.7.1 <somestrangeuser@test.com>... Access denied
> RSET
> 250 2.0.0 Reset state
> MAIL FROM: <strangeperson@hotmail.com>
> 550 5.7.1 <strangeperson@hotmail.com>... Access denied
> RSET
> 250 2.0.0 Reset state
> 
> # Test recipient rejection - doesn't work
> MAIL FROM: <royhills@hotmail.com>
> 250 2.1.0 <royhills@hotmail.com>... Sender ok
> RCPT TO: <root@nta-monitor.com>
> 250 2.1.5 <root@nta-monitor.com>... Recipient ok

root@ is o.k because in your access.db you use:
 To:root@

> RCPT TO: <somestrangeuser@nta-monitor.com>
> 550 5.1.1 <somestrangeuser@nta-monitor.com>... User unknown

Trying to send to somestrangeuser@nta-monitor.com gives you error-message:
550 5.1.1 <somestrangeuser@nta-monitor.com>... User unknown

and it should be:
550 5.2.1 <somestrangeuser@nta-monitor.com>... Mailbox disabled for this recipient
If you send a email from e.g. mutt do you receive a returned email message
with the error message?

Oliver
-- 
... don't touch the bang bang fruit



Reply to: