Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 28th September 2011, 15:01
sj200449 sj200449 is offline
Junior Member
 
Join Date: Sep 2007
Posts: 13
Thanks: 0
Thanked 2 Times in 2 Posts
Default Overview of Ports Used per Authentication Method

Hi All,

I followed the "Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (CentOS 6.0 x86_64)" found here:

http://www.howtoforge.com/virtual-us...tos-6.0-x86_64

On a freshly installed Basic Server (a cheap desktop PC I inherited and put some memory in). It worked fine for Squirrelmail. I would like to access it from outside my network with either Thunderbird or Outlook and my mobile phone.

This is a private mail server behind a household router.

I opened port 25 and port 993 on my router with ip forwarding/triggering to the correct machine.

It works for my mobile and for thunderbird (afaik, havent done that externally yet) but not for Outlook.

1. Why did I not have to tell postfix in main.cf my external facing ip address to accomodate the NAT? I had to do this before when not using vurtual users and mysql but real users. In fact main.cf doesnt appear to know much about my actual machine at all - just about some virtual stuff

2. Would someone point me in the right direction for an explanation of TLS which defaults to port 587, SSL which defaults to 465 and if using 25 is considered ok. I am confused about the stage in the authentication process any encryption is happening (if at all) and if the authentication is sent in plain text 'til complete then your link is encrypted.

3. As per above in 2. I have 993 open and am using ssl for imap reading but tls would default to 143 - which should I use really.

4. Why doesnt outlook work - do i need this broken_clients flag in main.cf or something?

Sorry for the vagueness and length. A good source would be great thank you.

-Stephen
Reply With Quote
Sponsored Links
  #2  
Old 28th September 2011, 16:52
sj200449 sj200449 is offline
Junior Member
 
Join Date: Sep 2007
Posts: 13
Thanks: 0
Thanked 2 Times in 2 Posts
Default

I have read around a little more on SSL/TLS and tested closing port 993 (IMAP using SSL) and opening port 143 (IMAP using TLS).

This also works.

I have also read that the SSL/TLS , with an exchange of certificates (self generated in my case), is initially used to authenticate and establish an encryption key to use for subsequent encryption of the reading of your email etc.

Does that sound right?

This makes me think that the initial setup is not encrypted - my login and passwd for example plus the cert - then it is encrypted.

Is that ok, it bothers me?

Moving on to writing emails... 25 or 465 or 587? Im gonna read about SMTPAUTHD now as Im guessing it is involved and working together with some form of 'writing' encryption.
Reply With Quote
  #3  
Old 29th September 2011, 10:43
sj200449 sj200449 is offline
Junior Member
 
Join Date: Sep 2007
Posts: 13
Thanks: 0
Thanked 2 Times in 2 Posts
Default

re question 4. - outlook 2003 issue , does need

broken_sasl_auth_clients = yes

However, it is already at yes so not sure where i will look next.
Reply With Quote
  #4  
Old 29th September 2011, 17:48
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,592 Times in 2,443 Posts
Default

Are there any errors in your mail log when you try to connect with Outlook?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 30th September 2011, 16:56
sj200449 sj200449 is offline
Junior Member
 
Join Date: Sep 2007
Posts: 13
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Thank you for your response.

No errors in maillog, no response noted there at all. I believe it may even be the firewalls / access-lists at work from where I am testing it. I shall investigate this.

On another note, the main.cf uses the older "smtpd_use_tls" directive but does not set "smtpd_enforce_tls".

Why not use "smtpd_tls_security_level" as it appears to be postfix version 2.6.6 on centos 6 , and why not enforce TLS as I am understanding this means PLAIN/LOGIN might under some circumstances be sent in plaintext?
Reply With Quote
  #6  
Old 30th September 2011, 17:03
sj200449 sj200449 is offline
Junior Member
 
Join Date: Sep 2007
Posts: 13
Thanks: 0
Thanked 2 Times in 2 Posts
 
Default

Btw , Im not using wrapper_mode but STARTTLS proper so I understand port 465 does not need to be open.

However, should I be opening 587 or 25 or both? Not sure on that bit. At present 25 is open. My MX record points to my router, and it forwards 25 to my mail server.

I apologise for the fragmented nature of these questions. Im learning as I go.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
sasl / fail2ban vs. postfix/smtpd warnings) eko_taas Installation/Configuration 4 17th May 2011 16:04
Fail2ban + sasl problem and Solution pititis General 1 2nd March 2011 07:02
Being Spammed/Hacked/Probed not sure PLEASE HELP! kresser General 10 29th October 2010 17:25
Need some Hints to "The Perfect Server - Debian Lenny (Debian 5.0) [ISPConfig 3]" wahid HOWTO-Related Questions 10 25th August 2010 15:18
Mail server attack princebenin Server Operation 1 19th November 2007 14:02


All times are GMT +2. The time now is 14:46.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.