sendmail可以使用mailutils转发传入的邮件吗?

sendmail可以使用mailutils转发传入的邮件吗?

我正在使用 sendmail 和 mailutils。

我可以使用 mailutils 发送外发邮件。

我可以使用 sendmail 接收传入我的域的邮件。

但是,当我尝试使用 /etc/mail/aliases 将电子邮件转发到不起作用的外部电子邮件地址时。

我也无法使用 sendmail 发送外发邮件。它不会给出任何错误,但电子邮件永远不会发送。它会排队并且永远不会被发送。我的邮件日志如下:

Nov 10 22:27:38 localhost sendmail[159282]: 0AAMRbLo159282: from=root@localhost, size=2141, class=0, nrcpts=1, msgid=<[email protected]>, relay=root@localhost
Nov 10 22:27:38 localhost sm-mta[159286]: 0AAMRckL159286: from=<[email protected]>, size=2364, class=0, nrcpts=1, msgid=<[email protected]>, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
Nov 10 22:27:38 localhost sendmail[159282]: 0AAMRbLo159282: [email protected], ctladdr=root@localhost (0/0), delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=32141, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (0AAMRckL159286 Message accepted for delivery)
Nov 10 22:27:38 localhost sm-mta[159288]: STARTTLS=client, relay=aspmx.l.google.com., version=TLSv1.3, verify=FAIL, cipher=TLS_AES_256_GCM_SHA384, bits=256/256
Nov 10 22:27:38 localhost sm-mta[159288]: 0AAMRckL159286: to=<[email protected]>, ctladdr=<[email protected]> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=122364, relay=aspmx.l.google.com. [74.125.71.26], dsn=2.0.0, stat=Sent (OK  1605047258 r7si170039wrs.226 - gsmtp)

verify=FAIL它在 STARTTLS 行中说。我需要更改什么才能让我的 sendmail 转发电子邮件?

答案1

正如 @AnFi 所指出的,这是有效的。

Sendmail 是接收和发送电子邮件的完整解决方案。设置起来相当容易。你不需要 Postfix。

相关内容