debian上的exim4开启往外(internet)发邮件

debian下缺省安装的mta是exim4
那天netstat -nap | grep LISTEN一看
exim4监听着127.0.0.1的25端口
用惯了redhat系列的我想当然的认为:
嗯,不错,监听本地25端口,接收本地邮件然后根据需要往外(internet)发
这个跟redhat缺省的sendmail是一样的
但后来
发现原来定时备份的邮件收不到了
一看系统退回的信件:

Mailing to remote domains not supported

老是报这个错误
这才发现
原来debianexim4缺省是不支持往internet上发信的

于是编辑下配置文件/etc/exim4/update-exim4.conf.conf

dc_eximconfig_configtype=’local’

改成

dc_eximconfig_configtype=’internet’

再重起exim4
/etc/init.d/exim4 stop;/etc/init.d/exim4 start

这时exim4还是监听着本地127.0.0.1的25口
但是已经支持往internet上发信了

Discussion Area - Leave a Comment




*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word