Click to See Complete Forum and Search --> : Sendmail.cf Port setting...


arca1
07-07-2001, 10:00 PM
Ok... here the setup... I have one box running sendmail that is listening on another port (port 2225).

I have another box that needs to relay mail to that box. But when it sends mail it sends it using port 25... I looked at the sendmail.cf and looked around the internet for an answer, but nothing yet... I saw this setting (#O DaemonPortOptions=Port=esmtp) and changed it to specify a port... but it did not work. Is there a way to set what port to send mail to?

Thanks for any input on this.

Arca1 :D

jumpedintothefire
07-08-2001, 04:06 AM
Well not off the top of may head, but you might try to redirect the connection with ipchains.
This might be similar to a squid like rule.
ie:

ipchains -A input -j REDIRECT 2225 -i <interface name> -p tcp -s <ipofrelay> 25 -d <ipofmailserv>

Let me know if it works

[ 08 July 2001: Message edited by: jumpedintothefire ]

arca1
07-09-2001, 11:18 AM
The funny thing is, you answered another question that I once had about ipchains :) LOL.
Unfortunetly, this is something that I do not want to do with this box (work contraints).


Thanks for the info, it was helpful :)

Arca1