Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
 
Go Back   Zimbra - Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra - Forums!
Welcome, if you would like to post a comment in the forums, please register and review our posting policy & tips. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack (5) Thread Tools Display Modes
  5 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 11-19-2007, 07:18 PM
Senior Member
 
Posts: 37
Default [SOLVED] Unable to send mail via SMTP+TLS+Auth

First of all, this is a 4.5.9 Ubuntu installation. I can send via the web interface so the underlying MTA is ok.

However, I have SMTP auth and TLS switched on. I have followed the wiki article to generate some new self-signed certs so they reflect my domains etc. However, since doing this, whenever I send a message using a thunderbird mail client I get the following in the logs:

Code:
Nov 20 13:58:40 node postfix/smtpd[1544]: connect from remote.server.name[1.2.3.4]
Nov 20 13:58:40 node postfix/smtpd[1544]: setting up TLS connection from remote.server.name[1.2.3.4]
Nov 20 13:58:41 node postfix/smtpd[1544]: TLS connection established from remote.server.name[1.2.3.4]: TLSv1 with cipher AES128-SHA (128/128 bits)
Nov 20 13:58:41 node postfix/master[797]: warning: process /opt/zimbra/postfix-2.2.9/libexec/smtpd pid 1544 killed by signal 11
Nov 20 13:58:41 node postfix/master[797]: warning: /opt/zimbra/postfix-2.2.9/libexec/smtpd: bad command startup -- throttling
...and when using Apple mail I see the following log lines:
Code:
Nov 20 13:59:04 node postfix/smtpd[1151]: connect from remote.server.name[1.2.3.4]
Nov 20 13:59:04 node postfix/smtpd[1151]: setting up TLS connection from remote.server.name[1.2.3.4]
Nov 20 13:59:09 node postfix/smtpd[1151]: SSL_accept error from remote.server.name[1.2.3.4]: 0
Nov 20 13:59:09 node postfix/smtpd[1151]: warning: TLS library problem: 1151:error:14094419:SSL routines:SSL3_READ_BYTES:tlsv1 alert access denied:s3_pkt.c:1057:SSL alert number 49:
Nov 20 13:59:09 node postfix/smtpd[1151]: lost connection after STARTTLS from remote.server.name[1.2.3.4]
Nov 20 13:59:09 node postfix/smtpd[1151]: disconnect from remote.server.name[1.2.3.4]
I couldn't find anything else that indicates a problem - as stated at the top, the web interface works fine. Stumped and totally unsure of how to proceed. Anyone seen this before?
Reply With Quote
  #2 (permalink)  
Old 11-19-2007, 07:25 PM
Zimbra Employee
 
Posts: 5,606
Default

Hi Cent-
Have you had a look at this thread:
Smtp Tls

looks like there might be a utility that might help. Let me know if you've already tried it, and we'll try something else.
Reply With Quote
  #3 (permalink)  
Old 11-19-2007, 07:49 PM
Senior Member
 
Posts: 37
Default

Followed that thread through which ended up here. However, in those instructions, the following command failed on my system:

Code:
root@node:~# cp /opt/zimbra/ssl/ssl/server/tomcat.pem /opt/zimbra/conf/smtpd.crt
cp: cannot stat `/opt/zimbra/ssl/ssl/server/tomcat.pem': No such file or directory
Regardless, I restarted zimbra and now get:
Code:
Nov 20 14:38:52 node postfix/smtpd[20409]: warning: cannot get private key from file /opt/zimbra/conf/smtpd.key
Nov 20 14:38:52 node postfix/smtpd[20409]: warning: TLS library problem: 20409:error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch:x509_cmp.c:399:
Nov 20 14:38:52 node postfix/smtpd[20409]: cannot load RSA certificate and key data
...which I expected. So I redployed the mta certificate as per the original wiki article and now am back to the original error. Strangley the "starttls" command returns a 220:
Code:
$ telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 node.gray.net.au ESMTP Postfix
ehlo localhost
250-node.gray.net.au
250-PIPELINING
250-SIZE 10485760
250-VRFY
250-ETRN
250-STARTTLS
250 8BITMIME
STARTTLS
220 Ready to start TLS
I've googled this up the whazoo for 48 hours now, and still can't find any answers.
Reply With Quote
  #4 (permalink)  
Old 11-19-2007, 08:18 PM
Zimbra Employee
 
Posts: 451
Default

Looks like you installed the cert without the key. Make sure you've installed the smtpd cert/key completely (per the wiki)

Code:
zmcertinstall mta /opt/zimbra/ssl/ssl/server/server.crt /opt/zimbra/ssl/ssl/server/server.key
postfix reload
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #5 (permalink)  
Old 11-19-2007, 08:21 PM
Zimbra Employee
 
Posts: 451
Default

BTW, everyone should be glad to know that certificate management can now be done via the Admin Console starting in 5.0.0_RC2 with some simplified wizards.
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #6 (permalink)  
Old 11-19-2007, 09:22 PM
Senior Member
 
Posts: 37
Red face

Yes - did that step again, and verified the key+cert matched etc using openssl. However I still have the same problem.

I really can't afford too much more downtime, so I'm migrating to ZCS 5.0RC1 on a spare system to see if that can be coaxed to life.

Will keep you posted....

-- James
Reply With Quote
  #7 (permalink)  
Old 11-19-2007, 09:37 PM
Senior Member
 
Posts: 37
Default

Brilliant...can't upgrade from 4.5.9GA -> 5.0.0RC1 See here for why. So now I'm stuffed.
Reply With Quote
  #8 (permalink)  
Old 11-19-2007, 09:47 PM
Zimbra Employee
 
Posts: 5,606
Default

Can you disable tls for smtp auth for the interm while you figure it out?
Reply With Quote
  #9 (permalink)  
Old 11-19-2007, 09:48 PM
Zimbra Employee
 
Posts: 5,606
Default

Are you a Network Edition Customer? If so, by all means, please contact support! I can give them a heads up if you want.
Reply With Quote
  #10 (permalink)  
Old 11-19-2007, 11:01 PM
Senior Member
 
Posts: 37
Default

Ok - nothing to loose, so did a virgin installation of 4.5.9GA. Ran through the SSL self-signed certificate procedures verbatim. However, I am back to the same problem I have in the original post.

Is this a bug in 4.5.9? Is there a step missing or incorrect in that procedure??
Reply With Quote
Reply


Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with port 25 yogiman Installation 56 04-19-2009 07:09 AM
Issues... timothyalangorman Administrators 3 11-19-2007 09:43 AM
fresh install down may be due to tomcat gon Installation 10 07-25-2007 08:09 AM
Post install : Zimbra start up is taking upwards of 10 minutes zcook Installation 6 12-27-2005 03:47 PM
receiveing mail maybethistime Administrators 15 12-09-2005 03:55 PM

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

Zimbrablog.com

sourceforge.net



 

Search Engine Optimization by vBSEO 3.1.0