[exim] SMTP AUTH - server_set_id

Startseite
Nachricht löschen
Nachricht beantworten
Autor: jason
Datum:  
To: exim-users
Betreff: [exim] SMTP AUTH - server_set_id
Hi,

I have this situation where by enabling "server_set_id = $1" in my LOGIN
authentication makes exim believe this is my localpart in the senders
address. As you can see in the exim logs below, exim goes on to add the
primary_hostname to the senders address
("user@???) and this obviously fails the
verify.
I want to have the functionality that a user with email address
joe@??? can authenticate with the smtp auth account
companyname@??? and send email (multiple users can use the one auth
account).
For some reason when setting "server_set_id" exim is using the
authentication address as the senders email address??? If I disable
"server_set_id" then everything works fine BUT I do not get any entry in
the logs stating which account was used to authenticate.
Maybe I have misunderstood the use of "server_set_id", any advise is
welcome.

Regards,
Jason

login:
driver                          = "plaintext"
public_name                     = "LOGIN"
server_prompts                  = Username:: : Password::
#server_advertise_condition      = ${if eq{$tls_cipher}{}{no}{yes}}
server_condition                = ${if crypteq {$2}{${lookup mysql{ \
                                                                SELECT
crypt \
                                                                FROM users
\
                                                                WHERE
CONCAT(user,'@',domain)='${quote_mysql:$1}' \
                                                                AND
status='enabled' \
                                                            }}}{yes}{no}}
server_set_id                   = $1



user@lappie:~$ swaks --auth LOGIN --server mailserver.example.com
--auth-user user@??? --auth-password xxxxxxxxxx --from
user@???
To: user@???
=== Trying mailserver.example.com:25...
=== Connected to mailserver.example.com.
<- 220 mailserver.example.com ESMTP Exim 4.69 Sun, 20 Dec 2009 19:15:29
+0000
-> EHLO lappie
<- 250-mailserver.example.com Hello
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
<- 250-SIZE 52428800
<- 250-PIPELINING
<- 250-AUTH CRAM-MD5 LOGIN PLAIN
<- 250-STARTTLS
<- 250 HELP
-> AUTH LOGIN
<- 334 xxxxxxxxxxxxx
-> xxxxxxxxxxxxxxxxxxxxxxxxxxxx
<- 334 xxxxxxxxxxxxxx
-> xxxxxxxxxxxxxxx
<- 235 Authentication succeeded
-> MAIL FROM:<user@???>
<- 250 OK
-> RCPT TO:<user@???>
<- 250 Accepted
-> DATA
<- 354 Enter message, ending with "." on a line by itself
-> Date: Sun, 20 Dec 2009 19:15:29 +0000
-> To: user@???
-> From: user@???
-> Subject: test Sun, 20 Dec 2009 19:15:29 +0000
-> X-Mailer: swaks v20061116.0 jetmore.org/john/code/#swaks
->
-> This is a test mailing
->
-> .
<- 250 OK id=1NMRFa-00042U-6Z
-> QUIT
<- 221 mailserver.example.com closing connection
=== Connection closed with remote host.
user@lappie:~$


2009-12-20 19:15:30 1NMRFa-00042U-6Z <=
"user@???
H=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx P=esmtpa A=login:user@???
S=607 T="test Sun, 20 Dec 2009 19:15:29 +0000"
2009-12-20 19:15:30 1NMRFa-00042U-6Z ** user@??? R=dnslookup
T=remote_smtp: SMTP error from remote mail server after RCPT
TO:<user@???>: host xxxxxxxxxxxxxxxxxxxxxxxxxxx: 550-Verification
failed for <"user@???>\n550-Unrouteable
address\n550 Sender verify failed
2009-12-20 19:15:30 1NMRFa-00042X-Cs <= <> R=1NMRFa-00042U-6Z
U=Debian-exim P=local S=1736 T="Mail delivery failed: returning message to
sender"
2009-12-20 19:15:30 1NMRFa-00042X-Cs **
user@???@mailserver.example.com
<"user@???>: Unknown user
2009-12-20 19:15:30 1NMRFa-00042X-Cs Frozen (delivery error message)
2009-12-20 19:15:30 1NMRFa-00042U-6Z Completed