Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change sender name in ssmtp?

Tags:

email

smtp

ssmtp

I have installed ssmtp on my Linux server. Apache server works under www-data user, and send mail from ssmtp. In recieved emails I see www-data in sender name. How can I change it?

Here`s my configs:

/etc/ssmtp/ssmtp.conf

mailhub=smtp.gmx.com:587
hostname=mysite.com
FromLineOverride=YES
[email protected]
AuthPass=password
UseTLS=YES
UseSTARTTLS=YES

/etc/ssmtp/revaliases

root:[email protected]
user:[email protected]
www-data:[email protected]
like image 824
Artem Avatar asked Dec 14 '22 19:12

Artem


1 Answers

You could change the user finger information for user 'www-data', namelly the 'Full Name" finger parameter.

You may do so using Linux 'chfn' command:

chfn -f "Email Sender Name" www-data

What this does is setting/changing the real name for that user in the finger information (stored in the /etc/passwd file -cf chfn man page-).

Alternatively you could use the Linux 'usermod' command as follow (though Linux manual states this is normally modified using the chfn utility - cf user mod man page - ):

usermod -c "Email Sender Name" www-data

This worked for me.

like image 124
Yves Avatar answered Dec 26 '22 15:12

Yves