LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-21-2011, 09:37 AM   #1
bicpen
LQ Newbie
 
Registered: Dec 2010
Posts: 7

Rep: Reputation: 0
exim "454 TLS currently unavailable"


Hi,

i'm trying to get Exim up and running with TLS.

The idea behind it is that users will use TLS, auth against the server then be able to send mail.

unfortunately i can't seem to get the TLS working ...at all!

i've put this in my exim config:

tls_certificate = /etc/exim4/exim.crt
tls_privatekey = /etc/exim4/exim.key
tls_advertise_hosts = *

and generated the certificate and key like so:

bash /usr/share/doc/exim4-base/examples/exim-gencert

Now when i do a test it gives the the follwing:

Connected to 127.0.0.1.
Escape character is '^]'.
220 <server> ESMTP Exim 4.69 Fri, 21 Jan 2011 15:33:15 +0000
ehlo test
250-<server> Hello localhost [127.0.0.1]
250-SIZE 52428800
250-PIPELINING
250-STARTTLS
250 HELP
STARTTLS
454 TLS currently unavailable
quit
221 <server> closing connection

when i check in the logs i get this:

2011-01-21 15:33:20 TLS error on connection from localhost (test) [127.0.0.1] (cert/key setup: cert=/etc/exim4/exim.crt key=/etc/exim4/exim.key): Error while reading file.

however for the life of me i cannot find why its saying this.

i've tried exim with tls debug on like so: exim -d+tls
i've tried stracing the process, changing the file permissions so they are workd readable, changing the ownership.

all to no avail and a very hurty head.

does anyone have any idea as to why its saying this or any other ideas i can try to get this working ?
 
Old 01-22-2011, 07:51 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Have you confirmed that the key and cert are valid? "openssl x509 -in exim.crt -nooout -text" should print out the valid cert and "openssl rsa -in exim.key -noout -text" should do the same for the key. Outside of the basic file system / user rights issues that's the only level that really seems to make sense. You might also try removing that key / cert to ensure a problem about finding the files themselves, and check a different error is received etc.
 
1 members found this post helpful.
Old 01-23-2011, 09:17 AM   #3
bicpen
LQ Newbie
 
Registered: Dec 2010
Posts: 7

Original Poster
Rep: Reputation: 0
acid_kewpie sir, you are are star

the openssl stuff you gave seemed to indicate that the certificate and keys were fine, so i tried your second suggestion, i renamed the files to something else and it still threw the error, so i was thinking permission problems.

so i did a little more digging...
i altered the Debian-exim user so it had a valid shell then su'ed to that user. i then cd'd in to the /etc/exim4 directory and was given a permission denied message. i checked the permissons on the directory and discovered that the permissions were set wrong. i had:

U: rw-
g: r--
o: ---

i chmodded the dir like so: chmod ug+x ./.
re-tested the user again and i was then let in to the directory ( hazarr! ) after re-naming key and the cert back to what exim was expecting i re-tried telnet and got this:

Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 <servername> ESMTP Exim 4.69 Sun, 23 Jan 2011 15:01:36 +0000
ehlo localhost
250-<servername> Hello localhost [127.0.0.1]
250-SIZE 52428800
250-PIPELINING
250-STARTTLS
250 HELP
STARTTLS
220 TLS go ahead

acid_kewpie, Thank you!
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenSSL / Sendmail verifies both "TLS cert" and "x509 cert" in client mode, why? fast-reflexes Linux - Server 0 09-12-2010 11:32 AM
Samba "mount error(11): Resource temporarily unavailable" RWallett Linux - Server 1 07-01-2010 01:00 PM
"FUTEX WAIT EAGAIN (Resource temporarily unavailable )" jungbg Linux - Newbie 1 12-22-2009 05:07 PM
xine "Audio output unavailable. Device is busy." shellshock Linux - Software 3 05-13-2006 12:19 PM
SCSI Device unavailable after firmware download. Redhat or "sg" issue? jrvance Linux - Hardware 2 10-21-2003 01:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration