Chinaunix

标题: openwebmai建立好可是不能发送 邮件?非常感谢告知小弟方法 [打印本页]

作者: xsf0524    时间: 2004-08-10 15:44
标题: openwebmai建立好可是不能发送 邮件?非常感谢告知小弟方法
如题
作者: tone_yang    时间: 2004-08-11 10:54
标题: openwebmai建立好可是不能发送 邮件?非常感谢告知小弟方法
你的senmail的端口和协议打开了没有啊,按照如下





编译sendmail.mc 生成sendmail.cf文件  
# m4 /etc/mail/sendmail.mc >; /etc/mail/sendmail.cf  
# /etc/rc.d/init.d/sendmail restart --重起sendmail服务。  
假如你在执行m4 /etc/mail/sendmail.mc >; /etc/mail/sendmail.cf 报错的话,那么检查是否安装sendmail-cf.*.rpm,redhat8.0自带的是
sendmail-cf-8.12.5-7.i386.rpm,在安装盘的第3张,安装方法:# rpm -ivh sendmail-cf-8.12.5-7.i386.rpm

检测编译结果。  
1、检测SASL被编译到sendmail中。  
#/usr/sbin/sendmail -d0.1 -bv root |grep SASL  
输出类似如下:  
NETUNIX NEWDB NIS PIPELINING SASL SCANF STARTTLS TCPWRAPPERS  
保证你看到SASL就是正确的。  
检测25端口:  
[root@fyhtest mail]# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 fyhtest.163.net ESMTP Sendmail 8.12.5/8.12.5; Thu, 10 Apr 2003 16:35:42 -0400
ehlo test
250-fyhtest.163.net Hello localhost [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-AUTH LOGIN PLAIN
250-DELIVERBY
250 HELP

quit ---退出  
只要输出有LOGIN PLAIN就OK!了,不然,就不能relay mail.  
到这里,sendmail就配置完了,你可以天天加一个用户试试看。  
邮件用户是系统用户.  
#useradd test
#passwd  test ----设置密码  
设置你的foxmail or outlook,要设置上用户需要smtp认证。  
把你的域名添加到/etc/mail/local-host-names中.

pop3安装。  
redhat8.0中有它的rpm包,是imap-2001a-15.i386.rpm
# rpm -ivh imap-2001a-15.i386.rpm
修改/etc/xinetd.d/ipop3
把其中disable =yes更改为disable =no  
修改/etc/xinetd.d/imap
把其中disable =yes更改为disable =no  
# /etc/rc.d/init.d/xinetd restart --重起pop3服务  
[root@fyhtest xinetd.d]# telnet localhost 110  
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK POP3 localhost v2001.78rh server ready

[root@fyhtest xinetd.d]# telnet localhost 143  
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK [CAPABILITY IMAP4REV1 LOGIN-REFERRALS STARTTLS AUTH=LOGIN] localhost IMAP4rev1 2001.315rh at Thu, 10 Apr 2003 16:41:06  

-0400 (EDT)

有以上显示,为正确。




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2