Postfix + Mailq:邮箱已满且无退回

Postfix + Mailq:邮箱已满且无退回

我有一个邮件服务器和很多客户。我的一些客户有很多电子邮件帐户,但有些不使用。因此,我有很多邮箱都满了,每天都会收到几十封电子邮件。

所以,我的 mailq 里全是这些邮件!下面这行是 mailq 的输出

3FC47A657 4996 周一 六月 30 09:40:11 [电子邮件保护](主机 MX-HOST[xxx.xxx.xxx.xxx] 说:451 4.5.1 邮箱已满(回复 DATA 命令结束))[电子邮件保护]

我的问题是:我可以设置 postfix 不退回“邮箱已满”的电子邮件吗?并且只回复错误“邮箱已满”。

如果可以的话,我该怎么做?

提前致谢

编辑:

该主机充当中继服务器,并将电子邮件传送到网络内的另一台服务器进行邮箱处理。这是postconf -n

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
bounce_queue_lifetime = 12h
bounce_size_limit = 299
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 1
disable_vrfy_command = yes
header_checks = regexp:/etc/postfix/header_checks
html_directory = no
inet_interfaces = all
inet_protocols = all
local_recipient_maps =
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
maximal_queue_lifetime = 12h
message_size_limit = 40720000
mydestination = $myhostname, localhost.$mydomain, localhost
myhostname = ****.host.com
mynetworks = /etc/postfix/mynetworks
myorigin = $myhostname
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
relay_domains = hash:/etc/postfix/rcpthosts
relay_recipient_maps = hash:/etc/postfix/recipients
sample_directory = /usr/share/doc/postfix-2.6.6/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtp_tls_note_starttls_offer = yes
smtp_tls_security_level = may
smtpd_data_restrictions = reject_unauth_pipelining,     permit
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks,    check_helo_access hash:/etc/postfix/helo_access,        reject_non_fqdn_hostname,       permit
smtpd_peername_lookup = no
smtpd_recipient_restrictions = reject_unknown_recipient_domain, reject_unknown_sender_domain,        permit_sasl_authenticated,        permit_mynetworks,        reject_unauth_destination,     reject_unauth_pipelining,       check_sender_access     hash:/etc/postfix/sender_access,        reject_rbl_client bl.spamcop.net,       check_policy_service unix:/var/spool/postfix/postgrey/socket,   permit
smtpd_sender_restrictions = permit_mynetworks,  reject_unknown_sender_domain,   reject_unauth_pipelining,       permit
smtpd_tls_CAfile = /etc/ssl/certs/cacert.pem
smtpd_tls_auth_only = no
smtpd_tls_cert_file = /etc/ssl/certs/smtpd.crt
smtpd_tls_key_file = /etc/ssl/private/smtpd.key
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_security_level = may
smtpd_tls_session_cache_timeout = 3600s
strict_rfc821_envelopes = yes
tls_random_source = dev:/dev/urandom
transport_maps = hash:/etc/postfix/smtproutes
unknown_address_reject_code = 554
unknown_client_reject_code = 554
unknown_hostname_reject_code = 554
unknown_local_recipient_reject_code = 550

答案1

在 中main.cf,添加/更改mailbox_size_limit并增加 的默认值51200000。更改后别忘了重启 postfix。

相关内容