返回列表 回复 发帖

请大家帮我分析一下,我的系统用的是freebsd.

大家好,非常高兴能有个这样的交流平台,
我在安装邮件服务器的时候碰到了很多的问题,请大家帮我出出主意。。。
谢谢


# telnet localhost 25

Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 mail.test.jp ESMTP Postfix
ehlo mail
250-mail.test.jp
250-PIPELINING
250-SIZE 20480000
250-VRFY
250-ETRN
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
auth login
334 VXNlcm5hbWU6
dGVzdEBvcGVua2FrdS5qcA==
334 UGFzc3dvcmQ6
MDAwMDAw
535 5.7.0 Error: authentication failed: authentication failure

直接报的错误是这样的。

我把maillog文件也贴出来
# tail /var/log/maillog
Aug 15 17:53:38 www MailScanner[63054]: Error in line 1093, file "/opt/MailScanner/etc/reports/en/stored.size.message.txt" for storedsizemessage does not exist (or can not be read)
Aug 15 17:53:38 www MailScanner[63054]: Could not read file /opt/MailScanner/etc/reports/en/stored.virus.message.txt
Aug 15 17:53:38 www MailScanner[63054]: Error in line 1092, file "/opt/MailScanner/etc/reports/en/stored.virus.message.txt" for storedvirusmessage does not exist (or can not be read)
Aug 15 17:53:38 www MailScanner[63054]: Could not read executable /usr/lib/sendmail
Aug 15 17:53:38 www MailScanner[63054]: Error in line 183, file "/usr/lib/sendmail" for sendmail does not exist (or can not be read)
Aug 15 17:53:38 www MailScanner[63054]: Cannot open ruleset file /opt/MailScanner/etc/rules/max.message.size.rules, No such file or directory
Aug 15 17:53:38 www MailScanner[63054]: Cannot open filename-rules file /opt/MailScanner/etc/filename.rules.conf, skipping
Aug 15 17:53:38 www MailScanner[63054]: Cannot open filename-rules file /opt/MailScanner/etc/filetype.rules.conf, skipping
Aug 15 17:53:38 www MailScanner[63054]: File containing list of incoming queue dirs (/var/spool/mqueue.in) does not exist
Aug 15 17:53:38 www MailScanner[63054]: Cannot read definitions from /etc/MailScanner/virus.scanners.conf, No such file or directory


# tail /var/log/auth.log

Aug 15 15:09:15 www saslpasswd2: sql_select option missing
Aug 15 15:09:15 www saslpasswd2: auxpropfunc error no mechanism available
Aug 15 15:09:15 www sasldblistusers2: sql_select option missing
Aug 15 15:09:15 www sasldblistusers2: auxpropfunc error no mechanism available
Aug 15 15:09:15 www saslpasswd2: sql_select option missing
Aug 15 15:09:15 www saslpasswd2: auxpropfunc error no mechanism available
Aug 15 17:53:39 www sshd[63055]: warning: /etc/hosts.allow, line 1: can't verify hostname: getaddrinfo(29.58.80.218.broad.xw.sh.dynamic.163data.com.cn, AF_INET) failed
Aug 15 17:53:57 www sshd[63056]: reverse mapping checking getaddrinfo for 29.58.80.218.broad.xw.sh.dynamic.163data.com.cn [218.80.58.29] failed - POSSIBLE BREAK-IN ATTEMPT!
Aug 15 17:53:57 www sshd[63055]: reverse mapping checking getaddrinfo for 29.58.80.218.broad.xw.sh.dynamic.163data.com.cn [218.80.58.29] failed - POSSIBLE BREAK-IN ATTEMPT!
Aug 15 17:53:57 www sshd[63055]: Accepted password for admin from 218.80.58.29 port 26150 ssh2


