大网数据广告活动
服务器运维问答

postfix not relaying mail from remote hosts

· 52CE 我爱测

I have the following postfix configuration: smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated myhostname = d*****.net alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases virtual_alias_maps = has…

问题原文

原帖链接 · user293677 · CC BY-SA 4.0

I have the following postfix configuration:

 smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated
 myhostname = d*****.net
 alias_maps = hash:/etc/aliases
 alias_database = hash:/etc/aliases
 virtual_alias_maps = hash:/etc/postfix/virtual
 mydestination = d*****.net, gitlab, localhost.localdomain, , localhost
 relayhost =
 mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128

And the following dovecot 10-auth.conf:

disable_plaintext_auth = no

this is my mail log:

 Jun 11 14:34:24 D***** postfix/master[13209]: warning: process /usr/lib     /postfix/smtpd pid 1025 exit status 1
 Jun 11 14:34:24 D****** postfix/master[13209]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
 Jun 11 14:35:24 D****** postfix/smtpd[1132]: fatal: in parameter smtpd_relay_restrictions or smtpd_recipient_restrictions, specify at least one working instance of: reject_unauth_destination, defer_unauth_destination, reject, defer, defer_if_permit or check_relay_domains

All I'm trying to do is enable plain text username/password authorization for SMTP. Any suggestions how to accomplish this?

社区高分解答

原帖链接 · red_shift · CC BY-SA 3.0

Postfix is asking what to do when it receives email for not your domain.

smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination

That should work and it also keeps you from relaying mail for spammers.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2015-06-11)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0 / CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。