2) When the auto-response gets sent out, due to many systems requiring
reverse DNS lookup my domain name and machine name are duffernet and so
some auto-responses are bouncing.
The domain name is "joy.org.au" but sendmail sends them out as being from
"xxxxx(_at_)gateway(_dot_)joy(_dot_)org(_dot_)au" and when the recipient mail
server does a
reverse DNS lookup they bounce. How do I over come this?
There are two possibilities:
- use sendmail's -f flag (-> man sendmail) to change the envelope sender
or (prefered)
- assuming you run a recent version of sendmail (8.8.x; I believe
FreeBSD 2.2.5 comes with sendmail 8.8.7), configure sendmail to
masquerade for the domain. If the m4 config files are not on the
system, download the source distrib from www.sendmail.org, and
check out cf/README. You'll need something like
MASQUERADE_AS($m)
MASQUERADE_DOMAIN($m)
FEATURE(allmasquerade)
FEATURE(masquerade_envelope)
in your sendmail.mc file.