- 论坛徽章:
- 0
|
本帖最后由 chenyu105 于 2014-10-30 15:48 编辑
以下是我的操作流程,请各位帮忙看看哪里有设置错误的地方?多谢!
[root@localhost etc]# cat /etc/mail.rc
set ssl-verify=ignore
set from="mymail@gmail.com"
set smtp=smtps://smtp.gmail.com:465
set smtp-auth=login
set smtp-auth-user=mymail
set smtp-auth-password=mypassword
[root@localhost etc]#
[root@localhost Test]# ping smtp.gmail.com
PING gmail-smtp-msa.l.google.com (74.125.204.108) 56(84) bytes of data.
64 bytes from 74.125.204.108: icmp_seq=2 ttl=38 time=287 ms
64 bytes from 74.125.204.108: icmp_seq=3 ttl=38 time=287 ms
64 bytes from 74.125.204.108: icmp_seq=4 ttl=38 time=289 ms
[root@localhost Test]# sendmail -vt <mail_contend.txt
Mail Delivery Status Report will be mailed to <root>.
[root@localhost Test]#
[root@localhost Test]# vi /var/log/maillog
Oct 30 03:44:43 localhost postfix/pickup[14169]: 000F6100B78: uid=0 from=<root>
Oct 30 03:44:43 localhost postfix/cleanup[14173]: 000F6100B78: message-id=<20141030074443.000F6100B78@localhost.localdomain>
Oct 30 03:44:43 localhost postfix/qmgr[2213]: 000F6100B78: from=<root@localhost.localdomain>, size=314, nrcpt=1 (queue active)
Oct 30 03:44:49 localhost postfix/smtp[14174]: 000F6100B78: to=<mymail@gmail.com>, relay=gmail-smtp-in.l.google.com[74.125.28.27]:25, delay=6.7, delays=0.13/0.01/2.4/4.2, dsn=2.0.0, status=sent (250 2.0.0 OK 1414655089 ku8si5819764pbc.247 - gsmtp)
Oct 30 03:44:49 localhost postfix/cleanup[14173]: A7E09100B79: message-id=<20141030074449.A7E09100B79@localhost.localdomain>
Oct 30 03:44:49 localhost postfix/bounce[14182]: 000F6100B78: sender delivery status notification: A7E09100B79
Oct 30 03:44:49 localhost postfix/qmgr[2213]: A7E09100B79: from=<>, size=2024, nrcpt=1 (queue active)
Oct 30 03:44:49 localhost postfix/qmgr[2213]: 000F6100B78: removed
Oct 30 03:44:49 localhost postfix/local[14183]: A7E09100B79: to=<root@localhost.localdomain>, relay=local, delay=0.16, delays=0.03/0.01/0/0.12, dsn=2.0.0, status=sent (delivered to mailbox)
Oct 30 03:44:49 localhost postfix/qmgr[2213]: A7E09100B79: removed
|
|