基础的qmail安装说明文档

安装qmail说明文档

制作者:赵艳静 2011-8-26

目录

系统类型... 1

准备安装环境... 1

基本环境... 1

检查系统组件... 1

准备软件包... 1

检查编译环境... 2

停用sendmail(或postfix)... 2

创建qmail账户... 2

创建qmail相关目录... 3

目录结构... 3

创建目录... 3

安装qmail 4

安装 ucspi-tcp. 5

安装 daemontools. 6

安装 vpopmail 7

添加supervise 运行脚本... 9

创建测试账户... 13

创建域... 13

验证域... 14

添加账户... 14

验证用户... 14

发信测试... 14

系统发信... 14

验证收信... 15

查看日志... 16

系统类型

Linux 64位

准备安装环境

基本环境:

jpegsrcgd-2 gmp-4 libtool-1libmcrypt-2 libpng-1 mhash-0openssl-0 nginx-0 pcre-7 mrtg-2

检查系统组件:
rpm –qa | grep httpd;
rpm –qa | grep php;
rpm –qa | grep mysqld;

如果上述命令返回结果为空,需要安装

httpd-2.2.17.tar.gz

mysql-5.1.56.tar.gz

php-5.2.17.tar.gz

准备软件包

netqmail-1.05.tar.gz # qmail软件包,是打过各种补丁以后的完整包,不建议直接使用qmail-1.03.tar.gz

daemontools-0.70.tar.gz # 管理服务进程

ucspi-tcp-0.88.tar.gz # 创建和接受TCP连接

vpopmail-3_4_11-2_released_tar.gz # 支持虚拟域

ezmlm-0_53_tar.gz # 管理邮件列表

autorespond-1_0_0_tar.gz #自动回复功能

qmailadmin-0.30pre1.tar.gz #web控制接口

检查编译环境

# cc

No input files specified

#如果返回上述结果,说明缺省搜索访问路径上有可用的C编译器,如果没有返回结果,则

继续执行以下几个命令:

/usr/bin/cc

/usr/bin/gcc

/usr/local/bin/cc

/usr/local/bin/gcc

/usr/ccs/bin/cc

如果上述命令均没有返回结果,则需要检查安装包,并安装

对于 Red Hat Linux, 使用: rpm -qa | grep gcc 或者 rpm -qa | grep egcs

对于 FreeBSD: 默认安装已经包括了GCC编译器.

 

停用sendmail(或postfix)

mv /usr/sbin/sendmail/usr/sbin/sendmail.bak

ln -s /var/qmail/bin/sendmail/usr/sbin/sendmail

创建qmail账户

alias qmaild qmaill qmailp 属于nofiles组;qmailq qmailr qmails属于qmail组;vchkpw属于vchkpw组

groupadd -g 801 qmail

groupadd -g 802 nofiles

groupadd -g 808 vchkpw

useradd -g nofiles -d /var/qmail/alias -s/sbin/nologin -p'*' -u 800 alias

useradd -g nofiles -d /var/qmail -M -s/sbin/nologin -p'*' -u 801 qmaild

useradd -g nofiles -d /var/qmail -M -s/sbin/nologin -p'*' -u 802 qmaill

useradd -g nofiles -d /var/qmail -M -s /sbin/nologin-p'*' -u 803 qmailp

useradd -g qmail -d /var/qmail -M -s/sbin/nologin -p'*' -u 804 qmailq

useradd -g qmail -d /var/qmail -M -s/sbin/nologin -p'*' -u 805 qmailr

useradd -g qmail -d /var/qmail -M -s/sbin/nologin -p'*' -u 806 qmails

useradd -g vchkpw -d /home/vpopmail -s/nonexistent -u 808-c Vpopmail-Master

创建qmail相关目录

目录结构

# ls /var/log/qmail/

qmail-imapd qmail-pop3dqmail-send qmail-smtpd

# ls/var/qmail/supervise/

