快速业务通道

linux4.0 sendmail server relevant config

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

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"

N 9 root@fung.com Wed Aug 5 02:10 14/399

& 9

Message 9:

From root@fung.com Wed Aug 5 02:10:18 2009

Date: Wed, 5 Aug 2009 02:09:03 0800

From: root <root@fung.com>

dkkkkdl

dkkdkd

jkjddj

djjd

&

15. [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:12:14 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:abc1@fung.com

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

data

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

who shi root@fung.com

.

250 2.0.0 n74ICEgl004462 Message accepted for delivery

quit

221 2.0.0 michael.fung.com closing connection

Connection closed by foreign host.

[root@michael ~]# more /var/spool/mail/abc1

From root@fung.com Wed Aug 5 02:12:59 2009

Return-Path: <root@fung.com>

Received: from fung.com (michael.fung.com [192.168.5.1])

by michael.fung.com (8.13.1/8.13.1) with SMTP id n74ICEgl004462

for abc1@fung.com; Wed, 5 Aug 2009 02:12:40 0800

Date: Wed, 5 Aug 2009 02:12:14 0800

From: root <root@fung.com>

Message-Id: <200908041812.n74ICEgl004462@michael.fung.com>

who shi root@fung.com

二.Sendmail server config P0P3

1. [root@michael ~]# rpm -qa | grep dovecot

dovecot-0.99.11-4.EL4

[root@michael ~]# chkconfig --list dovecot

dovecot 0:off 1:off 2:off 3:off 4:off 5:off 6:off

[root@michael ~]# chkconfig --level 35 dovecot on

[root@michael ~]# chkconfig --list dovecot

dovecot 0:off 1:off 2:off 3:on 4:off 5:on 6:off

[root@michael ~]# service dovecot restart

Stopping Dovecot Imap: [FAILED]

Starting Dovecot Imap: [ OK ]

[root@michael ~]# service dovecot restart

Stopping Dovecot Imap: [ OK ]

Starting Dovecot Imap: [ OK ]

2. [root@michael ~]# vi /etc/dovecot.conf

## Dovecot 1.0 configuration file

# Default values are shown after each value, it''s not required to uncomment

# any of the lines. Exception to this are paths, they''re just examples

# with real defaults being based on configure options. The paths listed here

# are for configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var

# --with-ssldir=/usr/share/ssl

# Base directory where to store runtime data.

#base_dir = /var/run/dovecot/

# Protocols we want to be serving:

# imap imaps pop3 pop3s

#protocols = imap imaps

Protocols = pop3

3. [root@michael ~]# service dovecot restart

Stopping Dovecot Imap: [ OK ]

Starting Dovecot Imap: [ OK ]

4. [root@michael ~]# netstat -ntpl | grep 110

tcp 0 0 :::110 :::* LISTEN 4568/dovecot

5. test

[root@michael ~]# telnet 192.168.5.1 25

Trying 192.168.5.1...

Connected to mic

凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站: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号