我在带有后缀的 Ubuntu 20.04 上运行请求跟踪器 5,但我无法从 RT 发送电子邮件。当我发送测试电子邮件时,它可以工作。这是我的main.cf
文件
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_sasl_type = cyrus
smtp_sasl_mechanism_filter = login
smtp_sender_dependent_authentication = yes
sender_dependent_relayhost_maps = hash:/etc/postfix/sender_relay
smtp_generic_maps = hash:/etc/postfix/generic
smtp_tls_CAfile = /etc/postfix/cacert.pem
smtp_use_tls = yes
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
myhostname = localhost
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
relayhost = mail.example.com:587
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = loopback-only
inet_protocols = all
和我的日志/var/log/mail.log
Nov 16 00:11:46 rt5new postfix/smtp[11975]: warning: mail.example.com[x.x.x.x]:587 offered no supported AUTH mechanisms: 'GSSAPI NTLM'
Nov 16 00:11:46 rt5new postfix/smtp[11975]: 53793301166: to=<www-data@fcc.am>, relay=mail.example.com[x.x.x.x]:587, delay=31, delays=0/0/31/0.02, dsn=5.7.60, status=bounced (host mail.example.com[x.x.x.x]:587 said: 550 5.7.60 SMTP; Client does not have permissions to send as this sender (in reply to end of DATA command))