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

Re: Mailutils+nullmailer: sender full name



Op 17-10-2023 om 19:10 schreef Geert Stappers:
On Tue, Oct 17, 2023 at 05:43:55PM +0200, Gertjan Klein wrote:
I am configuring a new VPS, and decided to try nullmailer to send mail.
I don't want to receive mail on the VPS, I just want the mail the system
generates to end up in my mailbox elsewhere. This works, but the mail
from address looks like this: "gklein <gklein@parvos.nl>". This irks me.
My account has my full name configured;

Where exactly is the full name configured?

I meant the user account on that machine:

gklein@parvos:~$ cat /etc/passwd | grep gklein
gklein:x:1000:1000:Gertjan Klein,,,:/home/gklein:/bin/bash

|$ command -v mail
|/usr/bin/mail
|$ dpkg -S /usr/bin/mail
|dpkg-query: no path found matching pattern /usr/bin/mail
|$ ls -l /usr/bin/mail
|lrwxrwxrwx 1 root root 22 Oct 12  2012 /usr/bin/mail -> /etc/alternatives/mail
|$ ls -l /etc/alternatives/mail
|lrwxrwxrwx 1 root root 18 Oct 12  2012 /etc/alternatives/mail -> /usr/bin/bsd-mailx
|$ ls -l /usr/bin/bsd-mailx
|-rwxr-xr-x 1 root root 112968 Apr 14  2022 /usr/bin/bsd-mailx
|$ dpkg -S /usr/bin/bsd-mailx
|bsd-mailx: /usr/bin/bsd-mailx
|$

Did it help?

That shows that your mail executable is actually bsd-mailx. If you also use nullmailer, that means mailutils is the culprit here:

gklein@parvos:~$ command -v mail
/usr/bin/mail
gklein@parvos:~$ ls -l /usr/bin/mail
lrwxrwxrwx 1 root root 22 Mar 3 2023 /usr/bin/mail -> /etc/alternatives/mail
gklein@parvos:~$ ls -l /etc/alternatives/mail
lrwxrwxrwx 1 root root 23 Mar 3 2023 /etc/alternatives/mail -> /usr/bin/mail.mailutils

My mail is from package mailutils, as described, and it doesn't (by default) appear to use the full name from /etc/passwd. I had expected this to 'just work', seeing as "Mailutils is a swiss army knife of electronic mail handling". I can, of course, switch to a different MTA. But it's difficult for me to believe this can't be done with this 'Swiss army knife'.

Kind regards,
Gertjan.


Reply to: