Zone Configuration to Redirect SMTP
I/P/B/ Ertan Gönülal
email hidden
Fri Apr 11 16:33:20 CEST 2008
Hi all,
i have a problem witch a Zone configuration
I have a zone for vlan and a Debian Vserver with exim4
The vserver has an internal IP 172.16.xx.xx
The Mainsystem where the vserver runs has an IP 192.xxx.xxx
When i write the Rule:
REDIRECT_SMTP="tcp smtp 0.0.0.0/0=>192.xxx.xxx.xxx/32 172.16.xxx.xxx smtp"
I become the Error:
iptables -t nat -A PREROUTING_NAT_ZONENAME -p tcp --dport smtp -d
192.xxx.xxx.xxx/32 -j DNAT --to-destination 172.16.xxx.xxx:25 465
The Port 465 is for SSMTP but i dont want to use this.
If i change the rule and give the Port 25 and not the name smtp anything
work correctly.
REDIRECT_SMTP="tcp 25 0.0.0.0/0=>192.xxx.xxx.xxx/32 172.16.xxx.xxx 25"
The /etc/services includes the correct description:
smtp 25/tcp mail
I can use it (smtp) in any other zones but in this, it fails.
Thanks
Ertan
More information about the fiaif
mailing list