Is there a sendmail option or method for forwarding mail for unknown users to a different host? I have to do this without forwarding everyones mail to this other host.
The way I do this is to get fetchmail to deliver using the these options in .fetchmailrc:
set postmaster "admin@otherbox.mydomain.com"
with envelope "x-delivered-to"
localdomains mydomain.com
user USERNAME, with password PASSWORD, to * here
This will deliver mail to an account of the same name i.e. mail received for joe@mydomain.com will be delivered to local mailbox for user joe.
create sendmail aliases to handle unfriendly names, or mail that want to be trapped. i.e.
Tech: joe
support: dave
Any other mail to *@mydomain.com where an account, or an alias does not exist, will be sent by default to the account you specify as postmaster in .fetchmailrc.
admin@othermachine.mydomin.com
Hey presto! Mail for unknown user is sent to another machine.
Regards,
JayBot "Always know what you say, but don't always say what you know!"
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.