I am using mailx to sending out mail, but the mail server is not using SMTP port 25. how can i configure to use other port insted of 25 port.
I have tried to modify the line in /etc/mail/sendmail.cf to change the port. But failed. below is the line that i modified.
O DaemonPortOptions=Port=2825, Name=MSA, M=E
Well, basically that the right approach, did you restart sendmail afterwards ? Here's an article that suggests another solution. Note : I haven't tested this.