[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-mailutils] Getting `mail' to use the right mailer
From: |
Sergey Poznyakoff |
Subject: |
Re: [bug-mailutils] Getting `mail' to use the right mailer |
Date: |
Thu, 08 Sep 2011 18:57:52 +0300 |
Ludovic Courtès <address@hidden> ha escrit:
> I'm trying to configure `mail' to use the right mailer. The `Mailer
> Statement' node in the manual appeared to be what I'm looking for, so
> I dropped this in ~/.mail:
>
> mailer {
> url sendmail:///var/run/current-system/sw/sbin/sendmail;
> }
That's right for all MU tools, except `mail'. It is so because it
traditionally uses its own configuration files (/etc/mail and
~/.mailrc), whose format is different. It is described in the docs
as well. What you need is to place
set sendmail="sendmail:///var/run/current-system/sw/sbin/sendmail"
in /etc/mailrc (or ~/.mailrc, at your option). Note absence of the
trailing semicolon (statements in mail config terminate with newlines).
I could have made `mail' parse MU-specific configs as well, but
I was afraid it would create unnecessary confusion.
Regards,
Sergey