上面認證失敗,日誌如下 # tail /var/log/maillog headers=0, body=0, rcvd=87, sent=391, time=0 Nov 8 17:41:00 mail postfix/smtpd: warning: mail.sc.com: SASL login authentication failed: authentication failure Nov 8 17:41:03 mail postfix/smtpd: disconnect from mail.sc.com
用命令行發信,出現如此錯誤: # tail /var/log/maillog Nov 8 17:43:41 mail amavis: (02961-01) (!) ClamAV-clamd: Can't connect to UNIX socket /var/run/clamav/clamd.pid: Connection refused, retrying (2) Nov 8 17:43:41 mail postfix/smtpd: disconnect from mail.sc.com
amavisd配置文件如下 vi +300 /etc/amavisd.conf # ### http://www.clamav.net/ ['ClamAV-clamd', \&ask_daemon, ["CONTSCAN {}\n", "/var/run/clamav/clamd.pid"], qr/\bOK$/, qr/\bFOUND$/, qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ], # # NOTE: the easiest is to run clamd under the same user as amavisd; match the # # socket name (LocalSocket) in clamav.conf to the socket name in this entry # # When running chrooted one may prefer: ["CONTSCAN {}\n","$MYHOME/clamd"],