Bre*_*nt 10 postfix configuration
我正在设置一个 linux 服务器,我想独立于我们的主邮件服务器(即直接)发送邮件。问题是,当我将邮件发送到外部地址时,它会以发件人地址的邮件域不存在退回。(它以 root@domain.local 的身份发送邮件)
更改电子邮件发件人域的正确方法是什么?
Dav*_*ger 11
在 main.cf 中:
# SENDING MAIL
#
# The myorigin parameter specifies the domain that locally-posted
# mail appears to come from. The default is to append $myhostname,
# which is fine for small sites. If you run a domain with multiple
# machines, you should (1) change this to $mydomain and (2) set up
# a domain-wide alias database that aliases each user to
# user@that.users.mailhost.
#
# For the sake of consistency between sender and recipient addresses,
# myorigin also specifies the default domain name that is appended
# to recipient addresses that have no @domain part.
#
#myorigin = $mydomain
myorigin = $myhostname
Run Code Online (Sandbox Code Playgroud)
这是默认设置。如果您hostname
是 domain.local,这可能就是您将其视为发件人域的原因。
归档时间: |
|
查看次数: |
71116 次 |
最近记录: |