[opensuse] howto Change IMAPS port?
Listmates, Another weird question. How do you change the port for UW imap? I have 2 boxes, both mail servers, and I want to configure the second to allow imap access over port 983 instead of 993. So far I have changed /etc/c-client.cf and added: imap-port 983 This is specified in the UW doc imaprc.txt. Next, I have configured /etc/xinetd.d/imap as: service imaps { disable = no socket_type = stream port = 983 protocol = tcp wait = no user = root server = /usr/sbin/imapd flags = IPv4 } Yes, I even did the rcxinetd restart. Still no joy. Does anyone else know what else I have to change? -- David C. Rankin, J.D., P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
David C. Rankin wrote:
Listmates,
Another weird question. How do you change the port for UW imap? I have 2 boxes, both mail servers, and I want to configure the second to allow imap access over port 983 instead of 993. So far I have changed /etc/c-client.cf and added:
imap-port 983
This is specified in the UW doc imaprc.txt.
Next, I have configured /etc/xinetd.d/imap as:
service imaps { disable = no socket_type = stream port = 983 protocol = tcp wait = no user = root server = /usr/sbin/imapd flags = IPv4 }
Yes, I even did the rcxinetd restart. Still no joy. Does anyone else know what else I have to change?
Don't know... But when you get done, can you list ALL the files you had to manipulate? This would be very useful for anyone who might want to build an automated tool to do this sort of thing. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Sam Clemens wrote:
David C. Rankin wrote:
Listmates,
Another weird question. How do you change the port for UW imap? I have 2 boxes, both mail servers, and I want to configure the second to allow imap access over port 983 instead of 993. So far I have changed /etc/c-client.cf and added:
imap-port 983
Don't know...
But when you get done, can you list ALL the files you had to manipulate?
This would be very useful for anyone who might want to build an automated tool to do this sort of thing.
Will do, I'm still searching. -- David C. Rankin, J.D., P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Saturday 03 May 2008 06:29:23 David C. Rankin wrote:
Listmates,
Another weird question. How do you change the port for UW imap? I have 2 boxes, both mail servers, and I want to configure the second to allow imap access over port 983 instead of 993. So far I have changed /etc/c-client.cf and added:
imap-port 983
This is specified in the UW doc imaprc.txt.
Yes, but it is a) "set imap-port 983", and b) for imap, not imaps Did you try changing the port number for the imaps service in /etc/services ?
Next, I have configured /etc/xinetd.d/imap as:
service imaps { disable = no socket_type = stream port = 983 protocol = tcp wait = no user = root server = /usr/sbin/imapd flags = IPv4 }
Yes, I even did the rcxinetd restart. Still no joy. Does anyone else know what else I have to change?
That should at least let the server respond to requests. Which client are you trying with? Did you try with telnet, to see if you get a response at all? Anders -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Anders Johansson wrote:
On Saturday 03 May 2008 06:29:23 David C. Rankin wrote:
Listmates,
Another weird question. How do you change the port for UW imap? I have 2 boxes, both mail servers, and I want to configure the second to allow imap access over port 983 instead of 993. So far I have changed /etc/c-client.cf and added:
imap-port 983
This is specified in the UW doc imaprc.txt.
Yes, but it is a) "set imap-port 983", and b) for imap, not imaps
Did you try changing the port number for the imaps service in /etc/services ?
No, I'll do that now. Since UW in, what I could find regarding c-client.cf made no distinction between imap and imaps, I didn't have anything else to try there.
Next, I have configured /etc/xinetd.d/imap as:
service imaps { disable = no socket_type = stream port = 983 protocol = tcp wait = no user = root server = /usr/sbin/imapd flags = IPv4 }
Yes, I even did the rcxinetd restart. Still no joy. Does anyone else know what else I have to change?
That should at least let the server respond to requests. Which client are you trying with? Did you try with telnet, to see if you get a response at all?
Anders
Yes, I was trying with telnet from localhost and from across the LAN without success. I'll try your suggestion on /etc/services and see if I can get it to talk. Thanks again, ... and again... -- David C. Rankin, J.D., P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
David C. Rankin wrote:
Anders Johansson wrote:
Did you try changing the port number for the imaps service in /etc/services ?
No, I'll do that now. Since UW in, what I could find regarding c-client.cf made no distinction between imap and imaps, I didn't have anything else to try there.
Bingo, Damn your good. Changed /etc/services imaps to 983 and it accepted the login from firefox without any problem on port 983. Thanks. For the list, To move your imaps services to another port in order to operate two separate imap servers on a NAT'ed domain that resolves to a single IP, here is the solution. (Tested with UW imap, should work with others as long and you can set the imap server to listen on the alternate port). (1) Check /etc/services to find an available alternate port to use: # grep Unassigned /etc/services (2) Choose a port that makes since to you. Since I was moving from 993 and 983 was available, that made sense to me. Edit /etc/services and make imaps services available on the new port: imaps 983/tcp # imap4 protocol over TLS/SSL imaps 983/udp # imap4 protocol over TLS/SSL #imaps 993/tcp # imap4 protocol over TLS/SSL (commented out 5/08 - see 983 above) #imaps 993/udp # imap4 protocol over TLS/SSL (commented out 5/08 - see 983 above) --- for UW imap --- (3) Edit /etc/c-client.cf and add the following line: imap-port 983 (4) Edit /etc/xinetd.d/imap and add the 'port designation' to the "services imaps" section. It should read as follows: service imaps { disable = no socket_type = stream port = 983 protocol = tcp wait = no user = root server = /usr/sbin/imapd flags = IPv4 } (5) Restart xinetd: # rcxinetd restart That's it, enjoy. If for some reason it doesn't work for you, ask Anders. He is the only reason I got this working. -- David C. Rankin, J.D., P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sat, May 3, 2008 at 9:10 PM, David C. Rankin <drankinatty@suddenlinkmail.com> wrote:
David C. Rankin wrote:
Anders Johansson wrote:
Did you try changing the port number for the imaps service in /etc/services ?
No, I'll do that now. Since UW in, what I could find regarding c-client.cf made no distinction between imap and imaps, I didn't have anything else to try there.
Bingo,
Damn your good. Changed /etc/services imaps to 983 and it accepted the login from firefox without any problem on port 983. Thanks.
For the list,
To move your imaps services to another port in order to operate two separate imap servers on a NAT'ed domain that resolves to a single IP, here is the solution. (Tested with UW imap, should work with others as long and you can set the imap server to listen on the alternate port).
(1) Check /etc/services to find an available alternate port to use:
# grep Unassigned /etc/services
(2) Choose a port that makes since to you. Since I was moving from 993 and 983 was available, that made sense to me. Edit /etc/services and make imaps services available on the new port:
imaps 983/tcp # imap4 protocol over TLS/SSL imaps 983/udp # imap4 protocol over TLS/SSL #imaps 993/tcp # imap4 protocol over TLS/SSL (commented out 5/08 - see 983 above) #imaps 993/udp # imap4 protocol over TLS/SSL (commented out 5/08 - see 983 above)
--- for UW imap ---
(3) Edit /etc/c-client.cf and add the following line:
imap-port 983
(4) Edit /etc/xinetd.d/imap and add the 'port designation' to the "services imaps" section. It should read as follows:
service imaps { disable = no socket_type = stream port = 983 protocol = tcp wait = no user = root server = /usr/sbin/imapd flags = IPv4 }
(5) Restart xinetd:
# rcxinetd restart
That's it, enjoy. If for some reason it doesn't work for you, ask Anders. He is the only reason I got this working.
Interesting stuff. Two comments: 1) I can't think of a single other Imap server that runs under xinetd. For something hit that often this seems really inefficient. 2) I'm surprised to learn that anything actually pays attention to /etc/services. I had always assumed it was for reference only. -- ----------JSA--------- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
John Andersen wrote:
Interesting stuff. Two comments:
1) I can't think of a single other Imap server that runs under xinetd. For something hit that often this seems really inefficient.
Now, all the primary boxes use dovecot. I am replacing the box running uw imap, but I wanted to keep it operational and accessible until I am satisfied with the transition. In the 7 years it has served as our mail server, I never saw any sluggishness. (its an old pIII-800 w/1G). However, you would be amazed with the number of Very Large, High Volume institutions (Universities, Corps., etc.) that run UW imap in exactly that way. Evidently it isn't as inefficient or taxing on the system as it looks at first glance.
2) I'm surprised to learn that anything actually pays attention to /etc/services. I had always assumed it was for reference only.
That was what I thought. I looked at /etc/services and found 983 open, then I just went and looked for a way to get imap to listen on that port. I never gave /etc/services another thought until Anders pointed it out. -- David C. Rankin, J.D., P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Saturday 2008-05-03 at 22:55 -0700, John Andersen wrote:
1) I can't think of a single other Imap server that runs under xinetd. For something hit that often this seems really inefficient.
Interestingly, not that much.
2) I'm surprised to learn that anything actually pays attention to /etc/services. I had always assumed it was for reference only.
No, it is not. For instance, the susefirewall scripts use it. It is easy to forget, though. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQFIHio2tTMYHG2NR9URAhepAJ9xTUvFqCuE4+T9A9Fgr0Ue5Cl2vQCfTENO TgrsV7uEA5rty7ZHVTAX7gs= =v2FI -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (5)
-
Anders Johansson
-
Carlos E. R.
-
David C. Rankin
-
John Andersen
-
Sam Clemens