主题: 关于只能发邮件,不能收邮件

我用PY创建的帐号,导入ldap,主目录/var/mail。现在只能发邮件,不能接收到邮件。LOG如下:
[root@mail log]# tail /var/log/maillog
Aug 21 09:46:26 mail amavis[11492]: Found decoder for    .lha  at /usr/bin/lha
Aug 21 09:46:26 mail amavis[11492]: Found decoder for    .cab  at /usr/bin/cabextract
Aug 21 09:46:26 mail amavis[11492]: No decoder for       .tnef tried: tnef
Aug 21 09:46:26 mail amavis[11492]: Internal decoder for .tnef
Aug 21 09:46:26 mail amavis[11492]: Found decoder for    .exe  at /usr/bin/unrar; /usr/bin/lha; /usr/bin/arj
Aug 21 09:46:26 mail amavis[11492]: Using primary internal av scanner code for ClamAV-clamd
Aug 21 09:46:26 mail amavis[11492]: Found secondary av scanner ClamAV-clamscan at /usr/bin/clamscan
Aug 21 09:46:26 mail amavis[11492]: Creating db in /var/amavis/db/; BerkeleyDB 0.36, libdb 4.3
Aug 21 09:46:28 mail postfix/smtp[11469]: 49F4251010C: to=<dawei.sun@transluck.com>, relay=mail.shaidc.com[218.78.208.134]:25, delay=4.6, delays=0.01/0.01/4.5/0.08, dsn=2.0.0, status=sent (250 ok)
Aug 21 09:46:28 mail postfix/qmgr[2730]: 49F4251010C: removed
[root@mail log]# tail /var/log/maillog
Aug 21 09:49:51 mail amavis[11494]: (11494-01) Passed CLEAN, LOCAL [218.78.208.149] [139.3.210.244] <dawei.sun@transluck.com> -> <dawei.sun@transluck.net>, Message-ID: <OFF8A522E9.9A5411B5-ON48257619.002D3E12-48257619.00300947@henkel.com>, mail_id: YXTNN2u6hI1N, Hits: -, size: 1809364, queued_as: 1A96A51010B, 2076 ms
Aug 21 09:49:51 mail postfix/smtp[11517]: 06165510109: to=<dawei.sun@transluck.net>, relay=127.0.0.1[127.0.0.1]:10024, delay=2.3, delays=0.24/0.01/0.01/2.1, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=11494-01, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 1A96A51010B)
Aug 21 09:49:51 mail postfix/qmgr[2730]: 06165510109: removed
Aug 21 09:49:51 mail postfix/pickup[10833]: 5AA5E51010C: uid=500 from=<>
Aug 21 09:49:51 mail postfix/cleanup[11516]: 5AA5E51010C: message-id=<dovecot-1250819391-336046-0@mail.transluck.net>
Aug 21 09:49:51 mail postfix/pipe[11522]: 1A96A51010B: to=<dawei.sun@transluck.net>, relay=dovecot, delay=0.27, delays=0.22/0.01/0/0.04, dsn=2.0.0, status=sent (delivered via dovecot service)
Aug 21 09:49:51 mail postfix/qmgr[2730]: 1A96A51010B: removed
Aug 21 09:49:51 mail postfix/qmgr[2730]: 5AA5E51010C: from=<>, size=4138, nrcpt=1 (queue active)
Aug 21 09:49:54 mail postfix/smtp[11526]: 5AA5E51010C: to=<dawei.sun@transluck.com>, relay=mail.shaidc.com[218.78.208.134]:25, delay=3.1, delays=0.01/0.01/3/0.02, dsn=2.0.0, status=sent (250 ok)
Aug 21 09:49:54 mail postfix/qmgr[2730]: 5AA5E51010C: removed

回复: 关于只能发邮件,不能收邮件

安装时创建的www用户可以正常收发邮件

回复: 关于只能发邮件,不能收邮件

你使用 python 脚本创建的用户的 maildir 路径是否有做修改?默认是 /var/vmail,你的是 /var/mail(少了一个字母 v)。

回复: 关于只能发邮件,不能收邮件

原帖由 Bibby 于 2009-8-21 19:18 发表 http://www.iredmail.org/bbs/images/common/back.gif
你使用 python 脚本创建的用户的 maildir 路径是否有做修改?默认是 /var/vmail,你的是 /var/mail(少了一个字母 v)。