qmail-imapd qmail-monitorqmail-pop3d qmail-send qmail-smtpd

创建目录

mkdir -p /var/qmail;

chown -R root:qmail /var/qmail

mkdir -p /var/log/qmail

mkdir -p /var/log/qmail/qmail-send

mkdir -p /var/log/qmail/qmail-smtpd

mkdir -p /var/log/qmail/qmail-pop3d

mkdir -p /var/log/qmail/qmail-imapd

chown -R qmaill:root /var/log/qmail

chmod -R 750 /var/log/qmail

mkdir -p /var/qmail/supervise

mkdir -p /var/qmail/supervise/qmail-smtpd

mkdir -p /var/qmail/supervise/qmail-smtpd/log

chmod +t /var/qmail/supervise/qmail-smtpd

mkdir -p /var/qmail/supervise/qmail-send

mkdir -p /var/qmail/supervise/qmail-send/log

chmod +t /var/qmail/supervise/qmail-send

mkdir -p /var/qmail/supervise/qmail-pop3d

mkdir -p /var/qmail/supervise/qmail-pop3d/log

chmod +t /var/qmail/supervise/qmail-pop3d

mkdir -p /var/qmail/supervise/qmail-imapd

mkdir -p /var/qmail/supervise/qmail-imapd/log

chmod +t /var/qmail/supervise/qmail-imapd

mkdir -p /var/qmail/supervise/qmail-monitor

安装qmail

当前目录/usr/local/src/qmail

tar xf netqmail-1.05.tar

cd netqmail-1.05.tar

./collate.sh

#上述命令的主要功能是自动解压并打上补丁,产生一个netqmail-1.05目录

#生成了目录/usr/local/src/qmail/netqmail-1.05/netqmail-1.05netqmail-1.05

执行上述命令的时候需要注意是否报错信息,一般正确的返回信息是:

You should see 7lines of text below. If you see anything

else, then something might be wrong.

[1] Extracting qmail-1.03...

[2] Patching qmail-1.03 intonetqmail-1.05. Look for errors below:

[4] The previous line should say 24 if youused GNU patch.

[5] Renaming qmail-1.03 to netqmail-1.05...

[6] Continue installing qmail using theinstructions found at:

[7] http://www.lifewithqmail.org/lwq.html#installation

#上述命令所作的操作是:

解压/usr/local/src/qmail/netqmail-1.05/qmail-1.03.tar.gz到当前目录

然后进入/usr/local/src/qmail/netqmail-1.05/qmail-1.03打补丁netqmail-1.05.patch

cd /usr/local/src/qmail/netqmail-1.05/netqmail-1.05netqmail-1.05

make setup check

可能会出现如下报错:

./compile auto-uid.c

auto-uid.c: In function?.ain?.

auto-uid.c:22: warning:return type of ?.ain?.is not ?.nt?

./load auto-uidsubstdio.a error.a str.a fs.a

./compile auto-gid.c

auto-gid.c: In function?.ain?.

auto-gid.c:22: warning:return type of ?.ain?.is not ?.nt?

./load auto-gidsubstdio.a error.a str.a fs.a

( ./auto-uid auto_uida`head -1 conf-users` \

&&./auto-uid auto_uidd `head -2 conf-users | tail-1` \

&&./auto-uid auto_uidl `head -3 conf-users | tail-1` \

&&./auto-uid auto_uido `head -4 conf-users | tail-1` \

&&./auto-uid auto_uidp `head -5 conf-users | tail-1` \

&&./auto-uid auto_uidq `head -6 conf-users | tail-1` \

&&./auto-uid auto_uidr `head -7 conf-users | tail-1` \

&&./auto-uid auto_uids `head -8 conf-users | tail-1` \

&&./auto-gid auto_gidq `head -1 conf-groups` \

&&./auto-gid auto_gidn `head -2 conf-groups | tail-1` \

) > auto_uids.c.tmp && mv auto_uids.c.tmpauto_uids.c

