我一直试图让 postfix 与 amavis 协同工作,但一直无法成功。无论我怎么尝试,都无法解决以下错误: [snip] Can't connect to INET4 socket 127.0.0.1
我可以成功运行 telnet 127.0.0.1 10024 和 amavis 答案。
日志中没有其他内容表明存在问题。
有人知道我该如何进一步解决这个问题吗?
postconf -n
如下:
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
home_mailbox = Maildir/
inet_interfaces = all
inet_protocols = all
mailbox_command =
mailbox_size_limit = 0
mydestination = thegodshalls.com, localhost.com, , localhost
myhostname = thegodshalls.com
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
myorigin = /etc/mailname
readme_directory = no
recipient_delimiter = +
relayhost =
smtp_tls_note_starttls_offer = yes
smtp_tls_security_level = may
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
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_database = btree:${data_directory}/smtpd_scache
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
答案1
Amavisd 邮件列表给了我一个在之前的搜索中没有列出的提示,那就是尝试连接telnet
到端口10025
。我无法连接到端口10025
。但lsof -i tcp:10025
显示 postfix 正在监听。
我添加了一条规则来iptables
允许端口10025
,现在它可以正常工作了。