我已经在我的 Linux 服务器上安装了 ssmtp。Apache 服务器在 www-data 用户下工作,并从 ssmtp 发送邮件。在收到的电子邮件中,我在发件人姓名中看到 www-data。我怎样才能改变它?
这是我的配置:
/etc/ssmtp/ssmtp.conf
mailhub=smtp.gmx.com:587
hostname=mysite.com
FromLineOverride=YES
AuthUser=username@gmx.us
AuthPass=password
UseTLS=YES
UseSTARTTLS=YES
/etc/ssmtp/realiases
root:username@gmx.us
user:username@gmx.us
www-data:username@gmx.us