[wellylug] Setting /etc/mailname

David Antliff david.antliff at gmail.com
Tue Sep 5 10:39:33 NZST 2006


When I do something like this:

$ echo "test" | mail david at localhost

I get an email in my local mailbox as I'd expect however the 'sender' is 
formed as 'david at ihug.co.nz', which is incorrect because the domain name 
is unrelated to the local usernames.

Something (mailx, postfix?) appears to get this domain from /etc/mailname.

If I leave this file blank, mail fails to send. Also, multiple people 
send mail from this host with different 'sender' domains, so one won't 
fit all. Does anyone know how to handle this properly? Should I just set 
it to the name of my host, or perhaps just 'localnetwork'?

-- 
David.




More information about the wellylug mailing list