LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-26-2009, 06:42 AM   #1
barackobama
LQ Newbie
 
Registered: Feb 2009
Posts: 2

Rep: Reputation: 0
Question Exim4 on Debian not negotiating TLS session...


Fellow citizens of the world,
I am trying to set up exim4 to send mail from a recently built laptop running Debian etch. I type "mail" at the bash prompt and send a test e-mail. I expect to see a new TLS connection to the configured SMTP server (smtp-roam.stanford.edu:465), then a non-trivial amount of data sent on the connection, and finally the test e-mail in the remote mailbox.
What I actually see is the establishment of a new TCP connection to the SMTP server (on port 465), but no TLS negotiation takes place at all. Exim4 just hangs as if it is waiting for the remote server to initiate the TLS handshake or something. Really not sure what's happening at all! Perhaps I am confused...
More precisely, for those who are familiar with the nuts and bolts of TCP/IP, I just see the usual three packet TCP handshake (SYN-SYNACK-ACK), then dead silence. Here's the tcpdump output when I send that test e-mail:

03:49:36.417728 IP (tos 0x0, ttl 64, id 59916, offset 0, flags [DF],
proto: TCP (6), length: 60) 192.168.0.101.55856 > 171.64.13.9.465:
S, cksum 0xf47d (correct),
4211147563:4211147563(0) win 5840 <mss 1460,sackOK,timestamp 583975
0,nop,wscale 4>
03:49:36.472416 IP (tos 0x0, ttl 243, id 44203, offset 0, flags [none],
proto: TCP (6), length: 64) 171.64.13.9.465 > 192.168.0.101.55856:
S, cksum 0xa609 (correct),
15231411:15231411(0) ack 4211147564 win 4356 <mss 1452,nop,wscale 0
,nop,nop,timestamp 2993432110 583975,sackOK,eol>
03:49:36.472454 IP (tos 0x0, ttl 64, id 59917, offset 0, flags [DF],
proto: TCP (6), length: 52) 192.168.0.101.55856 > 171.64.13.9.465
: ., cksum 0xf554 (correct), 1:1
(0) ack 1 win 365 <nop,nop,timestamp 583989 2993432110>

And that's all she wrote -- no more packets at all.

Here is some version info:
Exim version 4.63 #1 built 20-Jan-2007 10:40:39
Linux HPC 2.6.18-6-686 #1 SMP Fri Dec 12 16:48:28 UTC 2008 i686 GNU/Linux

I used the exim4 config file generated by running 'dpkg-reconfigure exim4-config' with the single line 'tls_on_connect_ports = 465' added near the top. If it will help, I would be happy to send the exim4.conf file, which is 745 lines long.
I hope someone can help me out.
Thanks!
 
Old 02-27-2009, 03:09 AM   #2
barackobama
LQ Newbie
 
Registered: Feb 2009
Posts: 2

Original Poster
Rep: Reputation: 0
A litte more information on this. I looked at http://www.manu-j.com/blog/wordpress...gmail-smtp/75/, which describes how to configure exim4 to talk TLS to gmail on port 587, not port 465, which I was trying to get to work with an SMTP server at my school. I was able to get gmail:587 to work easily. that to work easily. It turns out smtp.gmail.com also listens on port 465, so I tried to get gmail:465 to work, but it hangs in exactly the same way described above (TCP connection is setup, but TLS negotiation never starts). Thus, it seems there is some problem specifically with port 465. This looks like a bug in exim4 (why would it establish a TCP session and then not send any data?), but I am enough of a newbie to not be certain.

I can use gmail for my purposes, so I will not look into this further.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Exim4 no longer works with tls-ssl? timebandit1 Debian 1 02-02-2009 12:05 PM
exim4 configuration in Debian, need some help... 298 Linux - Software 3 09-27-2008 05:37 AM
Debian Exim4 SMTP Auth TLS? shaun_bakker Linux - Software 1 06-30-2005 11:04 AM
Exim4 / Clamav & Debian williew Linux - Software 0 12-26-2004 04:11 PM
exim4 exim4, setup debian tongueroo Linux - Networking 1 11-09-2004 04:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:51 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