Hi all,
----------------------------------------------------------------
How I used to do things (the sendmail way)
----------------------------------------------------------------
In one of our old boxes where we run sendmail, we had a situation
where we have a domain created (e.g.
example-domain.co.uk) but the
client had his MX records outsourced to another company. Initially,
when our php scripts were sending emails to {whatever}@example-
domain.co.uk, all those emails would end up in the dead.letter file
cause the box was trying to find {whatever} in our own box.
After a little bit of fiddling, we found out that if we add the domain
name "
example-domain.co.uk" to the /etc/remotedomains file, sendmail
will properly send the email to the outside world and would not
deliver it (or try to deliver it) locally.