快速业务通道

linux4.0 sendmail server relevant config

作者 佚名技术 来源 Linux系统 浏览 发布时间 2012-04-01
, 368C written

10. [root@michael mail]# makemap hash access.db <access.

(转换access to access.db,sendmail 只能识别access.db database)

11 . [root@michael ~]# netstat -ntpl | grep 25

tcp 0 0 0.0.0.0:643 0.0.0.0:* LISTEN 2582/ypserv

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

12. [root@michael ~]# telnet 192.168.5.1 25

Trying 192.168.5.1...

Connected to michael.fung.com (192.168.5.1).

Escape character is ''^]''.

220 michael.fung.com ESMTP Sendmail 8.13.1/8.13.1; Wed, 5 Aug 2009 02:02:45 0800

ehlo localhost

250-michael.fung.com Hello michael.fung.com [192.168.5.1], pleased to meet you

250-ENHANCEDSTATUSCODES

250-PIPELINING

250-8BITMIME

250-SIZE

250-DSN

250-ETRN

250-AUTH GSSAPI DIGEST-MD5 CRAM-MD5

250-DELIVERBY

250 HELP

说明:sendmail in the SMTP OK

13.[root@michael ~]# mail (用来收取root user the mail)

Mail version 8.1 6/6/93. Type ? for help.

"/var/spool/mail/root": 8 messages 8 new

>N 1 root@michael.fung.co Wed Aug 5 01:39 25/955 "Anacron job ''cron.dai"

N 2 root@michael.fung.co Wed Aug 5 01:39 25/955 "Anacron job ''cron.dai"

N 3 root@michael.fung.co Wed Aug 5 01:39 25/953 "Anacron job ''cron.dai"

N 4 root@michael.fung.co Wed Aug 5 01:39 40/1334 "LogWatch for michael."

N 5 root@michael.fung.co Wed Aug 5 01:39 55/1638 "LogWatch for michael."

N 6 root@michael.fung.co Wed Aug 5 01:39 139/3856 "LogWatch for michael."

N 7 root@michael.fung.co Wed Aug 5 01:55 191/6869 "LogWatch for michael."

N 8 root@michael.fung.co Wed Aug 5 01:55 25/953 "Anacron job ''cron.dai".

14. [root@michael ~]# telnet 192.168.5.1 25

Trying 192.168.5.1...

Connected to michael.fung.com (192.168.5.1).

Escape character is ''^]''.

220 michael.fung.com ESMTP Sendmail 8.13.1/8.13.1; Wed, 5 Aug 2009 02:09:03 0800

helo fung.com

250 michael.fung.com Hello michael.fung.com [192.168.5.1], pleased to meet you

mail from:root@fung.com

250 2.1.0 root@fung.com... Sender ok

rcpt to:root@fung.com

250 2.1.5 root@fung.com... Recipient ok

data

354 Enter mail, end with "." on a line by itself

dkkkkdl

dkkdkd

jkjddj

djjd

.

250 2.0.0 n74I933o004457 Message accepted for delivery

quit

221 2.0.0 michael.fung.com closing connection

Connection closed by foreign host.

You have new mail in /var/spool/mail/root

15. [root@michael ~]# mail

Mail version 8.1 6/6/93. Type ? for help.

"/var/spool/mail/root": 9 messages 9 new

&gt;N 1 root@michael.fung.co Wed Aug 5 01:39 25/955 "Anacron job ''cron.dai"

N 2 root@michael.fung.co Wed Aug 5 01:39 25/955 "Anacron job ''cron.dai"

N 3 root@michael.fung.co Wed Aug 5 01:39 25/953 "Anacron job ''cron.dai"

N 4 root@michael.fung.co Wed Aug 5 01:39 40/1334 "LogWatch for michael."

N 5 root@michael.fung.co Wed Aug 5 01:39 55/1638 "LogWatch for michael."

N 6 root@michael.fung.co Wed Aug 5 01:39 139/3856 "LogWatch for michael.

凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!

分享到: 更多

Copyright ©1999-2011 厦门凌众科技有限公司 厦门优通互联科技开发有限公司 All rights reserved

地址(ADD):厦门软件园二期望海路63号701E(东南融通旁) 邮编(ZIP):361008

电话:0592-5908028 传真:0592-5908039 咨询信箱:web@lingzhong.cn 咨询OICQ:173723134

《中华人民共和国增值电信业务经营许可证》闽B2-20100024  ICP备案:闽ICP备05037997号