Well I solved / answered my own issue. Solution = "Use the source Luke".
I had a look at qmail-smtp.c and did this...
1117c1117
< {
---
> if (addrlocals()) {
1118a1119
> logline(4,"recipient verify, recipient is local");
1137c1138
< }
---
> } /* else this is relaying, don't do anything */
simply removed the portion that limited it to just local recipients. Of
course this would not be a distributable way to fix this issue as 99% of
everyone out there would want rcptcheck to only check local recipients.
Perhaps add a env var for GLOBALRCPTCHECK or something, would be pretty
easy to add.
On Sun, 2005-01-16 at 18:27, Entelin wrote:
> This is a followup to the other rcptcheck email I sent. I setup my
> system and tried it out, heres how the mailflow works.
>
> qmail-smtpd port 25 -> dspampd 127.0.0.1:2525 -> (different)qmail-smtpd
> 127.0.0.1:2526 -> remote server
>
> that works via the smtproutes control file, locals is blank, rcpthosts
> has the domains that I will accept for. RCPTHOSTS is set for the first
> qmail-smtpd. dspampd is a smtp proxy that trains dspam.
>
> If I send to an address that would get routed all the way through the
> system to the outside world it skips the rcptcheck. If I put say
> "domain.tld" in locals on the first and try to send mail to a bogus
> address on that domain it works.
>
> The issue as I mentioned before is that dspampd makes a new dspam user
> for the recipient of the mail, so unless the usernames are proper I
> would get hundreds of thousands of dspam users.
>
> ex: with domain.tld in locals
>
> telnet 127.0.0.1 25
> Trying 127.0.0.1...
> Connected to 127.0.0.1.
> Escape character is '^]'.
> 220 mx1.domain.tld ESMTP
> helo
> 250 mx1.domain.tld
> mail from:me
> 250 ok
> rcpt to:[EMAIL PROTECTED]
> 554 Sorry, no mailbox here by that name. (#5.1.1)
> quit
> 221 mx1.domain.tld Goodbye.
>
>
> mx1:/var/qmail/control# telnet 127.0.0.1 25
> Trying 127.0.0.1...
> Connected to 127.0.0.1.
> Escape character is '^]'.
> 220 mx1.domain.tld ESMTP
> helo
> 250 mx1.domain.tld
> mail from:me
> 250 ok
> rcpt to:[EMAIL PROTECTED]
> 250 ok
> quit
> 221 mx1.domain.tld Goodbye
>
>
> Any idea how I can get it to check the recipents for all messages?
>
> Thanks.