fatal: unable to find user root

make: *** [auto_uids.c]Error 111

如果“make setup check”命令执行成功的话,最后两行是如下提示:

./install

./instcheck

# ./config 查看DNS配置情况

Your hostname isxkwb5705. #主机名

Your host's fullyqualified name in DNS is bt-199-039.bta.net.cn.# 在DNS解析中完整的主机名是bt-199-039.bta.net.cn

Putting bt-199-039.bta.net.cninto control/me... #将完整主机名加入控制文件me

Putting bta.net.cninto control/defaultdomain...#将完整主机名加入控制文件defaultdomain

Putting net.cn intocontrol/plusdomain...#将完整主机名加入控制文件plusdomain

Checking local IPaddresses:#检测本地IP地址

0.0.0.0: PTR lookupfailed. I assume this address has no DNS name. #反向解析失败

127.0.0.1: Addinglocalhost to control/locals... #将被地循环地址加入控制文件locals

202.106.195.30: Addingweb30.bbn.com.cn to control/locals...

211.100.97.250: PTRlookup failed. I assume this address has no DNS name. #本机没有设置反向解析

If there are anyother domain names that point to you,

you will have to addthem to /var/qmail/control/locals.

You don't have toworry about aliases, i.e., domains with CNAME records.

Copying/var/qmail/control/locals to /var/qmail/control/rcpthosts...

Now qmail will refuseto accept SMTP messages except to those hosts.

Make sure to changercpthosts if you add hosts to locals or virtualdomains!

安装 ucspi-tcp

#tar zxf ucspi-tcp-0.88-last.tar.gz

#cd ucspi-tcp-0.88

#make

在没有打补丁的情况下直接编译会有如下的错误提示:

/lib64/libc.so.6: couldnot read symbols: Bad value

collect2: ld returned 1exit status

make: *** [tcpserver]Error 1

现在来打补丁

# patch < /usr/local/src/qmail/netqmail-1.05/other-patches/ucspi-tcp-0.88.errno.patch

patching file error.h

# make

# make setup check

./install

./instcheck

ucspi-tcp安装完毕

安装 daemontools

# mkdir /package

# tar zxf daemontools-0.76.tar.gz -C/package/

#cd /package/admin/daemontools-0.76/

# cd src/

# patch </usr/local/src/qmail/netqmail-1.05/other-patches/daemontools-0.76.errno.patch

# cd ..

# package/install 若安装成功,则有如下提示:创建链接并启动了svscan

Creatingsymlink daemontools -> daemontools-0.76...

Makingcommand links in /command...

Makingcompatibility links in /usr/local/bin...

/serviceexists. I assume that svscan is already running.

下面查看一下创建的链接

#ll /command/ |awk '{print $9" " $10" " $11}'|sed 1d

envdir-> /package/admin/daemontools/command/envdir

envuidgid-> /package/admin/daemontools/command/envuidgid

fghack-> /package/admin/daemontools/command/fghack

multilog-> /package/admin/daemontools/command/multilog

pgrphack-> /package/admin/daemontools/command/pgrphack

readproctitle-> /package/admin/daemontools/command/readproctitle

setlock-> /package/admin/daemontools/command/setlock

setuidgid-> /package/admin/daemontools/command/setuidgid

softlimit-> /package/admin/daemontools/command/softlimit

supervise-> /package/admin/daemontools/command/supervise

svc-> /package/admin/daemontools/command/svc

svok-> /package/admin/daemontools/command/svok

svscan-> /package/admin/daemontools/command/svscan

svscanboot-> /package/admin/daemontools/command/svscanboot

svstat-> /package/admin/daemontools/command/svstat

tai64n-> /package/admin/daemontools/command/tai64n

tai64nlocal-> /package/admin/daemontools/command/tai64nlocal

再查看一下svscan进程是否已经运行

#ps -ef |grep svscan

#ps -aux |grep svscan

