Larry Guest wrote: > I would like to filter mail and bounce anything that is not for a local > user.
sendmail should be able to do this for you on its own. What do you mean by "local users"? > I assume I will have to setup a file on the server and list all the > valid users in this file. There are only about 50 at the most so this > is not a problem. > > Any ideas? If you're using what I've come to see as a "standard" sendmail setup, mail received for domains considered "local" to that machine are checked at SMTP RCPT time to see if there is an entry in the system password file. If so, the recipient is accepted; if not, the recipient is rejected. If your "local" users don't have accounts in the main password file, then yes, you'll have to put together a system of some kind to identify valid recipients. For domain hosting, I set up a pair of hash databases that contain valid local domains and users. In MD's filter_recipient() I check the user hash to see whether it's a valid recipient or not. (I do other checks later based on the domain hash IIRC; it's been a while since I looked at it and it hasn't broken since I got it fully working. <g>) You'll have to tell MD to make the call into the filter_recipient() routine with the (IIRC) -R switch - check the manpage to make sure. -kgd -- "Sendmail administration is not black magic. There are legitimate technical reasons why it requires the sacrificing of a live chicken." - Unknown _______________________________________________ Visit http://www.mimedefang.org and http://www.canit.ca MIMEDefang mailing list [EMAIL PROTECTED] http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

