使用 ssmtp 从多个电子邮件帐户(针对不同域)发送邮件

使用 ssmtp 从多个电子邮件帐户(针对不同域)发送邮件

我在 ubuntu-nginx vps 服务器的公共 html 文件夹中托管多个域。我目前已将 ssmtp.conf 文件设置为从其中一个域(例如 example1)成功发送邮件。

是否有任何方法可以对 ssmtp.conf 文件进行一些修改,以便也可以从属于其他域的电子邮件帐户发送邮件?例如,example2.com。

提前致谢。

我当前的 ssmtp.conf 文件如下所示:


#
# Config file for sSMTP sendmail
#
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
[email protected]

# The place where the mail goes. The actual machine name is required no 
# MX records are consulted. Commonly mailhosts are named mail.domain.com
mailhub=smtp.example1.com:25

# Where will the mail seem to come from?
rewriteDomain=example1.com

# The full hostname
hostname=example1.com

# Are users allowed to set their own From: address?
# YES - Allow the user to specify their own From: address
# NO - Use the system generated From: address
FromLineOverride=YES

[email protected]
[email protected]

相关内容