[Exim] problem with HELO and TLS

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Alexey Promokhov
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: [Exim] problem with HELO and TLS
Hi!

I have no FQDN, so I want my Exim to send my IP address in HELO command
when delivering outgoing mail. RFC2821 (4.1.1.1) say that it should be.

The remote_smtp transport has the following option:

helo_data=[${readfile{/var/run/local-ip}{}}]

File /var/run/local-ip contains my current dynamic IP address.

This works well, until Exim delivering mail with TLS.

Here is transcript of SMTP session:

=== Cut ===
Connecting to mail.ayp.msk.ru [195.2.83.131]:25 ... connected
SMTP<< 220 backend1.aha.ru ESMTP CommuniGate Pro 3.5.9
SMTP>> EHLO [62.118.136.198]

;; Right.
  SMTP<< 250-backend1.aha.ru is pleased to meet you
         250-HELP
         250-PIPELINING
         250-ETRN
         250-DSN
         250-TURN
         250-ATRN
         250-SIZE 10485760
         250-STARTTLS
         250-AUTH=LOGIN
         250-AUTH LOGIN PLAIN CRAM-MD5 DIGEST-MD5
         250-8BITMIME
         250 EHLO

SMTP>> STARTTLS

SMTP<< 220 please start a TLS connection
SMTP>> EHLO thunder.ayp.msk.ru

;; This is default Exim HELO, $primary_hostname.
  SMTP<< 250-backend1.aha.ru host name is unknown thunder.ayp.msk.ru
         250-HELP
         250-PIPELINING
         250-ETRN
         250-DSN
         250-TURN
         250-ATRN
         250-SIZE 10485760
         250-AUTH=LOGIN
         250-AUTH LOGIN PLAIN CRAM-MD5 DIGEST-MD5
         250-8BITMIME
         250 EHLO

SMTP>> AUTH CRAM-MD5

SMTP<< 334 PDE4MTAyMy4xMDE5MjQyMDQzQGJhY2tlbmQxLmFoYS5ydT4=
SMTP>> cG9zdG1hc3RlciVheXAubXNrLnJ1IGNiYWVmYWI1MTViNDQzODkzODFkODhmMzRjYTkyYTEx

SMTP<< 235 postmaster#ayp.msk.ru relaying authenticated
SMTP>> MAIL FROM:<ayp#ayp.msk.ru> SIZE=1588 AUTH=alexpro#thunder.ayp.msk.ru
SMTP>> RCPT TO:<goodboss#mail.ru>
SMTP>> DATA

SMTP<< 250 ayp#ayp.msk.ru sender accepted
SMTP<< 250 goodboss#mail.ru will relay mail for an authenticated user
SMTP<< 354 Enter mail, end with "." on a line by itself
SMTP>> writing message and terminating "."

SMTP<< 250 66560934 message accepted for delivery
SMTP>> QUIT

LOG: MAIN
=> goodboss#mail.ru R=zenon T=remote_smtp H=mail.ayp.msk.ru [195.2.83.131] X=TLSv1:RC4-SHA:128
=== Cut ===

('@' has been changed with '#' by mail editor)

So, after STARTTLS Exim issues second EHLO with $primary_hostname. I think
it's a bug.

(Mail still delivering correct in my case, so it does not annoy me)

BTW, above log has been resulted with exim -v option. After each SMTP
command that has been sent by Exim there was <CR> symbol (^M). There was
no such symbol after SMTP commands sent by remote server. Maybe it's a
minor bug...

--
Alexey Promokhov <ayp#ayp.msk.ru>, 2:5020/2388.1513, http://ayp.msk.ru