歡迎您光臨本站 註冊首頁

postfix 兩個錯誤,一個是sasl認證錯誤,一個是clamav錯誤

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

postfix 兩個錯誤,一個是sasl認證錯誤,一個是clamav錯誤

首先建立編碼:
# perl -e 'use MIME::Base64; print encode_base64("sc\@sc.com")'
c2NAc2MuY29t
# perl -e 'use MIME::Base64; print encode_base64("sc")'
c2M=

# telnet mail.sc.com 25
Trying 192.168.10.168...
Connected to mail.sc.com (192.168.10.168).
Escape character is '^]'.
220 mail.sc.com ESMTP Postfix - by sc.com
ehlo mail.sc.com
250-mail.sc.com
250-PIPELINING
250-SIZE 14336000
250-VRFY
250-ETRN
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
auth login
334 VXNlcm5hbWU6
c2NAc2MuY29t
334 UGFzc3dvcmQ6
c2M=
535 5.7.0 Error: authentication failed: authentication failure
quit
221 2.0.0 Bye
Connection closed by foreign host.

上面認證失敗,日誌如下
# 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


這是我的配置文件:
# postconf -n
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = smtp::10024
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
html_directory = no
inet_interfaces = all
mail_name = Postfix - by sc.com
mail_owner = postfix
mailq_path = /usr/bin/mailq
manpage_directory = /usr/local/man
message_size_limit = 14336000
mydomain = sc.com
myhostname = mail.sc.com
mynetworks = 192.168.10.0/24, 127.0.0.0/8
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = no
receive_override_options = no_address_mappings
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtpd_banner = $myhostname ESMTP $mail_name
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_invalid_hostname, reject_non_fqdn_hostname, reject_unknown_sender_domain, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unknown_recipient_domain, reject_unauth_pipelining, reject_unauth_destination, permit, check_policy_service inet:127.0.0.1:10030
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
unknown_local_recipient_reject_code = 550
virtual_alias_domains =
virtual_alias_maps = mysql:/etc/postfix/mysql/mysql_virtual_alias_maps.cf
virtual_gid_maps = static:1000
virtual_mailbox_base = /home/domains/
virtual_mailbox_domains = mysql:/etc/postfix/mysql/mysql_virtual_domains_maps.cf
virtual_mailbox_limit = 20971520
virtual_mailbox_maps = mysql:/etc/postfix/mysql/mysql_virtual_mailbox_maps.cf
virtual_transport = maildrop:
virtual_uid_maps = static:1000


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"],

# ll /var/run/clamav/clamd.pid
-rw-rw---- 1 clamav amavis 4 Nov  8 15:39 /var/run/clamav/clamd.pid


除courier-imap是用源代碼安裝的之外,其餘全部是用RPM安裝的


請高手指點下

[ 本帖最後由 songpure520 於 2007-11-8 17:51 編輯 ]

[火星人 ] postfix 兩個錯誤,一個是sasl認證錯誤,一個是clamav錯誤已經有185次圍觀

http://coctec.com/docs/service/show-post-34489.html