On Sun, May 05, 2002 at 04:28:35PM +0300, Mike Jackson wrote: > Hi, > I keep getting incoming spam for a nonexistant address, which in turn > means lots of double-bounces for postmaster. I would like to stop this, > so I tried using control/badrcptto with one address per line. I stopped > and started all qmail services, just to make sure that the file got > read. I sent mail to the address that I had listed in the file, and I > got: > > Sorry,_no_mailbox_here_by_that_name._(#5.1.1)/ > > Looking at qmail-smtpd.c , I am expecting that I should have received: > > "553 sorry, mail to that recipient is not accepted on this system > (#5.7.1) > > Version is qmail-ldap-20011001a . Am I doing something wrong or is this > a known bug? > I just can tell that with the newest version of qmail-smtpd it does work. qmail/control> cat badrcptto [EMAIL PROTECTED]
telnet diehard.n-r-g.com 110 220 diehard.n-r-g.com ESMTP helo dude 250 diehard.n-r-g.com mail from:<[EMAIL PROTECTED]> 250 ok rcpt to:<[EMAIL PROTECTED]> 553 sorry, mail to that recipient is not accepted (#5.7.1) quit It is just so that in the last few weeks a lot has changed in qmail-smtpd.c and the badrcptto was no exception. Just two tips: 1. check the name of the ~control file, is it badrcptto (I once did a typo in one of those files and I took quite long to realize the error). 2. if you are sending form a relay client (RELAYCLIENT set) no badrcptto check is done. -- :wq Claudio
