On 2007-09-09 04:57:44 -0500, Tim Tsai wrote: > I have been playing with qpsmtpd in more unusual configurations on > personal domains belonging to myself and some friends. I noticed > recently that one of the domains has been getting 30-40 spams per SECOND > to invalid mailboxes. I am guessing this is from having run qmail > before, where qmail-smtpd always accepted an incoming message and if > spammers don't check for bounces, will always assume a valid mailbox > (one of the main reasons I switched to postfix + qpsmtpd). > > Anyway, this particular configuration also runs postfixadmin, a virtual > mailbox manager based on MySQL. That is only relevant in that user > lookups is somewhat expensive due to SQL query so I would prefer to > minimize that. > > I was using qpsmtpd as a proxy using smtp-forward [...] > Next, I tried postfix-queue [...]
The queuing plugins are called only when the mail has been accepted
which is too late for what you are trying to do. You need a plugin which
runs in the rcpt_hook and checks whether the recipient exists, either by
checking in a local file , or via an SMTP callout or by looking into the
MySQL database.
Unfortunately, no such plugin is in the default distribution. I know of
at least three plugins which look in local files (check_validrcptto,
check_validrcptto_cdb, and my own aliases_check), and a number of
plugins which use various database schemas. Nobody seems to have written
a generic SMTP callout plugin yet.
hp
--
_ | Peter J. Holzer | I know I'd be respectful of a pirate
|_|_) | Sysadmin WSR | with an emu on his shoulder.
| | | [EMAIL PROTECTED] |
__/ | http://www.hjp.at/ | -- Sam in "Freefall"
signature.asc
Description: Digital signature
