[plug] controlling GNU mail sender address

James Henstridge james at jamesh.id.au
Mon Oct 19 09:57:29 UTC 2015


On 16 October 2015 at 22:11, Gregory Orange <home at oranges.id.au> wrote:
> Hi all,
>
> Since I moved from a Mythbuntu 12.04 to a new Mythbuntu 14.04 machine,
> mail hasn't worked quite the same. Sending mail with...
>
> echo "some body" | mail -s "some subject" recipient at recipient.example.com
>
> ... used to work, with default sender address being user at mydomain.com.
> It doesn't work on the new server, because default sender address is
> user at machine.mydomain.com and upstream MX rightly complains that the
> domain is invalid.
>
> I can make it work with:
> echo "some body" | mail -r "user at mydomain.com" -s "some subject"
> recipient at recipient.example.com
>
> I would like to make it work with configuration instead of a command
> line argument. http://mailutils.org/manual/mailutils.html#SEC107 says
> I can edit /etc/mail.rc or ~/.mailrc but I can't figure out what
> settings to enter.
>
> Can anyone here help me, or point me toward somewhere I can get help?

Ubuntu (so presumably also Mythbuntu) follows the Debian /etc/mailname
policy here:

https://wiki.debian.org/EtcMailName

So if you create a /etc/mailname file containing the mail domain you
want, it should be respected by the MTA.

James.


More information about the plug mailing list