On Wed, 2006-05-24 at 12:19 -0600, Lonnie Olson wrote:
> On May 23, 2006, at 8:06 PM, Michael Torrie wrote:
> 
> > I need to configure Sendmail such that it only accepts mail for local
> > users (local to the box that it is running on), deals with aliases,  
> > and
> > then forwards all mail to another server.  Currently it is working  
> > with
> > the "MAIL_HUB" directive, but that happily accepts all mail, even for
> > non-existent users, and sends it to the hub where bad mail is then
> > bounced.  This is a problem, though, as spam won't have a legitimate
> > from address and thus the bounce will just hang in the queue and
> > otherwise cause issues.  I'd rather the connecting server just be told
> > the user is invalid and cut it off (saves bandwidth).
> 
> While this is quite hacktastic, it would do what you are describing.
> It will also enable you to do even more complex filtering as well.
> 
> http://www.technoids.org/procmailfilter.html

Yeah it is quite a hack.  Useful, though.  In my case it isn't desirable
as it requires all e-mail to be accepted before it can be filtered.  I
can already do that with my current config.

I've found a cool little project at
http://www.bmsi.com/python/milter.html that allows building slick python
milters with just a few lines of code.  I think I could hack together a
simple script to check incoming "rcpt to:" lines and ask the inside mail
server if they are valid.

Michael


> 
> --lonnie
> 
> /*
> PLUG: http://plug.org, #utah on irc.freenode.net
> Unsubscribe: http://plug.org/mailman/options/plug
> Don't fear the penguin.
> */


/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/

Reply via email to