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 please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-26-2006, 07:24 AM
Senior Member
 
Posts: 50
Default Smtp Tls

I'm currently trying to get TLS working on our Filter server for incoming emails. Currently TLS works fine for outgoing SMTP connection on the other server. Currently with a manual telnet i'm getting this response

Connected to black.soltec.net.
Escape character is '^]'.
220 black.soltec.net ESMTP Postfix
ehlo xyz
250-black.soltec.net
250-PIPELINING
250-SIZE 102400000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250 8BITMIME
starttls
454 TLS not available due to local problem


I'm guessing this was a cert error (planning on using self signed). I then took your directions for creating a self signed cert

keytool -delete -alias my_ca -keystore /opt/zimbra/java/jre/lib/security/cacerts -storepass changeit

But I'm getting this error.
keytool error: java.lang.Exception: Alias <my_ca> does not exist

Any ideas or is this even a cert problem. Only thing installed on filter server is mta spamfilter virusfilter and snmp
Reply With Quote
  #2 (permalink)  
Old 04-26-2006, 07:27 AM
Elite Member & Volunteer
 
Posts: 255
Default

The cert CA is not there so you don't need that command it is already deleted just zmcreateca to recreate the CA.
Reply With Quote
  #3 (permalink)  
Old 04-26-2006, 07:29 AM
Senior Member
 
Posts: 50
Default

Basically This then

zmcreateca
zmcreatecert
zmcertinstall mailbox ssl/ssl/server/tomcat.crt
zmcertinstall mta ssl/ssl/server/server.crt ssl/ssl/server/server.key
Reply With Quote
  #4 (permalink)  
Old 04-26-2006, 07:38 AM
Elite Member & Volunteer
 
Posts: 255
Default

I believe so.
Reply With Quote
  #5 (permalink)  
Old 04-26-2006, 08:23 AM
Senior Member
 
Posts: 50
Default

yep that works thanks
Reply With Quote
  #6 (permalink)  
Old 03-05-2007, 04:33 PM
Intermediate Member
 
Posts: 23
Default 454 TLS Local Problem

I have installed a commercial certificate as described in the wiki and I had the https site and the pop3 access working fine with it, however, when I tried to send mail through smtp, I got "error 454 - TLS not available due to a local problem". I tried settting the certificate for the mta manually by issuing
Code:
zmcertinstall mta ssl/ssl/server/server.crt ssl/ssl/server/server.key
which installed the original, zimbra issued certificate there. Not happy with that, in a particularly experimental mindset I copied my commercial .crt file over the /opt/zimbra/conf/smtpd.crt file. Now I get the error "unable to connect to smtp server via STARTTLS since it doesn't offer STARTTLS in EHLO response". Not happy with this one either, please help!
Reply With Quote
  #7 (permalink)  
Old 03-09-2007, 12:03 PM
Member
 
Posts: 11
Default

I'm having the exact same problem.
Reply With Quote
  #8 (permalink)  
Old 03-09-2007, 02:48 PM
Special Member
 
Posts: 126
Default

I used to have this problem...

Try this (from http://mark.foster.cc/kb/openssl-keytool.html ):

Export the *public key* (certificate) from a keystore
|keytool -export -alias mykey -keystore keystore -file exported.crt|

The result is a DER (binary) formatted certificate in exported.crt

|openssl x509 -noout -text -in exported.crt -inform der|

Now you will want to convert it to another format - PEM - which is
more widely used in applications such as apache and by openssl to do
the pkcs12 conversion.

| openssl x509 -out exported-pem.crt -outform pem -text -in
exported.crt -inform der|


Then just copy it over smtpd.crt
Reply With Quote
  #9 (permalink)  
Old 03-09-2007, 03:11 PM
Member
 
Posts: 11
Default

that worked without trouble but didnt fix the problem for me at least. my zimbra log now shows this

Mar 9 14:09:54 mail postfix/smtpd[31353]: lost connection after STARTTLS from c-67-169-127-128.hsd1.ca.comcast.net[67.169.127.128]
Mar 9 14:13:44 mail postfix/smtpd[22605]: warning: TLS library problem: 22605:error:0906D06C:PEM routines:PEM_read_bio:no start lineem_lib.c:632:Expecting: CERTIFICATE:
Mar 9 14:13:44 mail postfix/smtpd[22605]: warning: TLS library problem: 22605:error:140DC009:SSL routines:SSL_CTX_use_certificate_chain_file:PEM lib:ssl_rsa.c:765:
Mar 9 14:15:13 mail postfix/smtpd[11729]: lost connection after STARTTLS from c-67-169-127-128.hsd1.ca.comcast.net[67.169.127.128]


client shows same error as before

Last edited by nexus : 03-09-2007 at 03:19 PM.
Reply With Quote
  #10 (permalink)  
Old 03-09-2007, 04:05 PM
Special Member
 
Posts: 126
Default

can you post the first line of your exported-pem.crt (just open with a text editor)?
Reply With Quote
Reply


Thread Tools
Display Modes


Similar Threads

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




 

Search Engine Optimization by vBSEO 3.1.0