I have a domain eyal.emu.id.au which can receive email to many users.
My server at home calls itself eyal.emu.id.au. As such, locally generated mail often goes
directly
to my spool at /var/spool/mail/
For example,
echo "from e7 cli to eyal(a)eyal.emu.id.au" | mail -s 'test'
eyal(a)eyal.emu.id.au
ends up locally, but
echo "from e7 cli to upstream smtp" | mail -s 'test'
eyal(a)UPSTREAM.SERVER.au
does get relayed, and ends up on my MX server.
The reason? When I am away from home I can access the MX server and read/fetch my email.
I cannot read local email on my home server.
I want this (spooling) to not happen, but have all mail relayed to my upstream SMTP server
which is the SMART_HOST
defined in sendmail.mc.
How can I force it?
--
Eyal Lebedinsky (fedora(a)eyal.emu.id.au)