smarthosting with qmail and TLS doesn't work

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



We have an Exchange Server 2003 on a SBS 2003 that is supposed to relay
outgoing mail to another mail-server (Debian 4.0, QMail). QMail is configured
to require username and password to prevent open relay functionality and TLS
to defend against sniffing the credentials.

We set up a SMTP-Connector, typed in the address of the smarthost, supplied
the Outgoing Security Tab with username and password and checked the
TLS-Encryption box.

Unfortunately relaying doesn't work. Even worse, Exchange is not complaining
about it in Exchange System Manager (e.g. if you check TLS and the smarthost
doesn'support TLS, you get in message at the waiting queue saying something
like "TLS is not supported").

Of course you get a delivery failure notification saying "#5.5.0 smtp;553
sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)" which
comes from QMail . In our opinion this can only be the case if the sender of
the mail did not authenticate correctly.

The logs from Exchange and QMail are similar. We now captured tcp traffic on
port 25 when traying to relay an e-mail:

6 15.406250 78.46.39.75 192.168.67.2 SMTP SMTP: Rsp 220 qmail.foo.com
ESMTP, 31 bytes
7 15.625000 192.168.67.2 78.46.39.75 TCP TCP: Flags=....A...,
SrcPort=40793, DstPort=SMTP(25), Len=0, Seq=2842258295, Ack=3101341142,
Win=65504 (scale factor not found)
8 15.687500 192.168.67.2 78.46.39.75 SMTP SMTP: Cmd EHLO mail.bar.local, 38
bytes
9 15.718750 78.46.39.75 192.168.67.2 TCP TCP: Flags=....A...,
SrcPort=SMTP(25), DstPort=40793, Len=0, Seq=3101341142, Ack=2842258333,
Win=5840 (scale factor not found)
10 15.718750 78.46.39.75 192.168.67.2 SMTP SMTP: Rsp 250 -qmail.foo.com, 81
bytes
11 15.718750 192.168.67.2 78.46.39.75 SMTP SMTP: Cmd MAIL
FROM:<test-mailer@xxxxxxx>, 42 bytes
12 15.765625 78.46.39.75 192.168.67.2 SMTP SMTP: Rsp 250 ok, 8 bytes
13 15.765625 192.168.67.2 78.46.39.75 SMTP SMTP: Cmd RCPT
TO:<test-mailer@xxxxxx>, 30 bytes
14 15.812500 78.46.39.75 192.168.67.2 SMTP SMTP: Rsp 553 sorry, that
domain isn't in my list of allowed rcpthosts (#5.7.1), 71 bytes
15 15.812500 192.168.67.2 78.46.39.75 SMTP SMTP: Cmd RSET, Resets mail
connection
16 15.843750 78.46.39.75 192.168.67.2 SMTP SMTP: Rsp 250 flushed, 13 bytes
17 16.062500 192.168.67.2 78.46.39.75 TCP TCP: Flags=....A...,
SrcPort=40793, DstPort=SMTP(25), Len=0, Seq=2842258411, Ack=3101341315,
Win=65331 (scale factor not found)
18 16.062500 192.168.67.2 78.46.39.75 SMTP SMTP: Cmd QUIT, Terminates the
mail session
19 16.093750 78.46.39.75 192.168.67.2 SMTP SMTP: Rsp 221 qmail.foo.com, 25
bytes

We tested sending an e-mail via telnet to qmail, which worked out fine.
After Cmd EHLO the next thing we had to do was Cmd STARTTLS. Then you type in
the (encrypted) credentials and everything works fine. Looking at the capture
from Exchange, there is no STARTTLS...

Does anybody have an idea?

.



Relevant Pages

  • Re: Exchange issues
    ... Are you up to date on all your Service Packs, both Windows and Exchange? ... > all traffic on port 25 to the SBS Exhange server. ... I suspected SMTP relaying becuase ... > You should verify that the server really isn't an open relay: ...
    (microsoft.public.exchange2000.admin)
  • Re: MS Exchange Relay Authentication
    ... Make sure you are logging Exchange SMTP interface events. ... Relay restrictions are set to "allow all computers ... > eventlog errors to track down the compromised accounts. ...
    (NT-Bugtraq)
  • RE: Relay problem in Exchange
    ... Open Exchange System Manage. ... On the Access tab, click the Relay button. ... Restart SMTP service on this server. ... Please determine if your exchange server is open relay through telnet to ...
    (microsoft.public.windows.server.sbs)
  • Re: Relay Question
    ... An open relay ... is an SMTP e-mail server that allows third-party relay of e-mail messages. ... Exchange 2003 is by default configured to prevent open relay. ... Microsoft does not control these sites ...
    (microsoft.public.windows.server.sbs)
  • Re: Mailzustellung und NDR
    ... Des weiteren würd mich Interessieren ob am Exchange und SMTP-Relay die ... Tage gedauert hat (2 vom Exchange - obwohl dieser hat ja an den Relay ... Ihre Nachricht hat einige oder alle Empfänger nicht erreicht. ...
    (microsoft.public.de.exchange)