|
小弟在用虚机试验sendmail时遇到了些问题,望各位大大不吝赐教
在win2k下用telnet25端口的方式希望relay邮件,其中win2k地址为192.168.0.1,虚机地址为192.168.0.2
已经在access中加入,
192.168.0.1 relay
但是在向外网地址转发邮件时
mail from:root@server1.com
rcpt to:eugene123321@gmail.com
报错如下:
[root@server1 ~]# tail -f /var/log/maillog
Jan 24 06:36:01 wuxp sendmail[29555]: j0NMZ35c029555: ruleset=check_rcpt, arg1=eugene123321@gmail.com, relay=[192.168.0.1], reject=450 4.4.0 eugene123321@gmail.com... Relaying temporarily denied. Cannot resolve PTR record for 192.168.0.1
由于没有dns,只得在/etc/hosts中加入一行
192.168.0.1 station1.example.com
再次转发邮件时还是报错如下
[root@server1 ~]# tail -f /var/log/maillog
Jan 24 06:12:12 wuxp sendmail[28917]: j0NM9vCt028917: ruleset=check_rcpt, arg1=eugene123321@gmail.com, relay=station1.example.com [192.168.0.1], reject=550 5.7.1 eugene123321@gmail.com... Relaying denied
在虚机上直接向上述外网邮箱发邮件时没有问题的,sendmail -d0 </dev/null结果如下
============ SYSTEM IDENTITY (after readcf) ============
(short domain name) $w = server1
(canonical domain name) $j = server1.com
(subdomain name) $m = com
(node name) $k = server1
========================================================
令小弟甚是迷惑,是否sendmail必须在配置了dns的环境下才能使用?望各位指教一二! |
|