HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   Mail STARTTLS/SSL not working (http://www.howtoforge.com/forums/showthread.php?t=59653)

Ripeed 20th November 2012 18:57

Mail STARTTLS/SSL not working
 
Hi, I have installed ISPConfig 3.0.4.6 on debian squeeze by tutorial: How To Run Your Own DNS Servers (Primary And Secondary) With ISPConfig 3 (Debian Squeeze)

I just move some mailboxes from old server by creating new and IMAPtools sync.

But if some one have a setup email by STARTTLS or SSL on Thunderbird and etc. That dont work. By changing it to non secure connection I found that work. On old server works everything fine.

What I can do? Thunderbird dont show any message, its like he wonts to connect but nothing. In logs I dont see that email box from I trying to connect.

Thanks for help.

till 20th November 2012 19:14

Check the postfix master.cf file and ensure that the smtps and submission lines are not commented out.

Ripeed 20th November 2012 19:22

Quote:

Originally Posted by till (Post 288534)
Check the postfix master.cf file and ensure that the smtps and submission lines are not commented out.

This is my master.cf and those lines. I have it same on old server where it works:
Code:

smtp      inet  n      -      -      -      -      smtpd
#submission inet n      -      -      -      -      smtpd
#  -o smtpd_tls_security_level=encrypt
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#  -o milter_macro_daemon_name=ORIGINATING
#smtps    inet  n      -      -      -      -      smtpd
#  -o smtpd_tls_wrappermode=yes
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#  -o milter_macro_daemon_name=ORIGINATING
#628      inet  n      -      -      -      -      qmqpd

You mean I must delete those # comments reload postfix and it will work?

till 20th November 2012 19:28

Change it to:

Code:

smtp      inet  n      -      -      -      -      smtpd
submission inet n      -      -      -      -      smtpd
  -o smtpd_tls_security_level=encrypt
  -o smtpd_sasl_auth_enable=yes
  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#  -o milter_macro_daemon_name=ORIGINATING
smtps    inet  n      -      -      -      -      smtpd
  -o smtpd_tls_wrappermode=yes
  -o smtpd_sasl_auth_enable=yes
  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#  -o milter_macro_daemon_name=ORIGINATING
#628      inet  n      -      -      -      -      qmqpd

and restart postfix.

Ripeed 20th November 2012 19:42

Quote:

Originally Posted by till (Post 288536)
Change it to:
....
and restart postfix.

Nope, I do that... only one change was that say connected to server but still dont dowload messages.

Meaby you mean some thing else. If I set mailbox in TB to.
IMAP: mail.domain.tld
Port: 143
login with user and pass. Then it works.

If I set:
Port: 143 with STARTTLS than I cant connect to server.

any other Idea?

till 20th November 2012 20:00

ah ok,you mean imap. I thought you mean smtp. Do you use dovecot or courier imap?

Ripeed 20th November 2012 20:11

Quote:

Originally Posted by till (Post 288538)
ah ok,you mean imap. I thought you mean smtp. Do you use dovecot or courier imap?

Courier, thanks

till 20th November 2012 20:16

Imaps (imap over ssl) is on port 993 and not port 143

Ripeed 20th November 2012 20:24

Quote:

Originally Posted by till (Post 288540)
Imaps (imap over ssl) is on port 993 and not port 143

Till, know that. IMAP/SMTP on 143/25 works. IMAP/SMTP on 143/ with STARTTLS dont work, IMAP/SMTP on 993/465 dont work.

I think, main problem is with STARTTLS settings.

Ripeed 20th November 2012 20:57

I fond in log this:
Code:

Nov 20 19:54:37 ns1 imapd-ssl: couriertls: /etc/courier/imapd.pem: error:0906D06C:PEM routines:PEM_read_bio:no start line
This is that problem...


All times are GMT +2. The time now is 20:52.

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