我有一个运行 postfix 的服务器,在我的 main.cf 中,我使用
smtp_sasl_auth_enable = yes
smtp_sender_dependent_authentication = yes
我有大约 30 个不同的电子邮件地址(不同的域名,主要是 Gsuite),一切都运行良好。我的问题是,我的一些客户不断更改他们的电子邮件密码,导致从他们的网站发送的电子邮件卡在邮件队列中,因为:
"SASL authentication failed... Username and Password not accepted."
因此我必须找到该客户并询问他们的新密码,以便我可以更新我的 /etc/postfix/sasl_passwd 文件。因此,我试图查看是否有办法指定一个电子邮件地址列表,该列表将自动绕过 smtp 身份验证,并让服务器使用我的 DNS 设置发送电子邮件。我搜索了互联网并走了很多不同的路来寻找答案,但要么我没有问正确的问题,要么我没有理解我找到的一些解决方案。请帮忙!
0.0.0.0:smtp inet n - y - - smtpd
pickup unix n - y 60 1 pickup
cleanup unix n - y - 0 cleanup
qmgr unix n - n 300 1 qmgr
tlsmgr unix - - y 1000? 1 tlsmgr
rewrite unix - - y - - trivial-rewrite
bounce unix - - y - 0 bounce
defer unix - - y - 0 bounce
trace unix - - y - 0 bounce
verify unix - - y - 1 verify
flush unix n - y 1000? 0 flush
proxymap unix - - n - - proxymap
proxywrite unix - - n - 1 proxymap
smtp unix - - y - - smtp
relay unix - - y - - smtp
-o syslog_name=postfix/$service_name
showq unix n - y - - showq
error unix - - y - - error
retry unix - - y - - error
discard unix - - y - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - y - - lmtp
anvil unix - - y - 1 anvil
scache unix - - y - 1 scache
postlog unix-dgram n - n - 1 postlogd
maildrop unix - n n - - pipe flags=DRhu
user=vmail argv=/usr/bin/maildrop -d ${recipient}
uucp unix - n n - - pipe flags=Fqhu
user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
ifmail unix - n n - - pipe flags=F user=ftn
argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp unix - n n - - pipe flags=Fq.
user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
scalemail-backend unix - n n - 2 pipe flags=R
user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop}
${user} ${extension}
mailman unix - n n - - pipe flags=FR
user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py ${nexthop}
${user}
邮件日志条目:
Jan 11 17:37:17 MrFent postfix/smtp[15778]: D19FB4141A: to=<[email protected]>, relay=smtp.gmail.com[74.125.192.109]:587, delay=25752, delays=25752/0.02/0.39/0, dsn=4.7.8, status=deferred (SASL authentication failed; server smtp.gmail.com[74.125.192.109] said: 535-5.7.8 Username and Password not accepted. Learn more at?535 5.7.8 https://support.google.com/mail/?p=BadCredentials i7sm7380395qkn.0 - gsmtp)
Jan 11 18:07:34 MrFent postfix/pickup[15527]: 18A294141B: uid=1009 from=<[email protected]>
Jan 11 18:07:34 MrFent postfix/trivial-rewrite[16672]: warning: database /etc/postfix/sender_relay.db is older than source file /etc/postfix/sender_relay
Jan 11 18:07:34 MrFent postfix/cleanup[16671]: 18A294141B: message-id=<[email protected]>
Jan 11 18:07:34 MrFent postfix/qmgr[2009]: 18A294141B: from=<[email protected]>, size=3935, nrcpt=1 (queue active)
Jan 11 18:07:35 MrFent postfix/smtp[16673]: 18A294141B: to=<[email protected]>, relay=smtp.gmail.com[74.125.192.109]:587, delay=1.1, delays=0.02/0.02/0.31/0.76, dsn=2.0.0, status=sent (250 2.0.0 OK 1641924455 c25sm7316454qkp.31 - gsmtp)
Jan 11 18:07:35 MrFent postfix/qmgr[2009]: 18A294141B: removed
Jan 11 18:47:17 MrFent postfix/qmgr[2009]: D19FB4141A: from=<[email protected]>, size=950, nrcpt=1 (queue active)
Jan 11 18:47:17 MrFent postfix/trivial-rewrite[17120]: warning: database /etc/postfix/sender_relay.db is older than source file /etc/postfix/sender_relay
Jan 11 18:47:18 MrFent postfix/smtp[17121]: D19FB4141A: to=<[email protected]>, relay=smtp.gmail.com[173.194.175.109]:587, delay=29953, delays=29953/0.02/0.4/0, dsn=4.7.8, status=deferred (SASL authentication failed; server smtp.gmail.com[173.194.175.109] said: 535-5.7.8 Username and Password not accepted. Learn more at?535 5.7.8 https://support.google.com/mail/?p=BadCredentials w12sm2876670qtj.64 - gsmtp)