[BUGS] Sendmail relaying based on recipient

Jerahmy Pocott jerahmy at me.com
Thu Feb 6 01:18:43 EST 2014


Hello everyone, the list awfully quite these days..

Any way I used to know how to achieve this, but I'v forgotten exactly how it's done. I want to
have sendmail decide how to deliver messages for a domain based on the recipient address.
Some addresses should be delivered locally while others are forwarded to another relay.

So for example bob at domain, joe at domain and fred at domain should be delivered to some
local users while all other @domain should go to estmp:domain.relay.

I know you can do it using LDAP, but that is overkill. I recall doing it using the
LOCAL_USER(_FILE) directive I think, where you DON'T list the domain in local-host-names
and instead list the full user addresses in the LOCAL_USER_FILE. Then they should get
processed via the normal virtualusertable entries while everything else gets picked up by
the mailertable entries..

Is this sounding correct? Any input would be appreciated =D

Cheers!
J.


More information about the BUGS mailing list