如果没有运行的话,作如下操作

# vi/etc/inittab 【添加下行】

SV:123456:respawn:/command/svscanboot

如果可以的话,需要reboot重启机器,重启之后在查看svscan进程,已经启动

# ps -ef |grep svscan |grep -v grep

root4088 1 0 16:35 ? 00:00:00 /bin/sh /command/svscanboot

root4119 4088 0 16:35 ? 00:00:00 svscan /service

安装vpopmail

if [ .$vpopmaildir = . ]

then

vpopmaildir=/home/vpopmail

fi

mkdir -p $vpopmaildir/etc

echo127.0.0.1:allow,RELAYCLIENT=\"\" > $vpopmaildir/etc/tcp.smtp

echo :allow >>$vpopmaildir/etc/tcp.smtp

tar zxf vpopmail-5.4.33.tar.gz

cd vpopmail-5.4.33

./configure

可能有如下错误提示

echo 'Install Vpopmail5.4.20'

checking whether passwordfile entry for the vpopmail user exists... No vpopmail user found.

Please add the vchkpwgroup and

vpopmail user. Then runconfigure again

no

configure: error: Couldnot compile and run even a trivial ANSI C program - check CC.

出现上述错误原因很可能是没有创建用户vchkpw和组vchkpw

# groupaddvchkpw -g 808

# useradd vpopmail -u 808 -g 808 -cVpopmail-Master -d /home/vpopmail/ -s /nonexistent

再次编译一下,编译成功,显示如下vpopmail当前的配置信息

vpopmail 5.4.33

Current settings

---------------------------------------

vpopmail directory =/home/vpopmail/

domains directory = /home/vpopmail//domains

uid = 808

gid = 808

roaming users = OFF--disable-roaming-users (default)

password learning = OFF--disable-learn-passwords (default)

md5 passwords = ON --enable-md5-passwords (default)

file locking = ON --enable-file-locking (default)

vdelivermail fsync =OFF --disable-file-sync (default)

make seekable = ON --enable-make-seekable (default)

clear passwd = ON --enable-clear-passwd (default)

user dir hashing = ON--enable-users-big-dir (default)

address extensions =OFF --disable-qmail-ext (default)

ip alias = OFF--disable-ip-alias-domains (default)

onchange script = OFF--disable-onchange-script (default)

domain quotas = OFF --disable-domainquotas(default)

auth module = cdb--enable-auth-module=cdb (default)

auth inc = -Icdb

auth lib =

system passwords = OFF --disable-passwd(default)

pop syslog = show only failed attempts--enable-logging=e (default)

auth logging = ON --enable-auth-logging (default)

spamassassin = OFF --disable-spamassassin(default)

maildrop = OFF --disable-maildrop(default)

# make

上述命令执行成功的话,会返回如下信息:

make[2]: Leavingdirectory `/usr/local/src/qmail/vpopmail-5.4.33'

make[1]: Leavingdirectory `/usr/local/src/qmail/vpopmail-5.4.33'

# echo"#define DOMAIN_QUOTAS 1" >>config.h

# make install-strip

上述命令执行成功的话,会返回如下信息:

make[3]: Leavingdirectory `/usr/local/src/qmail/vpopmail-5.4.33'

make[2]: Leavingdirectory `/usr/local/src/qmail/vpopmail-5.4.33'

****************************************************

If you plan to use the vpopmail usagedaemon

run the following commands:

cd vusaged && ./configure &&make

Then follow the INSTALL file to install

****************************************************

