![后缀:虚拟别名表中的用户未知](https://linux22.com/image/712925/%E5%90%8E%E7%BC%80%EF%BC%9A%E8%99%9A%E6%8B%9F%E5%88%AB%E5%90%8D%E8%A1%A8%E4%B8%AD%E7%9A%84%E7%94%A8%E6%88%B7%E6%9C%AA%E7%9F%A5.png)
由于某种原因,当我从自托管的 Postfix 服务器发送电子邮件时,它可以正常工作,但由于以下原因无法接收:
Nov 3 18:30:06 pi postfix/qmgr[31993]: CB178142FAB: from=<[email protected]>, size=738, nrcpt=1 (queue active)
Nov 3 18:30:06 pi postfix/error[1173]: CB178142FAB: to=<[email protected]>, orig_to=<megver83>, relay=none, delay=4.7, delays=4.7/0/0/0.01, dsn=5.1.1, status=bounced (User unknown in virtual alias table)
Nov 3 18:30:06 pi postfix/error[1232]: D3CEC142FAD: to=<[email protected]>, relay=none, delay=0.03, delays=0.01/0.01/0/0.01, dsn=5.1.1, status=bounced (User unknown in virtual alias table)
Nov 3 18:30:07 pi postfix/qmgr[31993]: 0E1AC142FAB: from=<[email protected]>, size=734, nrcpt=1 (queue active)
Nov 3 18:30:07 pi postfix/error[1173]: 0E1AC142FAB: to=<[email protected]>, orig_to=<megver83>, relay=none, delay=4.9, delays=4.8/0/0/0.01, dsn=5.1.1, status=bounced (User unknown in virtual alias table)
Nov 3 18:30:07 pi postfix/error[1232]: 1685A142FAD: to=<[email protected]>, relay=none, delay=0.03, delays=0.02/0/0/0.01, dsn=5.1.1, status=bounced (User unknown in virtual alias table)
Nov 3 18:34:37 pi postfix/error[1292]: BC405142FAB: to=<[email protected]>, relay=none, delay=0.28, delays=0.27/0/0/0.01, dsn=5.1.1, status=bounced (User unknown in virtual alias table)
Nov 3 19:11:39 pi postfix/qmgr[31993]: EDC14142FAB: from=<[email protected]>, size=1238, nrcpt=1 (queue active)
Nov 3 19:11:43 pi postfix/smtp[2064]: 3D67B142FAD: to=<[email protected]>, relay=spool.mail.gandi.net[217.70.184.6]:25, delay=3.8, delays=0.02/0.1/3.5/0.27, dsn=5.7.1, status=bounced (host spool.mail.gandi.net[217.70.184.6] said: 554 5.7.1 Service unavailable; Client host [190.100.12.50] blocked using pbl.spamhaus.org; https://www.spamhaus.org/query/ip/190.100.12.50 (in reply to RCPT TO command))
Nov 3 19:13:02 pi postfix/qmgr[31993]: 899D4142FAB: from=<[email protected]>, size=1256, nrcpt=1 (queue active)
Nov 3 19:13:02 pi postfix/error[1958]: 899D4142FAB: to=<[email protected]>, relay=none, delay=0.26, delays=0.25/0/0/0.01, dsn=5.1.1, status=bounced (User unknown in virtual alias table)
Nov 3 19:13:05 pi postfix/smtp[2064]: CA3A8142FAD: to=<[email protected]>, relay=spool.mail.gandi.net[217.70.184.6]:25, delay=2.3, delays=0.02/0/2.1/0.25, dsn=5.7.1, status=bounced (host spool.mail.gandi.net[217.70.184.6] said: 554 5.7.1 Service unavailable; Client host [190.100.12.50] blocked using pbl.spamhaus.org; https://www.spamhaus.org/query/ip/190.100.12.50 (in reply to RCPT TO command))
我正在尝试发送一封邮件[电子邮件保护]到[电子邮件保护],但不起作用。但是,正如我所说,它反过来也起作用。这是我的postconf -n
alias_database = $alias_maps
alias_maps = hash:/etc/postfix/aliases
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
command_directory = /usr/bin
compatibility_level = 2
daemon_directory = /usr/lib/postfix/bin
data_directory = /var/lib/postfix
debug_peer_level = 2
debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5
home_mailbox = Maildir/
html_directory = no
inet_interfaces = all
inet_protocols = ipv4
mail_owner = postfix
mailbox_size_limit = 134217728
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
message_size_limit = 134217728
meta_directory = /etc/postfix
mydomain = megver83.ga
myhostname = pi.megver83.ga
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix
relay_domains = *
relayhost =
sample_directory = /etc/postfix
sendmail_path = /usr/bin/sendmail
setgid_group = postdrop
shlib_directory = /usr/lib/postfix
smtp_tls_note_starttls_offer = yes
smtp_tls_security_level = may
smtpd_helo_required = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_path = private/auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_tls_cert_file = /etc/letsencrypt/live/megver83.ga/fullchain.pem
smtpd_tls_key_file = /etc/letsencrypt/live/megver83.ga/privkey.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_security_level = may
unknown_local_recipient_reject_code = 550
virtual_alias_domains = megver83.ga, eumela.ga, heckyel.ga
virtual_alias_maps = hash:/etc/postfix/virtual
在/etc/postfix/虚拟:
megver83.ga megver83.ga
[email protected] megver83
答案1
5.1.1 User unknown in virtual alias table
- 检查您的
/etc/postfix/virtual
是否有一个virtual_alias_maps
条目[email protected]
,将其绑定到本地或外部地址,而不是另一个虚拟别名。 - 请记住
postmap /etc/postfix/virtual
为了更新相应的.db
,因为您正在使用hash:
类型数据库。
- 检查您的
5.7.1 Service unavailable; Client host [190.100.12.50] blocked using pbl.spamhaus.org;