Changing port in sendmail, sendmail not working.
For over a year now I've been working with linux(trixbox), and herin installed my own mailserver, and when installing the mailserver I needed to change the port for which sendmail listens, port 25. I changed it to port 2525, but my problem is that now when a mail is sent from my server to me(or anyone else) locally, it's not getting anywhere.
In my maillog I have the following: sendmail: m0GD2U80001850: to=XXXXXX@XXXXX.dk, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30029, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
When I change the port back to 25 it works just fine.
I can telnet localhost 2525, and here do the mail to, rcpt to, data and so on, and it works fine, the mail gets through and all.
But why do I get error on server sent mails, when sendmail is set to listen on port 2525??
It's only a problem when I have my server sent to local emails addys, when sending out of the house, it connects to my mailserver fine to do so.
This has been a puzzle for me in a very long time, and I have been reading boat load of sites to find the solution, can someone pls point in a direction, and not like just have sendmail listen on port 25, cause that's not really an option.