make[1]: Leavingdirectory `/usr/local/src/qmail/vpopmail-5.4.33'

# chown -R vpopmail/home/vpopmail/bin/vchkpw

# chmod 755 /home/vpopmail/bin/vchkpw

# ls -l /home/vpopmail/bin/vchkpw

-rwxr-xr-x 1 vpopmail vchkpw 128200 Aug 2516:56 /home/vpopmail/bin/vchkpw

Vpopmail安装完成

添加supervise 运行脚本

编辑/var/qmail/rc

#!/bin/sh

# Using splogger to send the log throughsyslog.

# Using qmail-local to deliver messages to~/Mailbox by default.

exec env -PATH="/var/qmail/bin:$PATH" \

qmail-start ./Maildir

如果写成

exec env -PATH="/Var/qmail/bin:$PATH" \

qmail-start ./Mailboxsplogger qmail

那么qmail发送日志将记录在maillog

----------------------------------------

使用如下脚本给run文件添加执行命令:

#!/bin/sh

echo 'create/var/qmail/supervise/qmail-pop3d/run'

echo '#!/bin/sh'>/var/qmail/supervise/qmail-pop3d/run

echo 'exec /usr/local/bin/tcpserver -H -R-v -c100 0 110 /var/qmail/bin/qmail-popup server.domain.com \' >>/var/qmail/supervise/qmail-pop3d/run

echo '/home/vpopmail/bin/vchkpw/var/qmail/bin/qmail-pop3d Maildir 2>&1' >>/var/qmail/supervise/qmail-pop3d/run

chmod 751/var/qmail/supervise/qmail-pop3d/run

echo 'create/var/qmail/supervise/qmail-pop3d/log/run'

echo '#!/bin/sh' >/var/qmail/supervise/qmail-pop3d/log/run

echo 'exec /usr/local/bin/setuidgid qmaill/usr/local/bin/multilog t s10000000 n20 /var/log/qmail/qmail-pop3d 2>&1'>> /var/qmail/supervise/qmail-pop3d/log/run

chmod 751/var/qmail/supervise/qmail-pop3d/log/run

echo 'create/var/qmail/supervise/qmail-smtpd/run'

echo '#!/bin/sh' >/var/qmail/supervise/qmail-smtpd/run

echo 'exec /usr/local/bin/tcpserver -h -p-R -u808 -g808 -v -c500 0 smtp /usr/local/bin/rblsmtpd/var/qmail/bin/qmail-smtpd /home/vpopmail/bin/vchkpw /usr/bin/true2>&1'>>/var/qmail/supervise/qmail-smtpd/run

chmod 751/var/qmail/supervise/qmail-smtpd/run

echo 'create /var/qmail/supervise/qmail-smtpd/log/run'

echo '#!/bin/sh' >/var/qmail/supervise/qmail-smtpd/log/run

echo 'exec /usr/local/bin/setuidgid qmaill/usr/local/bin/multilog t s10000000 n20 /var/log/qmail/qmail-smtpd 2>&1'>> /var/qmail/supervise/qmail-smtpd/log/run

chmod 751 /var/qmail/supervise/qmail-smtpd/log/run

echo 'create/var/qmail/supervise/qmail-send/run'

echo '#!/bin/sh' >/var/qmail/supervise/qmail-send/run

echo 'exec /var/qmail/rc' >>/var/qmail/supervise/qmail-send/run

chmod 751/var/qmail/supervise/qmail-send/run

echo 'create/var/qmail/supervise/qmail-send/log/run'

echo '#!/bin/sh' >/var/qmail/supervise/qmail-send/log/run

echo 'exec /usr/local/bin/setuidgid qmaill/usr/local/bin/multilog t s10000000 n20 /var/log/qmail/qmail-send 2>&1'>> /var/qmail/supervise/qmail-send/log/run

chmod 751/var/qmail/supervise/qmail-send/log/run

echo 'create/var/qmail/supervise/qmail-imapd/run'

echo '#!/bin/sh'>/var/qmail/supervise/qmail-imapd/run

echo 'exec 2>&1'>>/var/qmail/supervise/qmail-imapd/run

echo '/usr/local/bin/tcpserver -H -R -v-c100 -l $(hostname) 0 143/usr/local/etc/bincimap-config /usr/local/bin/bincimap-up --/home/vpopmail/bin/vchkpw /usr/local/bin/bincimapd Maildir \' >>/var/qmail/supervise/qmail-imapd/run

chmod 751 /var/qmail/supervise/qmail-imapd/run

echo 'create/var/qmail/supervise/qmail-monitor/run'

echo '#!/bin/sh'>/var/qmail/supervise/qmail-monitor/run

echo 'exec /var/qmail/bin/qmail-monitor'>>/var/qmail/supervise/qmail-monitor/run

echo 'create/var/qmail/supervise/qmail-imapd/log/run'

echo '#!/bin/sh' >/var/qmail/supervise/qmail-imapd/log/run

echo 'exec 2>&1' >>/var/qmail/supervise/qmail-imapd/log/run

echo 'exec /usr/local/bin/setuidgid qmaill/usr/local/bin/multilog t s10000000 n20 /var/log/qmail/qmail-imapd 2>&1'>> /var/qmail/supervise/qmail-imapd/log/run

chmod 751/var/qmail/supervise/qmail-imapd/log/run

也有如下完整的qmail启动脚本

文件名是/var/qmail/bin/qmailctl

#!/bin/sh

# description: the qmail MTA

PATH=/var/qmail/bin:/bin:/usr/bin:/usr/local/bin:/usr/local/sbin

export PATH

QMAILDUID=`id -u qmaild`

NOFILESGID=`id -g qmaild`

case "$1" in

start)

echo "Starting qmail"

if svok /service/qmail-send ; then

svc -u /service/qmail-send /service/qmail-send/log

else

echo "qmail-send supervise not running"

fi

if svok /service/qmail-smtpd ; then

svc -u /service/qmail-smtpd /service/qmail-smtpd/log

else

echo "qmail-smtpd supervise not running"

fi

if [ -d /var/lock/subsys ]; then

touch /var/lock/subsys/qmail

fi

;;

stop)

echo "Stopping qmail..."

echo " qmail-smtpd"

svc -d /service/qmail-smtpd /service/qmail-smtpd/log

echo " qmail-send"

svc -d /service/qmail-send /service/qmail-send/log

if [ -f /var/lock/subsys/qmail ]; then

rm /var/lock/subsys/qmail

fi

;;

stat)

svstat /service/qmail-send

svstat /service/qmail-send/log

svstat /service/qmail-smtpd

svstat /service/qmail-smtpd/log

qmail-qstat

;;

doqueue|alrm|flush)

echo "Flushing timeout table and sending ALRM signal toqmail-send."

/var/qmail/bin/qmail-tcpok

svc -a /service/qmail-send

;;

queue)

qmail-qstat

qmail-qread

;;

reload|hup)

echo "Sending HUP signal to qmail-send."

svc -h /service/qmail-send

;;

pause)

echo "Pausing qmail-send"

svc -p /service/qmail-send

echo "Pausing qmail-smtpd"

svc -p /service/qmail-smtpd

;;

cont)

echo "Continuing qmail-send"

svc -c /service/qmail-send

echo "Continuing qmail-smtpd"

svc -c /service/qmail-smtpd

;;

restart)

echo "Restarting qmail:"

echo "* Stopping qmail-smtpd."

svc -d /service/qmail-smtpd /service/qmail-smtpd/log

echo "* Sending qmail-send SIGTERM and restarting."

svc -t /service/qmail-send/service/qmail-send/log

echo "* Restarting qmail-smtpd."

svc -u /service/qmail-smtpd /service/qmail-smtpd/log

;;

cdb)

tcprules /etc/tcp.smtp.cdb /etc/tcp.smtp.tmp < /etc/tcp.smtp

chmod 644 /etc/tcp.smtp.cdb

echo "Reloaded /etc/tcp.smtp."

;;

help)

cat <<HELP

stop -- stops mail service (smtp connections refused, nothing goes out)

start -- starts mail service (smtp connection accepted, mail can go out)

pause -- temporarily stops mail service (connections accepted, nothingleaves)

cont -- continues paused mail service

stat -- displays status of mail service

cdb -- rebuild the tcpserver cdb file for smtp

restart -- stops and restarts smtp, sendsqmail-send a TERM & restarts it

doqueue -- schedules queued messages forimmediate delivery

reload -- sends qmail-send HUP, rereadinglocals and virtualdomains

queue -- shows status of queue

alrm -- same as doqueue

flush -- same as doqueue

hup -- same as reload

HELP

;;

*)

echo "Usage: $0{start|stop|restart|doqueue|flush|reload|stat|pause|cont|cdb|queue|help}"

exit 1

;;

esac

exit 0

创建测试账户

创建域

添加域目录

# mkdir -p /home/mail/a/n/i

添加域名并设置管理员密码[123456]

# ~vpopmail/bin/vadddomain -d /home/mail/c/a/d/ cadvip.com

验证域

# cat /var/qmail/users/assign

+cadvip.com-:cadvip.com:808:808:/home/mail/c/a/d/domains/cadvip.com:-::#

ls /home/mail/c/a/d/domains/cadvip.com

postmastervpasswd vpasswd.cdb

# cd /home/mail/c/a/d/domains/cadvip.com

# grep post/home/mail/c/a/d/domains/cadvip.com/vpasswd

postmaster:$1$WALkP6wU$c0vKm1THTBlfJnLuSrgzu0:1:0:Postmaster:/home/mail/c/a/d/domains/cadvip.com/postmaster:NOQUOTA:123456

添加账户

aniya并设置初始密码为123456

# ~vpopmail/bin/[email protected]

Please enter password [email protected]:

enter password again:

验证用户

aniya是否生成

# grep '^aniya' vpasswd

aniya:$1$wT/4S.GX$Kr3F/L4Yk4ECBSlpFSdDV0:1:0:aniya:/home/mail/a/n/i//domains/aniya.zhaoyj.com/aniya:NOQUOTA:123456

查看账户下生成的子目录

aniya.zhaoyj.com]# ls aniya/Maildir/

curnew tmp

发信测试

系统发信

[root@XKWB5705 qmail-send]# date

Fri Aug 26 18:01:34 CST 2011

[root@XKWB5705 qmail-send]# [email protected]

Subject: dns

dns

.

Cc: [email protected]

验证收信

[root@XKWB5705qmail-send]# ls -l /home/mail/c/a/d/domains/cadvip.com/postmaster/Maildir/new/

total 8

-rw------- 1 vpopmail vchkpw 342 Aug 2609:39 1314322749.12138.XKWB5705,S=342

-rw------- 1 vpopmail vchkpw 345 Aug 2618:01 1314352867.22180.XKWB5705,S=345

#从时间上可以看到[email protected]已经收到信

#为了证实这个问题,需要查看一下收件箱,如下:

#查看收信内容

[root@XKWB5705 qmail-send]# cat!$1314352867.22180.XKWB5705,S=345

cat/home/mail/c/a/d/domains/cadvip.com/postmaster/Maildir/new/1314352867.22180.XKWB5705,S=345

Return-Path:<[email protected]>

Delivered-To: [email protected]

Received: (qmail 22177 invoked by uid 0);26 Aug 2011 10:01:07 -0000

Date: 26 Aug 2011 10:01:07 -0000

Message-ID:<[email protected]>

From: [email protected]

To: [email protected]

Subject: dns

Cc: [email protected]

Dns

去gmail邮箱验证

时间截图如下:

查看日志

[root@XKWB5705 qmail-send]# [email protected] current |tail -1|tai64nlocal|awk '{print $4""$5}'|tr -d :

delivery 549

[root@XKWB5705 qmail-send]# grep"delivery 549" current

@400000004e576eed07b8e7e4 starting delivery549: msg 4817597 to local [email protected]

@400000004e576eed0805db1c delivery 549:success: did_0+0+1/


你可能感兴趣的:(mail)