Scalix does not authenticate at the smarthost
Posted: Mon Jul 24, 2006 11:04 am
I use SCALIX Community Edition 10.0.1 on OpenSuSE 10.0 and I want to send all external e-mail through a smarthost (SMTP with TLS). Therefore I changed /etc/sendmail.cf and addded ...
Then I added ...
... to /etc/mail/auth/auth-info and made the ...
... as described on http://www.scalix.com/wiki/index.php?ti ... notes/SMTP.
If I now try to send a message to an external address (e.g. external.recipient@gmx.net), I get this reply:
For debugging I did a ...
... on the console and got this result ...
To me this looks like sendmail does not use the correct login (relay@mysmarthost.net) to authenticate to the smarthost. Instead it uses root@store.localdomain.local.
But I'm not an expert on sendmail. Please help.
Code: Select all
# "Smart" relay host (may be null)
DSmail.mysmarthost.net
# authinfo list database: contains info for authentication as client
Kauthinfo hash -o /etc/mail/auth/auth-info
# list of authentication mechanisms
O AuthMechanisms=EXTERNAL GSSAPI KERBEROS_V4 DIGEST-MD5 CRAM-MD5 LOGIN PLAIN
Then I added ...
Code: Select all
AuthInfo:mail.mysmarthost.net "U:relay@mysmarthost.net" "I:relay@mysmarthost.net" "P:ThePWforTheRelayAccount" "M:CRAM-MD5"
... to /etc/mail/auth/auth-info and made the ...
Code: Select all
makemap hash auth-info < auth-info
... as described on http://www.scalix.com/wiki/index.php?ti ... notes/SMTP.
If I now try to send a message to an external address (e.g. external.recipient@gmx.net), I get this reply:
Code: Select all
The original message was received at Tue, 25 Jul 2006 04:38:30 +0700
from localhost [127.0.0.1]
----- The following addresses had permanent fatal errors -----
<external.recipient@gmx.net>
(reason: 553 sorry, that domain isn't in my list of allowed rcpthosts; no valid cert for gatewaying (#5.7.1))
----- Transcript of session follows -----
... while talking to mail.mysmarthost.net.:
>>> DATA
<<< 553 sorry, that domain isn't in my list of allowed rcpthosts; no valid cert for gatewaying (#5.7.1)
550 5.1.1 <external.recipient@gmx.net>... User unknown
<<< 503 RCPT first (#5.5.1)
----- Inline Message Follows -----
To: external.recipient@gmx.net
From: SCALIX USER
Subject: Test through the smarthost
This message should be delivered through the smarthost..
For debugging I did a ...
Code: Select all
store:~ # sendmail -Am -v external.recipient@gmx.net
Subject:Mail to smarthost
This message should be delivered through the smarthost ...
<CTRL+D>
... on the console and got this result ...
Code: Select all
external.recipient@gmx.net... Connecting to mail.mysmarthost.net. via relay...
220 mysmarthost.de ESMTP
>>> EHLO store.localdomain.local
250-mysmarthost.de
250-AUTH=LOGIN CRAM-MD5 PLAIN
250-AUTH LOGIN CRAM-MD5 PLAIN
250-STARTTLS
250-PIPELINING
250 8BITMIME
>>> STARTTLS
220 ready for tls
>>> EHLO store.localdomain.local
250-mysmarthost.de
250-AUTH=LOGIN CRAM-MD5 PLAIN
250-AUTH LOGIN CRAM-MD5 PLAIN
250-PIPELINING
250 8BITMIME
>>> MAIL From:<root@store.localdomain.local> AUTH=root@store.localdomain.local
250 ok
>>> RCPT To:<external.recipient@gmx.net>
>>> DATA
553 sorry, that domain isn't in my list of allowed rcpthosts; no valid cert for gatewaying (#5.7.1)
503 RCPT first (#5.5.1)
>>> RSET
250 flushed
/root/dead.letter... Saved message in /root/dead.letter
Postmaster... aliased to root
root... Connecting to local...
root... Sent
Closing connection to mail.mysmarthost.net.
>>> QUIT
221 mysmarthost.de
You have new mail in /var/spool/mail/root
To me this looks like sendmail does not use the correct login (relay@mysmarthost.net) to authenticate to the smarthost. Instead it uses root@store.localdomain.local.
But I'm not an expert on sendmail. Please help.