我安装了VPS安装程序和后缀。 我无法发送电子邮件,并且错误日志如下所示:
Jul 25 15:44:18 Ubuntu-xxxxx postfix/smtp[24761]: connect to Ubuntu-xxxxxx[fe80::f03c:91ff:fec0:ce97]:587: Invalid argument
Jul 25 15:44:18 Ubuntu-xxxxx postfix/smtp[24761]: connect to Ubuntu-xxxxxx[2600:3c04::f03c:91ff:fec0:ce97]:587: Connection refused
这是我的conf设置:
myorigin = /etc/mailname
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
# appending .domain is the MUA's job.
append_dot_mydomain = no
# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h
readme_directory = no
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_un$
myhostname = Ubuntu-xxxxx.localdomain
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = Ubuntu-xxxxx, localhost.localdomain, localhost
relayhost = Ubuntu-xxxxx:587
smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_use_tls = yes
smtp_tls_security_level = encrypt
smtp_tls_note_starttls_offer = yes
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
relayhost = Ubuntu-xxxxx:587
smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_use_tls = yes
smtp_tls_security_level = encrypt
smtp_tls_note_starttls_offer = yes
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt
我的帖子已打开(587和25),我不知道为什么参数错误。有什么建议吗?
编辑:我重新安装了postfix,现在可以连接到mail.xxxx.com [172.105.17.216]:587:连接被拒绝