bug-mailutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding reply-to option to mailutils.conf instead of -r on command li


From: Simon Harrison
Subject: Re: Adding reply-to option to mailutils.conf instead of -r on command line
Date: Wed, 27 Oct 2021 08:45:16 +0100

On Wed, 27 Oct 2021 09:18:54 +0200
"Sergey Poznyakoff" <gray@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="info@simonh.uk"
> 
> See
> 
> https://mailutils.org/manual/html_node/Mail-Variables.html#return_002daddress
> 
> > So, I thought this would work fine:
> > 
> > address { 
> > email-addr info@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: mail@simonh.uk




reply via email to

[Prev in Thread] Current Thread [Next in Thread]