On Wed, 27 Oct 2021 09:18:54 +0200 "Sergey Poznyakoff" <g...@gnu.org.ua> wrote:
> Hi Simon, > > > If I need to send an email from home computer I have to remember to > > include the -r flag to use a proper domain instead of > > me@home-computer, which is quite annoying. > > Not necessarily. You can set the return-address variable in your > ~/.mailrc file, like that: > > set return-address="i...@simonh.uk" > > See > > https://mailutils.org/manual/html_node/Mail-Variables.html#return_002daddress > > > So, I thought this would work fine: > > > > address { > > email-addr i...@simonh.uk; > > email-domain "simonh.uk"; > > }; > > Quite right. That should give the same result. > > > But mail keeps being me@home-computer and going to spam. > > The most probable reason is that you edited wrong file. Run the > following command to see whether mail reads the proper file and > interprets it correctly: > > mail --config-lint --config-verbose > > Regards, > Sergey > Thanks Sergey. Of course, you're right. I was editing /etc/mailutils.conf instead of /usr/local/etc/mailutils.conf simon@computer:~$ mail --config-lint --config-verbose mail: opening configuration file /usr/local/etc/mailutils.conf mail: configuration file /usr/local/etc/mailutils.conf doesn't exist mail: opening configuration file /home/simon/.mail mail: configuration file /home/simon/.mail doesn't exist I'm now just using the ~/.mailrc option and it's working great. Thanks again. -- Web: https://simonh.uk Email: m...@simonh.uk