少的那个V是我发贴子的时候漏打了,有修改过,脚本默认是/home/vmail。我改成了/var/vmail(因为config里的也是/var/vmail)

回复: 关于只能发邮件,不能收邮件

在 /etc/dovecot.conf 里将 mail_debug 参数设置为 yes,重启 dovecot,然后跟踪 /var/log/dovecot.log 和 /var/log/sieve.log(需要发送一封邮件给你的用户),看它们各自显示的用户的 maildir 路径是否一致。

回复: 关于只能发邮件,不能收邮件

[root@mail ~]# tail /var/log/dovecot.log
dovecot: Aug 21 11:33:40 Info: imap-login: Login: user=<dawei.sun@transluck.net>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
dovecot: Aug 21 11:33:40 Info: IMAP(dawei.sun@transluck.net): Disconnected: Logged out bytes=228/1680
dovecot: Aug 21 11:34:40 Info: imap-login: Login: user=<dawei.sun@transluck.net>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
dovecot: Aug 21 11:34:40 Info: IMAP(dawei.sun@transluck.net): Disconnected: Logged out bytes=228/1703
dovecot: Aug 21 11:35:40 Info: imap-login: Login: user=<dawei.sun@transluck.net>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
dovecot: Aug 21 11:35:40 Info: IMAP(dawei.sun@transluck.net): Disconnected: Logged out bytes=228/1703
dovecot: Aug 21 11:36:40 Info: imap-login: Login: user=<dawei.sun@transluck.net>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
dovecot: Aug 21 11:36:40 Info: IMAP(dawei.sun@transluck.net): Disconnected: Logged out bytes=228/1703
dovecot: Aug 21 12:46:50 Warning: Killed with signal 15
dovecot: Aug 21 12:46:50 Info: dovecot v1.1.18 starting up (core dumps disabled)
[root@mail ~]#

[root@mail ~]# tail /var/log/sieve.log
deliver(dawei.sun@transluck.net): Aug 21 12:49:50 Info: Quota warning: bytes=921 (90%) messages=0 command=/usr/bin/dovecot-quota-warning.sh 90
deliver(dawei.sun@transluck.net): Aug 21 12:49:50 Info: Quota warning: bytes=972 (95%) messages=0 command=/usr/bin/dovecot-quota-warning.sh 95
deliver(dawei.sun@transluck.net): Aug 21 12:49:50 Info: maildir: data=~/t/tr/transluck.net/d/da/daw/dawei.sun//Maildir/
deliver(dawei.sun@transluck.net): Aug 21 12:49:50 Info: maildir++: root=/var/vmail/t/tr/transluck.net/d/da/daw/dawei.sun//Maildir, index=, control=, inbox=/var/vmail/t/tr/transluck.net/d/da/daw/dawei.sun//Maildir
deliver(dawei.sun@transluck.net): Aug 21 12:49:50 Info: cmusieve: /var/vmail/.dovecot.sieve doesn't exist
deliver(dawei.sun@transluck.net): Aug 21 12:49:50 Info: cmusieve: Using sieve path: /var/vmail/sieve/dovecot.sieve
deliver(dawei.sun@transluck.net): Aug 21 12:49:50 Info: cmusieve: Script not found: /var/vmail/sieve/dovecot.sieve
deliver(dawei.sun@transluck.net): Aug 21 12:49:50 Info: msgid=<000a01ca225d$ed481eb0$c7d85c10$@com>: save failed to INBOX: Quota exceeded (mailbox for user is full)
deliver(dawei.sun@transluck.net): Aug 21 12:49:50 Info: msgid=<000a01ca225d$ed481eb0$c7d85c10$@com>: rejected: Quota exceeded (mailbox for user is full)
deliver(dawei.sun@transluck.net): Aug 21 12:49:50 Info: Sending a rejection to dawei.sun@transluck.net: Quota exceeded (mailbox for user is full)

[ 本帖最后由 aw8 于 2009-8-21 20:51 编辑 ]

回复: 关于只能发邮件,不能收邮件

不能保存邮件,说超过限额。晕

回复: 关于只能发邮件,不能收邮件

create_mail_user_OpenLDAP.sh创建的用户,用户目录在/var/vmail/vmail01/下的就没有问题