主题: 用extmail发邮件报错

用extmail给外网发邮件报错 SMTP rcpt error:
但是用roundcube就无此问题!!!

maillog的显示:
Jun 10 16:01:01 mail policyd-cleanup: clean up process starting: policyd v1.82
Jun 10 16:01:01 mail policyd-cleanup: connecting to mysql database: 127.0.0.1
Jun 10 16:01:01 mail policyd-cleanup: connected..
Jun 10 16:01:01 mail policyd-cleanup: expiring throttlesender records older than
31 days (1241942461)
Jun 10 16:01:01 mail policyd-cleanup: expired: 0 records
Jun 10 16:01:01 mail policyd-cleanup: expiring throttlesender instances older th
an 1 hour (1244617261)
Jun 10 16:01:01 mail policyd-cleanup: expired: 0 records
Jun 10 16:01:01 mail policyd-cleanup: clean up process starting: policyd v1.82
Jun 10 16:01:01 mail policyd-cleanup: connecting to mysql database: 127.0.0.1
Jun 10 16:01:01 mail policyd-cleanup: connected..
Jun 10 16:01:01 mail policyd-cleanup: expiring validated records older than 7 da
ys (1244016061)
Jun 10 16:01:01 mail policyd-cleanup: expired: 0 records
Jun 10 16:01:01 mail policyd-cleanup: expiring unvalidated records older than 2
days (1244448061)
Jun 10 16:01:01 mail policyd-cleanup: expired: 0 records
Jun 10 16:01:01 mail policyd-cleanup: expiring blacklisted records (1244620861)
Jun 10 16:01:01 mail policyd-cleanup: expired: 0 records
Jun 10 16:01:01 mail policyd-cleanup: expiring autowhitelisted records older tha
n 7 days (1244620861)
Jun 10 16:01:01 mail policyd-cleanup: expired: 0 records
Jun 10 16:01:01 mail policyd-cleanup: expiring helo records older than 7 days (1
244620861)
Jun 10 16:01:01 mail policyd-cleanup: expired: 0 records
Jun 10 16:01:01 mail policyd-cleanup: expiring throttlerecipient records older t
han 31 days (1241942461)
Jun 10 16:01:01 mail policyd-cleanup: expired: 0 records
Jun 10 16:34:40 mail extmail[2184]: user=<aaa@test.com>, client=192.168.0
.200, module=login, status=loginok
Jun 10 16:34:59 mail postfix/smtpd[2192]: connect from mail.test.com[127.0
.0.1]
Jun 10 08:35:04 mail postfix/smtpd[2192]: 317A19882C7: client=mail.test.co
m[127.0.0.1]
Jun 10 08:35:04 mail postfix/smtpd[2192]: lost connection after RCPT from mail.
test.com[127.0.0.1]
Jun 10 08:35:04 mail postfix/smtpd[2192]: disconnect from mail.test.com[12
7.0.0.1]

[ 本帖最后由 ikic 于 2009-6-10 16:39 编辑 ]

回复: 用extmail发邮件报错

从你给的日志上看不出什么问题。也许需要看 extmail 的日志。

PS:iRedMail 项目组已经不再支持 ExtMail 在 iRedMail 环境的使用,所以出现的问题您只能尝试自己 google 解决或者在 ExtMail 论坛提问。

回复: 用extmail发邮件报错

我是刚从extmail迁移到iredmail的,但是单位的员工习惯用extmail的webmail了,所以extmail还在用,在/var/log下没有extamil的log,我是按照迁移doc的方法,迁移后其他还正常,就是不能用extamil往外网发邮件,内网的可以

回复: 用extmail发邮件报错

请问一下,从昨天发现在/home/vmail/自动建了一个vmail目录,不知道这是正常的吗?
ls -l /home/vmail/
total 8
drwx------ 17 vmail vmail 4096 Jun  8 13:06 test.com
drwx------  5 vmail mail  4096 Jun 11 05:01 vmail
而且还有邮件
ls -l vmail/
cur/                          dovecot-uidvalidity.4a2ecd8e
dovecot.index.cache           maildirsize
dovecot.index.log             new/
dovecot-uidlist               tmp/
dovecot-uidvalidity           
这是内容

Return-Path: <vmail@mail.test.com>
Delivered-To: vmail@mail.test.com
Received: by mail.test.com (iRedMail, from userid 500)
        id 881799882DC; Wed, 10 Jun 2009 05:01:02 +0800 (CST)
From: root@mail.test.com (Cron Daemon)
To: vmail@mail.test.com
Subject: Cron <vmail@mail> find /var/virusmails -ctime +30
Content-Type: text/plain; charset=UTF-8
Auto-Submitted: auto-generated
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/home/vmail>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=vmail>
X-Cron-Env: <USER=vmail>
Message-Id: <20090609210102.881799882DC@mail.test.com>
Date: Wed, 10 Jun 2009 05:01:02 +0800 (CST)

find: /var/virusmails: Permission denied

回复: 用extmail发邮件报错

由于 crontab 里的任务在没有顺利执行完的时候,会发一封邮件给 crontab 的 owner(这里就是 vmail 用户),以告知任务的进展,所以这封邮件来自于你的 vmail 用户的 crontab 任务。

检查一下它的任务列表,并校验里面的命令是否都能顺利执行:

# crontab -l -u vmail

从你贴的邮件内容来看,是由于 vmail 用户没有权限访问 /var/virusmails/ 目录导致的。

回复: 用extmail发邮件报错

这是vmail的cron
1   5   *   *   *   find /var/virusmails -ctime +30

ls -l /var/virusmails/
total 16
-rw-r----- 1 amavis amavis 1584 Jun  8 16:19 spam-7I+FVgDwSIpC.gz
-rw-r----- 1 amavis amavis 1949 Jun  8 16:29 spam-H5ylPQ1jh+u9.gz
-rw-r----- 1 amavis amavis 1586 Jun  9 07:32 spam-M0hx6ugAGX7b.gz
-rw-r----- 1 amavis amavis 2711 Jun  9 05:02 spam-Wa6-jTP5mDyl.gz
这里面保存的是什么?

回复: 用extmail发邮件报错

保存的是被识别为 spam 的邮件。
你可以解开后查看:

# gunzip spam-xxx.gz
# cat spam-xxx

回复: 用extmail发邮件报错

明白了,谢谢Bibby
那我是不是可以chmod o+r /var/virusmails/
要不vmial没有权限

回复: 用extmail发邮件报错

两种方法:
1:如你所说,加上权限。
2:改为由 root 用户来执行。

回复: 用extmail发邮件报错

感谢!!!:loveliness: