- 論壇徽章:
- 0
|
RH7。1 中使用SENDMAIL(救命,急。。。。。
我的安裝配置是這樣的:
1、安裝sendmail軟件包
2、安裝IMAP4軟件包
3、編輯/etc/mail/sendmail.mc
//前邊省略
dnl This changes sendmail to only listen on the loopback device 127.0.0.1
dnl and not on any other network devices. Comment this out if you want
dnl to accept email over the network.
dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl 注釋掉 可用別的機(jī)子發(fā)信
dnl We strongly recommend to comment this one out if you want to protect
dnl yourself from spam. However, the laptop and users on computers that do
dnl not have 24x7 DNS do need this.
dnl FEATURE(`accept_unresolvable_domains')dnl注釋掉 可用IP形式
DAEMON_OPTIONS(`Port=25,Name=MTA')dnl添加
DAEMON_OPTIONS(`Port=587,Name=MSA,M=Ea')dnl添加
dnl FEATURE(`relay_based_on_MX')dnl
MAILER(smtp)dnl
MAILER(procmail)dnl
4、編譯/etc/mail/sendmail.mc
#m4 /etc/mail/sendmail.mc >; /etc/sendmail.cf
5、編輯/etc/sendmail.cf
Cwlocalhost Qin 202.112.105.172 改這一行
6、編輯/etc/mail/.access
# Check the /usr/share/doc/sendmail-8.11.2/README.cf file for a description
# of the format of this file. (search for access_db in that file)
# The /usr/share/doc/sendmail-8.11.2/README.cf is part of the sendmail-doc
# package.
#
# by default we allow relaying from localhost...
localhost.localdomainRELAY
localhostRELAY
202.112.105.172RELAY
202.112.105RELAY
7、編輯/etc/xinetd.d/.imap .ipop3 最后一行 disable= no
8、重啟/etc/rc.d/init.d/.xinetd
9、啟動(dòng)sendmail /etc/rc.d/init.d/sendmail start
10、OK!
|
|