If you are delivering to the internet at large, using a port other than 25 is not an option - 25 is the standard SMTP port that everyone else is listening on.
If you are just tunneling it through, and you have an SMTP receiver or TCP relay running on the destination, I'm not quite sure how to do that in sendmail - first guess would be to change the port in /etc/services since sendmail.cf; I tried changing a sendmail DS line to have a :2525 after a hostname, but it didn't like that.
I use postfix whenever I have anything more complicated than a simple "DS" line change.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.