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). 

Without resorting to messy routing maps, is there easy (yes I am aware
I'm using sendmail!) way to do this?  I found one commercial milter
package that can do this, but the cost for such a simple program seems a
bit ridiculous.  I will probably end up writing my own special purpose
milter to do this.

One of the fun things about my current setup is that you can do SMTP-
AUTH against my kerberos server, without requiring any local (pam)
users.  If possible I'd like to keep real unix local users off the
system and just have the outer server check with the inner server (where
the local users are real unix users) to see if a user is valid, and
check against the alias table as well.

Any advice other than switching to qmail, exim, and postfix is welcome.
In the meantime I'll look at the milter solution some more.

By the way, the moment postfix supports the sendmail milter api I'll
switch to postfix without a second's hesitation.

thanks.

Michael


/*
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