 |
Apache2Triad Help, Support and Development The apache2triad help , support and development forums
|
| View previous topic :: View next topic |
| Author |
Message |
mikespcs
Joined: 19 Oct 2005
Posts: 7
|
| Posted: Thu Feb 01, 2007 5:45 pm Post subject: How do I change the port number Xmail listens on? |
|
|
I have seen this referenced a few times here and at the XMAIL forums, but nobody has actually said how to change xmail from listening on port 25, to listening on port 26.
Can someone please let me know how to do this?
Thanks!
Mike |
|
| Back to top |
|
dale
Joined: 11 Jun 2006
Posts: 51
Location: las vegas, nv
|
| Posted: Sat Feb 03, 2007 5:50 am Post subject: |
|
|
You can use regedit to change the command line startup of xmail. This is how I did it. I went to
\HKEY_LOCAL_MACHINE\SOFTWARE\GNU\Xmail and there were 3 keys
Modify the MAIL_CMD_LINE Key and add -Sp 26
26 = the port that you want your smtp server to listen on.
Before your key should look like this:
-Pl -Sl -Ql -Fl -Cl -Ll
Then add the space and -Sp 26
-Pl -Sl -Ql -Fl -Cl -Ll -Sp 26
Before using regedit you should backup your registry like microsoft suggests, and just like they say, use at your own risk.
Of course you are probably using a spam program that listens on the outside world on port 25, and you need your xmail to listen on another port. I just used 26 because it was close to it and is usable. You can use any port you want long as your spam program uses the same port to connect to it.
Restart your xmail service and do a netstat -an and you should have
Proto Local Address Foreign Address State
TCP 0.0.0.0:26 0.0.0.0:0 LISTENING
This means that your xmail server is now listening on port 26 and life is good.
Hope that this helps and good luck! |
|
| Back to top |
|
mikespcs
Joined: 19 Oct 2005
Posts: 7
|
| Posted: Sun Feb 18, 2007 7:15 pm Post subject: Still didnt work |
|
|
I tried this on 2 systems (the -Sp 26 in the registry) and despite restarting the service and rebooting, it still listens on 25.
Anyone got any more ideas?
UPDATE: NEVER MIND! As I typed this I realized you put in -Sp 26, and apparently -SP 26 and -sp 26 and -Sp 26 are not the same.
-Sp 26 works! -SP 26 and -sp 26 dont! |
|
| Back to top |
|
| |
|