We've got a Linux box on our internal network which has some perl
scripts which generates a bunch of emails.
On this box sendmail has MASQUERADE_AS set to our external domain
name. We also have defined LOCAL_RELAY to be our mail server. This
works fine most of the time in that bounce messages end up going to
the us...@ourdomain.com instead of the user on that box.
The one exception to this is if an invalid email address is put in the
To: header. For example someone typed
user.anotherdomain.com instead of us...@anotherdomain.com. The bounce
message for this problem goes to the mailbox of the user on the box
instead of us...@ourdomain.com
Is there another sendmail configuration that needs to be set to make
this happen or am I out of luck?
Thanks in advance.
If that doesn't work (but it should), although technically depreciated,
there used to be an "Errors-To:" header tht some sites may still recognize.
b/c we don't want to have to code this into every script that
generates email. We want this to apply to everything on that box.