i have a plugin regex_rcptto which returns any status you want. not as
nice as reading it from your actual user list, but it works well for
either blocking specific types of addresses (all numbers, etc), or for
allowing a small list. I have also found it useful to block in-house
mailing lists from being usable from outside.

its part of qplocal-

http://www.thebility.com/qplocal/

allan

On 9/9/07, Peter J. Holzer <[EMAIL PROTECTED]> wrote:
> 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"
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
>
> iD8DBQFG49wefZ+RkG8quy0RApwQAKCF90UX1G4xCMu5hClvSSb5ZeEcoACeI63k
> gTs3HZAAmY9jo8uRF7FTFK0=
> =ywFt
> -----END PGP SIGNATURE-----
>
>


-- 
"The truth is an offense, but not a sin"

Reply via email to