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 > [EMAIL PROTECTED] 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: <[EMAIL PROTECTED]> > 250 2.1.0 <[EMAIL PROTECTED]>... Sender ok > RSET > 250 2.0.0 Reset state > MAIL FROM: <[EMAIL PROTECTED]> > 550 5.7.1 <[EMAIL PROTECTED]>... Access denied > RSET > 250 2.0.0 Reset state > MAIL FROM: <[EMAIL PROTECTED]> > 550 5.7.1 <[EMAIL PROTECTED]>... Access denied > RSET > 250 2.0.0 Reset state > > # Test recipient rejection - doesn't work > MAIL FROM: <[EMAIL PROTECTED]> > 250 2.1.0 <[EMAIL PROTECTED]>... Sender ok > RCPT TO: <[EMAIL PROTECTED]> > 250 2.1.5 <[EMAIL PROTECTED]>... Recipient ok root@ is o.k because in your access.db you use: To:root@ > RCPT TO: <[EMAIL PROTECTED]> > 550 5.1.1 <[EMAIL PROTECTED]>... User unknown Trying to send to [EMAIL PROTECTED] gives you error-message: 550 5.1.1 <[EMAIL PROTECTED]>... User unknown and it should be: 550 5.2.1 <[EMAIL PROTECTED]>... 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 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]