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

How do I set Postfix to now send MAILER-DAEMON messages

· 52CE 我爱测

One of my domains is being spoofed as a 'from' address and all of the rejects are coming back to my server. I am getting 400-500 per minute. I am trying to get the registrar to help set up an SPF record so that this will not happ…

问题原文

原帖链接 · Doug Wolfgram · CC BY-SA 4.0

One of my domains is being spoofed as a 'from' address and all of the rejects are coming back to my server. I am getting 400-500 per minute. I am trying to get the registrar to help set up an SPF record so that this will not happen, but can I set some parameter in sender_access to block sending these to me?

I tried adding:

[email omitted]  REJECT  (which is the 'from' address on these bounces)

to my sender_access file. But to no avail. Perhaps this doesn't work because this isn't really an incoming message, but one generated by postfix?

I also added:

check_sender_access hash:/etc/postfix/sender_access,

to the smtpd_sender_restrictions section of main.cf.

Is there an easier way to stop sending me these hundreds of emails?

Thanks, in advance.

已采纳解答

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

The email you are receiving the emails at, should be in your recipient_access file, not sender access. An option instead of REJECT is to DISCARD the emails instead. Your server will 'accept' the message and delete the email. The external email server will think it was delivered correctly, but you won't have a full mailbox.

Fixing your SPF records will help a lot so the external mail servers hopefully won't even accept the message to begin with assuming it's spam.

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

资料来源与适用范围

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

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

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