1. 程式人生 > 實用技巧 >Linux下mail伺服器應用之郵件系統

Linux下mail伺服器應用之郵件系統

SMTP,:(Simple Mail Transmission Protocol)簡單郵件傳輸協議,TCP 25,smtps

POP3,(Post Office Protocol)第3版郵局協議,TCP 110,pops

IMAP4,(Internet Mail Access Protocol)因特網訊息訪問協議,TCP 143,imaps

Mine MIME:(Multipurpose Internet Mail Extensions)多用途、多功能網際網路郵件擴充套件:以文字的方式對二進位制資料做重新編碼,並能夠實現以文字協議傳送二進位制資料。常用編碼編碼方式:base64.

v 商業郵件系統

ü Exchange:微軟公司的重量級產品,與Windows系列軟體產品相整合,協作性較好

ü Notes/DominoIBM公司的商業電子郵件和辦公協作軟體產品,功能豐富、強大,提供跨平臺支援

v 開源郵件系統

ü Sendmail:資格最古老,執行穩定,但安全性欠佳

ü Qmail:有更好的執行效率,配置、管理也很方便

ü Postfix:相容Sendmail,採用模組化設計,在投遞效率、穩定性、服務效能及安全性方面表現優秀

v Sendmail:提供郵件傳送服務(SMTP

v Dovecot:提供郵件收取服務(POP3

v Outlook Express

:用於收發信的客戶端工具

郵件系統角色

MUA(郵件使用者代理)、MTA(郵件傳輸代理)、MDA(郵件分發代理)、MAA(郵件訪問代理)

MUA: (Mail User Agent): 郵件使用者代理:就是使用者與電子郵件系統的介面,在大多數情況下就是在郵件客戶端上執行的程式。

Windows:outlook express foxmail

Lnux:Thunderbird(雷鳥) evolution

MTA (Mail Transfer Agent):郵件傳輸代理:主要功能傳送和接收郵件,同時向發件人報告郵件的傳送情況。根據用途可將郵件伺服器分為郵件伺服器(SMTP 伺服器)和接受郵件伺服器(POP3/IMAP4 伺服器)。

windows:電子郵件服務 ,exchange server,mdaemon,lotus notes Linux:sendmail(50%),postfix,qmail

MDA (Mail Delivery Agent):郵件投遞代理:到本地郵局之後,將郵件放在使用者的郵箱中。可以是MTA 下面的一個小程式,也可以單獨是一個軟體例如procmail,maildrop。

MAA:(Mail Access Agent)(接受伺服器)郵件訪問代理:代為MUA 提供訪問message store 並接收郵件功能的一臺IMAP/POP3 伺服器,常用courrier-imap ,dovecot。

郵件安全:

1.垃圾郵件 反垃圾郵件 SpamAssassin,認證(地址,賬號),正向解析和反向

2.病毒 clamav(查毒)特徵程式碼庫

3.sendmail 郵件呼叫器 mailscanner

SASL:(Simple Authorization Secure Layer)簡單認證安全層協議,用於為沒有提供認證功能的協議提供認證功能。軟體包:cyus-sasl,程序:saslauthd。

整合STMP,clainav(掃描病毒),SpamAssassin(apache 提供,掃描垃圾郵件)的工具成稱之為caller(呼叫器)。常見呼叫器Caller:mimedefang Mailscanner amavisd-new。

郵箱型別:

mbox 所有郵件放在同一個檔案中,新郵件直接追加在檔案後面。

maildir 建一個目錄,每一封郵件被當成一個單獨檔案存放在目錄裡

redhat 預設使用mbox 方式,sendmail 預設使用mbox,postfix 預設兩種都支援。

SMIME:提供端到端的郵件加密解密協議。

sendmail郵件系統

sendmail所需軟體包:

sendmail-8.13.8-2.el5.i386.rpm #必選,主程式包

sendmail-cf-8.13.8-2.el5.i386.rpm #必選,配置檔案包

sendmail-devel-8.13.8-2.el5.i386.rpm

sendmail-doc-8.13.8-2.el5.i386.rpm

m4-1.4.5-3.el5.1.i386.rpm #m4工具包

Sendmail服務軟體包

sendmail-8.13.8-2.el5.i386.rpmsendmail服務的主程式包,伺服器端必須安裝該軟體包。
sendmail-cf-8.13.8-2.el5.i386.rpmsendmail巨集檔案包
sendmail-devel-8.13.8-2.el5.i386.rpmsendmail伺服器開發工具軟體包
sendmail-doc-8.13.8-2.el5.i386.rpmsendmail伺服器的說明文件
m4-1.4.5-3.el5.1.i386.rpm巨集處理過慮軟體包
dovecot-1.0-1.2.rc15.el5.i386.rpm接收郵件軟體包,安裝時需要注意安裝順序

Sendmail相關配置文件

sendmail.cfsendmail核心配置檔案,位於/etc/mail/sendmail/sendmail.cf

sendmail.mcsendmail提供sendmail檔案模板,通過編輯此檔案後再使用m4工具將結果匯入sendmail.cf完成配置sendmail核心配置檔案,降低配置複雜度,位於/etc/mail/sendmail.mc

local-host-name定義收發郵件伺服器的域名和主機別名,位於/etc/mail/local-host-name

access.db用來設定sendmail伺服器為哪些主機進行轉發郵件,位於/etc/mail/access.db

aliases.db:用來定義郵箱別名,位於/etc/mail/aliases.db

virtusertable.db用來設定虛擬賬戶,位於/etc/mail/virtusertable.db

圖形化webmin管理sendmail伺服器:

使用webmin管理linux的sendmail服務

到webmin的官方網站下載webmin軟體:

Webmin官網:http://www.webmin.com/

配置步驟:

我下載的是webmin-1.580-1.noarch.rpm我把它放到/root目錄下了。

[[email protected] ~]# rpm -ivh webmin-1.580-1.noarch.rpm

[[email protected] ~]# service webmin start

[[email protected] ~]# service webmin status

Webmin (pid 5388) is running

注:webmin預設埠為10000.

其它資料:

①.linux中啟動sendmail很慢的解決方法

linux 系統啟動時,發現sendmail啟動很慢,發現是/etc/hosts檔案沒有添另hostname名稱.

1、修改之前

127.0.0.1 localhost

2、修改之後

127.0.0.1 localhost mailserver

重啟系統,發現sendmail啟動的進候變快了.

②.sendmail錯誤cannot open `/usr/share/sendmail-cf/m4/cf.m4

配置sendmail,生成配置檔案時,出現以下錯誤:

[[email protected] mail]# m4 sendmail.mc >sendmail.cf

sendmail.mc:10: m4: cannot open `/usr/share/sendmail-cf/m4/cf.m4': No such file or directory

通過安裝sendmail-cf解決

[[email protected] mail]# yum -y install sendmail-cf

③.問題:使用 命令 mail -s "sdf" [email protected] </root/install.log 發不了郵件。

檢視日誌報錯:/var/log/maillog

My unqualified host name (localhost) unknown; sleeping for retry

問題原因:sendmail配置檔案有問題。

修改sendmail配置檔案

#Dj$w.Foo.COM

Djlocalhost.localdomain ------------>新增

重啟sendmail

sendmail郵件系統的一個案例

實驗拓撲

:在mail.bj.com安裝sendmail並進行簡單配置

[[email protected] ~]# mkdir /mnt/cdrom

[[email protected] ~]# mount /dev/cdrom /mnt/cdrom/

mount: block device /dev/cdrom is write-protected, mounting read-only

[[email protected] ~]# cd /mnt/cdrom/Server/

[[email protected] Server]# rpm -qa |grep -E "sendmail|m4"

m4-1.4.5-3.el5.1

sendmail-8.13.8-2.el5

[[email protected] Server]# rpm -ivh sendmail-

sendmail-8.13.8-2.el5.i386.rpm #主程式包

sendmail-cf-8.13.8-2.el5.i386.rpm #配置工具包

sendmail-devel-8.13.8-2.el5.i386.rpm

sendmail-doc-8.13.8-2.el5.i386.rpm

[[email protected] Server]# rpm -ivh sendmail-cf-8.13.8-2.el5.i386.rpm

[[email protected] Server]# cd /etc/mail/

[[email protected] mail]# ls

Makefile domaintable.db mailertable.db submit.mc

access helpfile sendmail.cf trusted-users

access.db local-host-names sendmail.mc virtusertable

domaintable mailertable submit.cf virtusertable.db

編輯主要配置檔案:

[[email protected] mail]# vim sendmail.mc

116 DAEMON_OPTIONS(`Port=smtp,Addr=0.0.0.0, Name=MTA')dnl

[[email protected] ~]# netstat -tupln |grep sendmail

tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 3407/sendmail: acce

[[email protected] ~]# service sendmail restart

[[email protected] ~]# netstat -tupln |grep sendmail

tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 4440/sendmail: acce

中繼檔案:

[[email protected] mail]# vim access #增加10,11,12行

9 Connect:127.0.0.1 RELAY

10 Connect:10.106.6 RELAY

11 bj.com OK

12 sh.com RELAY

表明郵件伺服器的域名:

[[email protected] mail]# vim local-host-names

增加:bj.com

重新啟動sendmail伺服器:

[[email protected] mail]# chkconfig sendmail on

[[email protected] mail]# service sendmail restart

Shutting down sm-client: [ OK ]

Shutting down sendmail: [ OK ]

Starting sendmail: [ OK ]

Starting sm-client: [ OK ]

新建賬戶:

[[email protected] ~]# useradd user1

[[email protected] ~]# useradd user2

[[email protected] ~]# echo "123" |passwd --stdin user1

[[email protected] ~]# echo "123" |passwd --stdin user2

:搭建dns伺服器,並作相關配置:

[[email protected] ~]# cd /mnt/cdrom/Server/

[[email protected] Server]# rpm -ivh bind-9.3.4-10.P1.el5.i386.rpm

[[email protected] Server]# rpm -ivh bind-chroot-9.3.4-10.P1.el5.i386.rpm

[[email protected]]# rpm -ivh caching-nameserver-9.3.4-10.P1.el5.i386.rpm

[[email protected] Server]# cd /var/named/chroot/etc/

[[email protected] etc]# ll

[[email protected] etc]# cp -p named.caching-nameserver.conf named.conf

[[email protected] etc]# vim named.conf

15 listen-on port 53 { any; };

27 allow-query { any; };

36 match-clients { any; };

37 match-destinations { any; };

[[email protected] etc]# vim named.rfc1912.zones

增加以下幾行:

20 zone "bj.com" IN {

21 type master;

22 file "bj.com.db";

23 allow-update { none; };

24 };

[[email protected] etc]# cd ../var/named/

[[email protected] named]# ll

[[email protected] named]# cp -p localhost.zone bj.com.db

[[email protected] named]# vim bj.com.db

2 @ IN SOA ns.bj.com. root (

9 @ IN NS ns.bj.com.

10 ns IN A 10.106.6.254

11 mail IN A 10.106.6.254

12 pop3 IN CNAME mail

13 smtp IN CNAME mail

14 @ IN MX 10 mail

[[email protected] named]# chkconfig named on

[[email protected] named]# service named start

Starting named: [ OK ]

:客戶端測試dns解析,進行簡單配置:

:進行配置,並安裝接收dovecot伺服器:

進行系統配置:

[[email protected] named]# vim /etc/resolv.conf

1 nameserver 10.106.6.254

[[email protected] named]# vim /etc/sysconfig/network

3 HOSTNAME=mail.bj.com

[[email protected] named]# vim /etc/hosts

127.0.0.1 mail.bj.com localhost.localdomain localh ost

[[email protected] named]#init 6

[[email protected] ~]# yum install -y dovecot

[[email protected] ~]# chkconfig dovecot on

[[email protected] ~]# service dovecot start

Starting Dovecot Imap: [ OK ] [[email protected] ~]# netstat -tupln |grep dovecot

(110,143,993(imaps),995(pop3s))

:bj.com客戶端傳送資訊測試:(使用foxmail)

user1給user1傳送資訊:

user1給user2傳送資訊:

日誌分析:

Mar 23 10:45:50 mail sendmail[3938]: q2N2jovd003938: from=<[email protected]>, size=1430, class=0, nrcpts=1, msgid=<[email protected]>, proto=ESMTP, daemon=MTA, relay=[10.106.6.190]

Mar 23 10:45:50 mail sendmail[3939]: q2N2jovd003938: to=<[email protected]>, ctladdr=<[email protected]> (501/501), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=31594, dsn=2.0.0, stat=Sent

Mar 23 10:46:08 mail dovecot: pop3-login: Login: user=<user1>, method=PLAIN, rip=::ffff:10.106.6.190, lip=::ffff:10.106.6.254

Mar 23 10:46:09 mail dovecot: POP3(user1): Disconnected: Logged out top=0/0, retr=1/1696, del=0/1, size=1679

Mar 23 10:58:20 mail sendmail[4012]: q2N2wKKs004012: from=<[email protected]>, size=1481, class=0, nrcpts=1, msgid=<[email protected]>, proto=ESMTP, daemon=MTA, relay=[10.106.6.190]

Mar 23 10:58:20 mail sendmail[4013]: q2N2wKKs004012: to=<[email protected]>, ctladdr=<[email protected]> (501/501), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=31645, dsn=2.0.0, stat=Sent

Mar 23 10:59:09 mail dovecot: pop3-login: Aborted login: user=<[email protected]>, method=PLAIN, rip=::ffff:10.106.6.190, lip=::ffff:10.106.6.254

Mar 23 10:59:09 mail dovecot: pop3-login: Login: user=<user2>, method=PLAIN, rip=::ffff:10.106.6.190, lip=::ffff:10.106.6.254

Mar 23 10:59:09 mail dovecot: POP3(user2): Disconnected: Logged out top=0/0, retr=1/1748, del=0/2, size=3448

:配置mail.sh.com上海伺服器:

安裝sendmail

[[email protected] ~]# mkdir /mnt/cdrom

[[email protected] ~]# mount /dev/cdrom /mnt/cdrom/

[[email protected] ~]# cd /mnt/cdrom/Server/

[[email protected] Server]# rpm -qa |grep -E "sendmail|m4"

[[email protected] Server]# rpm -ivh sendmail-cf-8.13.8-2.el5.i386.rpm

[[email protected] Server]# cd /etc/mail/

[[email protected] mail]# ls

編輯主要配置檔案:

[[email protected] mail]# vim sendmail.mc

116 DAEMON_OPTIONS(`Port=smtp,Addr=0.0.0.0, Name=MTA')dnl

[[email protected] ~]# netstat -tupln |grep sendmail

tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 3607/sendmail: acce

[[email protected] ~]# service sendmail restart

[[email protected] ~]# netstat -tupln |grep sendmail

tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 3528/sendmail: acce

中繼檔案:

[[email protected] mail]# vim access #增加10,11,12行

9 Connect:127.0.0.1 RELAY

10 Connect:10.106.6 RELAY

11 sh.com OK

12 bj.com RELAY

表明郵件伺服器的域名:

[[email protected] mail]# vim local-host-names

增加:sh.com

重新啟動sendmail伺服器:

[[email protected] mail]#chkconfig sendmail on

[[email protected] mail]# service sendmail restart

Shutting down sm-client: [ OK ]

Shutting down sendmail: [ OK ]

Starting sendmail: [ OK ]

Starting sm-client: [ OK ]

新建賬戶:

[[email protected] ~]# useradd user3

[[email protected] ~]# useradd user4

[[email protected] ~]# echo "123" |passwd --stdin user3

[[email protected] ~]# echo "123" |passwd --stdin user4

:搭建mail.sh.com的dns伺服器,並作相關配置:

[[email protected] ~]# cd /mnt/cdrom/Server/

[[email protected] Server]# rpm -ivh bind-9.3.4-10.P1.el5.i386.rpm

[[email protected] Server]# rpm -ivh bind-chroot-9.3.4-10.P1.el5.i386.rpm

[[email protected]]# rpm -ivh caching-nameserver-9.3.4-10.P1.el5.i386.rpm

[[email protected] Server]# cd /var/named/chroot/etc/

[[email protected] etc]# ll

[[email protected] etc]# cp -p named.caching-nameserver.conf named.conf

[[email protected] etc]# vim named.conf

15 listen-on port 53 { any; };

27 allow-query { any; };

36 match-clients { any; };

37 match-destinations { any; };

[[email protected] etc]# vim named.rfc1912.zones

增加以下幾行:

20 zone "sh.com" IN {

21 type master;

22 file "sh.com.db";

23 allow-update { none; };

24 };

[[email protected] etc]# cd ../var/named/

[[email protected] named]# ll

[[email protected] named]# cp -p localhost.zone sh.com.db

[[email protected] named]# vim sh.com.db

2 @ IN SOA ns.sh.com. root (

9 @ IN NS ns.sh.com.

10 ns IN A 10.106.6.253

11 @ IN MX 10 mail

12 mail IN A 10.106.6.253

13 pop3 IN CNAME mail

14 smtp IN CNAME mail

[[email protected] named]# chkconfig named on

[[email protected] named]# service named start

Starting named: [ OK ]

客戶端測試dns解析:

:在sh.com進行系統配置,並安裝接收伺服器:

[[email protected] named]# vim /etc/resolv.conf

1 nameserver 10.106.6.253

[[email protected] named]# vim /etc/sysconfig/network

3 HOSTNAME=mail.sh.com

[[email protected] named]# vim /etc/hosts

127.0.0.1 mail.sh.com localhost.localdomain localh ost

[[email protected] named]#init 6

安裝接受伺服器:

[[email protected] ~]# yum install -y dovecot

[[email protected] ~]# chkconfig dovecot on

[[email protected] ~]# service dovecot start

Starting Dovecot Imap: [ OK ] [[email protected] ~]# netstat -tupln |grep dovecot

(110,143,993(imaps),995(pop3s))

:sh.com的客戶端測試,user3給user4發信息:

:做dns轉發和配置反向解析

在mail.bj.com上做dns轉發和反向解析:

[[email protected] ~]# cd /var/named/chroot/etc/

[[email protected] etc]# vim named.conf

28 forwarders { 10.106.6.253; };

[[email protected] etc]# rndc reload

server reload successful

[[email protected] etc]# vim named.rfc1912.zones

55 zone "6.106.10.in-addr.arpa" IN {

56 type master;

57 file "10.106.6.db";

58 allow-update { none; };

59 };

[[email protected] etc]# cd ../var/named/

[[email protected] named]# ll

[[email protected] named]# cp -p named.local 10.106.6.db

[[email protected] named]# vim 10.106.6.db

254 IN PTR mail.bj.com.

153 IN PTR mail.sh.com.

[[email protected] named]# rndc reload

server reload successful

在mail.sh.com上做dns轉發和反向解析:

[[email protected] ~]# cd /var/named/chroot/etc/

[[email protected] etc]# vim named.conf

28 forwarders { 10.106.6.254; };

[[email protected] etc]# rndc reload

server reload successful

[[email protected] etc]# vim named.rfc1912.zones

55 zone "6.106.10.in-addr.arpa" IN {

56 type master;

57 file "10.106.6.db";

58 allow-update { none; };

59 };

[[email protected] etc]# cd ../var/named/

[[email protected] named]# ll

[[email protected] named]# cp -p named.local 10.106.6.db

[[email protected] named]# vim 10.106.6.db

254 IN PTR mail.bj.com.

153 IN PTR mail.sh.com.

[[email protected] named]# rndc reload

server reload successful

? :測試通訊情況

(bj.com的客戶[email protected]與sh.com的客戶[email protected]通訊)

? :監控的日誌資訊:

mail.bj.com的日誌資訊:

[[email protected] ~]# tail -f /var/log/maillog

Mar 23 15:46:07 mail dovecot: pop3-login: Aborted login: user=<[email protected]>, method=PLAIN, rip=::ffff:10.106.6.190, lip=::ffff:10.106.6.254

Mar 23 15:46:07 mail dovecot: pop3-login: Login: user=<user2>, method=PLAIN, rip=::ffff:10.106.6.190, lip=::ffff:10.106.6.254

Mar 23 15:46:07 mail dovecot: POP3(user2): Disconnected: Logged out top=0/0, retr=0/0, del=0/3, size=5025

Mar 23 15:46:13 mail sendmail[2298]: q2N7kCbh002298: from=<[email protected]>, size=1458, class=0, nrcpts=1, msgid=<[email protected]>, proto=ESMTP, daemon=MTA, relay=[10.106.6.190]

Mar 23 15:46:16 mail sendmail[2300]: q2N7kCbh002298: to=<[email protected]>, ctladdr=<[email protected]> (500/500), delay=00:00:03, xdelay=00:00:03, mailer=esmtp, pri=121458, relay=mail.sh.com. [10.106.6.253], dsn=2.0.0, stat=Sent (q2N8W6jM003583 Message accepted for delivery)

Mar 23 15:48:38 mail sendmail[2307]: q2N7mc6a002307: from=<[email protected]>, size=3353, class=0, nrcpts=1, msgid=<[email protected]>, proto=ESMTP, daemon=MTA, relay=[10.106.6.253]

Mar 23 15:48:38 mail sendmail[2308]: q2N7mc6a002307: to=<[email protected]>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=33514, dsn=2.0.0, stat=Sent

Mar 23 15:48:54 mail dovecot: pop3-login: Aborted login: user=<[email protected]>, method=PLAIN, rip=::ffff:10.106.6.190, lip=::ffff:10.106.6.254

Mar 23 15:48:54 mail dovecot: pop3-login: Login: user=<user1>, method=PLAIN, rip=::ffff:10.106.6.190, lip=::ffff:10.106.6.254

Mar 23 15:48:54 mail dovecot: POP3(user1): Disconnected: Logged out top=0/0, retr=1/3623, del=0/1, size=3606

Mar 23 15:51:04 mail sendmail[2320]: q2N7p4Pg002320: from=<[email protected]>, size=1470, class=0, nrcpts=1, msgid=<[email protected]>, proto=ESMTP, daemon=MTA, relay=[10.106.6.190]

Mar 23 15:51:04 mail sendmail[2322]: q2N7p4Pg002320: to=<[email protected]>, ctladdr=<[email protected]> (500/500), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=121470, relay=mail.sh.com. [10.106.6.253], dsn=2.0.0, stat=Sent (q2N8aucK003603 Message accepted for delivery)

Mar 23 15:52:25 mail sendmail[2325]: q2N7qPlW002325: from=<[email protected]>, size=3514, class=0, nrcpts=1, msgid=<[email protected]>, proto=ESMTP, daemon=MTA, relay=[10.106.6.253]

Mar 23 15:52:25 mail sendmail[2326]: q2N7qPlW002325: to=<[email protected]>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=33675, dsn=2.0.0, stat=Sent

Mar 23 15:52:34 mail dovecot: pop3-login: Aborted login: user=<[email protected]>, method=PLAIN, rip=::ffff:10.106.6.190, lip=::ffff:10.106.6.254

Mar 23 15:52:34 mail dovecot: pop3-login: Login: user=<user1>, method=PLAIN, rip=::ffff:10.106.6.190, lip=::ffff:10.106.6.254

Mar 23 15:52:34 mail dovecot: POP3(user1): Disconnected: Logged out top=0/0, retr=1/3786, del=0/2, size=7375

mail.sh.com的日誌資訊:

[[email protected] ~]# tail -f /var/log/maillog

Mar 23 16:24:06 mail dovecot: pop3-login: Login: user=<user3>, method=PLAIN, rip=::ffff:10.106.6.200, lip=::ffff:10.106.6.253

Mar 23 16:24:06 mail dovecot: POP3(user3): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0

Mar 23 16:24:07 mail dovecot: pop3-login: Login: user=<user4>, method=PLAIN, rip=::ffff:10.106.6.200, lip=::ffff:10.106.6.253

Mar 23 16:24:07 mail dovecot: POP3(user4): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0

Mar 23 16:32:07 mail sendmail[3583]: q2N8W6jM003583: from=<[email protected]>, size=1617, class=0, nrcpts=1, msgid=<[email protected]>, proto=ESMTP, daemon=MTA, relay=mail.bj.com [10.106.6.254]

Mar 23 16:32:08 mail sendmail[3584]: q2N8W6jM003583: to=<[email protected]>, delay=00:00:01, xdelay=00:00:01, mailer=local, pri=31791, dsn=2.0.0, stat=Sent

Mar 23 16:32:51 mail dovecot: pop3-login: Login: user=<user3>, method=PLAIN, rip=::ffff:10.106.6.200, lip=::ffff:10.106.6.253

Mar 23 16:32:51 mail dovecot: POP3(user3): Disconnected: Logged out top=0/0, retr=1/1898, del=1/1, size=1881

Mar 23 16:34:29 mail sendmail[3595]: q2N8YTvQ003595: from=<[email protected]>, size=3193, class=0, nrcpts=1, msgid=<[email protected]>, proto=SMTP, daemon=MTA, relay=[10.106.6.200]

Mar 23 16:34:29 mail sendmail[3597]: q2N8YTvQ003595: to=<[email protected]>, ctladdr=<[email protected]> (500/500), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=123193, relay=mail.bj.com. [10.106.6.254], dsn=2.0.0, stat=Sent (q2N7mc6a002307 Message accepted for delivery)

Mar 23 16:36:56 mail sendmail[3603]: q2N8aucK003603: from=<[email protected]>, size=1629, class=0, nrcpts=1, msgid=<[email protected]>, proto=ESMTP, daemon=MTA, relay=mail.bj.com [10.106.6.254]

Mar 23 16:36:56 mail sendmail[3604]: q2N8aucK003603: to=<[email protected]>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=31803, dsn=2.0.0, stat=Sent

Mar 23 16:37:04 mail dovecot: pop3-login: Login: user=<user3>, method=PLAIN, rip=::ffff:10.106.6.200, lip=::ffff:10.106.6.253

Mar 23 16:37:04 mail dovecot: POP3(user3): Disconnected: Logged out top=0/0, retr=1/1909, del=1/1, size=1892

Mar 23 16:38:16 mail sendmail[3611]: q2N8cGVM003611: from=<[email protected]>, size=3354, class=0, nrcpts=1, msgid=<[email protected]>, proto=SMTP, daemon=MTA, relay=[10.106.6.200]

Mar 23 16:38:16 mail sendmail[3613]: q2N8cGVM003611: to=<[email protected]>, ctladdr=<[email protected]> (500/500), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=123354, relay=mail.bj.com. [10.106.6.254], dsn=2.0.0, stat=Sent (q2N7qPlW002325 Message accepted for delivery)

轉載於:https://blog.51cto.com/jinjianping/996904