I'm setting up sendmail on a machine with hostname 'foo', and FQDN 'foo.example.com'. My /etc/aliases
contains
webmaster: me
me: me@somewhere-else.com
If I now try to send a test email, from 'foo', to 'webmaster', I find that:
To: webmaster@example.com
fails (the log output shows that sendmail does not attempt to do an aliases look-up)To: webmaster@foo.example.com
succeeds (the email arrives at 'me@somewhere-else.com')To: webmaster
succeeds (sendmail expands this to 'webmaster@foo.example.com', and does a lookup)
Is there some setting in sendmail.mc that will let me use form 1, ie. the alias without the hostname?