我正在尝试将从主机发送到根的电子邮件转发到地址[email protected]
。
我已经检查过别名文件是否正在被读取:
[root@localhost etc]# sendmail -d27.2 -bv root
alias(root)
root (, root) aliased to [email protected]
self_reference([email protected])
...no self ref
[email protected]... deliverable: mailer relay, host smtp.test.com, user [email protected]
但电子邮件仍被发送至[email protected]
:
[root@localhost etc]# (echo Subject: test; echo) | sendmail -v root
root... Connecting to smtp.test.com. via relay...
220 smtp.test.com ESMTP
EHLO localhost.test.com
250-smtp.test.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
STARTTLS
220 2.0.0 Ready to start TLS
EHLO localhost.test.com
250-smtp.test.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
MAIL From:[email protected] SIZE=15
250 2.1.0 Ok
RCPT To:[email protected]
DATA
250 2.1.5 Ok
354 End data with <CR><LF>.<CR><LF>
.
250 2.0.0 Ok: queued as F381570F1
root... Sent (Ok: queued as F381570F1)
Closing connection to smtp.test.com
QUIT
221 2.0.0 Bye
也许有人知道问题是什么?
答案1
Sendmail(由 sendmail.org 提供)应用别名后递送至位于 监听的本地 sendmail 守护进程127.0.0.1:25
。
您是否检查过该消息在日志文件或收件人邮箱中的传送位置?