请问这个问题怎么解决,,这个都郁闷了我快一个月了,,快要疯掉了,,。
大家帮我。。。
谢谢!!
要郁闷死了啊!!!
查看authmysqlrc 文件配置,把相关messages 日志贴出来看看!
在authdaemonrc

文件最后加了

authmodulelist="authmysql"
authmodulelistorig="authmysql"
version="authdaemond.mysql"
daemons=5
authdaemonvar=/var/run/authdaemond
subsystem=mail
DEBUG_LOGIN=2
DEFAULTOPTIONS="wbnodsn=1"


请大家帮我看看,
# /usr/local/sbin/authtest  -s login test@test.com  testtest

结果是
Authentication FAILED: Input/output error

后按照您说的第二种方法

修改了内容为2,并重启了
/usr/local/etc/rc.d/courier-authdaemond restart

/usr/local/etc/rc.d/courier-imap-imapd.sh restart
/usr/local/etc/rc.d/courier-imap-pop3d.sh restart

再用
#  telnet localhost 110

还是
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK Hello there.
user test@test.com
+OK Password required.
pass testtest
-ERR Temporary problem, please try again later
Connection closed by foreign host.

查看log信息为下面:

Aug 18 15:58:22 www MailScanner[27481]: Using SpamAssassin results cache
Aug 18 15:58:22 www MailScanner[27481]: Connected to SpamAssassin cache database
Aug 18 15:58:22 www MailScanner[27481]: Enabling SpamAssassin auto-whitelist functionality...
Aug 18 15:58:23 www pop3d: LOGIN FAILED, user=test@openkaku.jp, ip=[127.0.0.1]
Aug 18 15:58:23 www pop3d: authentication error: Input/output error
Aug 18 15:58:26 www MailScanner[27483]: MailScanner E-Mail Virus Scanner version 4.61.7 starting...
Aug 18 15:58:27 www MailScanner[27483]: Read 777 hostnames from the phishing whitelist
Aug 18 15:58:27 www MailScanner[27483]: SpamAssassin temporary working directory is /var/spool/MailScanner/incoming/SpamAssassin-Temp
有人在吗?
收信现在可以了

但是收信还是不行


我用
# authtest -s smtp test@test.com testtest

Authentication succeeded.

Authenticated: test@test.com (uid 1003, gid 1003)
Home Directory: /home/domains/test/
Maildir: /home/domains/test/
Quota: 104857600
Encrypted Password: $1$arkpNj27$G1MgP48aPWRALrRyX/ecs1
Cleartext Password: testtest
Options: wbnodsn=1
www# authtest -s smtp test@test.com testtest
Authentication succeeded.

Authenticated: test@test.com (uid 1003, gid 1003)
Home Directory: /home/domains/test/
Maildir: /home/domains/test/
Quota: 104857600
Encrypted Password: $1$arkpNj27$G1MgP48aPWRALrRyX/ecs1
Cleartext Password: testtest
Options: wbnodsn=1


测试是通过的,但是用

telnet localhost 25

就报

535 5.7.0 Error: authentication failed: authentication failure
错误。
发信还是不行啊
maillog错误是


Aug 20 12:38:05 www postfix/smtpd[74326]: warning: localhost[127.0.0.1]: SASL login authentication failed: authentication failure
原帖由 qimincyh2000 于 2007-8-20 11:35 发表
maillog错误是


Aug 20 12:38:05 www postfix/smtpd[74326]: warning: localhost[127.0.0.1]: SASL login authentication failed: authentication failure
加我的QQ我帮你看看
返回列表
开源邮件服务器 开源邮件服务器 web 开源邮件 开源 mail 开源 邮件服务器 邮件技术 mail技术 反垃圾邮件 反垃圾mail mail投递
邮件服务器 mail服务器 开源软件 mail软件 mail服务新品牌 开源邮件服务新品牌
开源mail服务新网站 邮件服务新品牌 mail tmail mailserver 163邮件 sendmail |Linux维护|Linux代维|成都Linux维护|成都Linux代维