On Sun, 2006-02-19 at 16:42, Peter J. Holzer wrote: > > you can put: > > To:[EMAIL PROTECTED] ERROR:550 user unknown > > in the access database on the outside machine to bounce > > it without going any farther. > > Explicitely enumerating the mail addresses which don't exist instead of > those which do seems to be a rather weird way of doing things but you > can do that in qpsmtpd with the badrcptto plugin.
> Generally you would check if the user exists. There are a number of > plugins to do that: goodrcptto and my aliases_* plugins for those who > prefer plain text files, plugins which do LDAP, finger or SQL lookups > for those who prefer to keep their user database on a central host. I guess a better example would have been a user whose account needs to remain active for a while but should no longer receive mail. I just wanted to show the header matching capability (To: is actually a special case) and the ability to return a custom error response in case people hadn't used sendmail recently. The more common use of the access db is to specify networks allowed to relay and to blacklist certain senders by IP, domain or email address. Anyway the point was just that while you can do that kind of stuff in the mimedefang/milter code you also have the option to use the stock sendmail features if it is more convenient. -- Les Mikesell [EMAIL PROTECTED]