网站运营
位置:首页>> 网站运营>> 在Linux系统下面架设Sendmail服务器(2)

在Linux系统下面架设Sendmail服务器(2)

 来源:asp之家 发布时间:2010-03-13 19:07:00 

标签:linux,sendmail,服务器

5,访问控制设置

更改/etc/mail/accesss文件,增加:

[root@localhost named]# cat /etc/mail/access

# Check the /usr/share/doc/sendmail/README.cf file for a description

# of the format of this file. (search for access_db in that file)

# The /usr/share/doc/sendmail/README.cf is part of the sendmail-doc

# package.

#

# by default we allow relaying from localhost...

localhost.localdomain RELAY

localhost RELAY

127.0.0.1 RELAY

ltest.com RELAY

完成后makemap hash /etc/mail/access.db < /etc/mail/access进行数据库更新。

6,#service sendmail restart

[root@localhost named]# service sendmail restart 启动服务

Shutting down sendmail: [FAILED]

Starting sendmail: [ OK ]

Starting sm-client: [ OK ]

[root@localhost named]# telnet localhost 25

Trying 127.0.0.1...

Connected to localhost.localdomain (127.0.0.1).

Escape character is '^]'.

220 localhost.localdomain ESMTP Sendmail 8.13.1/8.13.1; Sat, 17 Mar 2007 12:54:47 +0800

ehlo localhost

250-localhost.localdomain Hello localhost.localdomain [127.0.0.1], pleased to meet you

250-ENHANCEDSTATUSCODES

250-PIPELINING

250-8BITMIME

250-SIZE

250-DSN

250-ETRN

250-AUTH DIGEST-MD5 CRAM-MD5 LOGIN PLAIN ---认证应该生效

250-DELIVERBY

250 HELP

quit

221 2.0.0 localhost.localdomain closing connection

Connection closed by foreign host.

7,安装邮局服务

[root@localhost RPMS]# rpm -ivh dovecot-0.99.11-2.EL4.1.i386.rpm --aid

warning: dovecot-0.99.11-2.EL4.1.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e

Preparing... ########################################### [100%]

1:perl-DBI ########################################### [ 20%]


2:postgresql-libs ########################################### [ 40%]

3:mysql ########################################### [ 60%]

4:dovecot ########################################### [ 80%]

5:perl-DBD-MySQL ########################################### [100%]

把1-5这些软件都安装完毕才可以继续下去呢,,,,

[root@localhost /]# vi /etc/dovecot.conf在protocols = imap imaps 后添加pop3 pop3s

启动dovecot服务

[root@localhost /]# service dovecot restart

Stopping Dovecot Imap: [FAILED]

Starting Dovecot Imap: [ OK ]

[root@localhost /]# chkconfig --level 35 dovecot on

OK了 我们使用客户机测试。

0
投稿

猜你喜欢

手机版 网站运营 asp之家 www.aspxhome.com