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
("[email protected]"@mailserver.example.com) and this obviously fails the
verify.
I want to have the functionality that a user with email address
[email protected] can authenticate with the smtp auth account
[email protected] 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


u...@lappie:~$ swaks --auth LOGIN --server mailserver.example.com
--auth-user [email protected] --auth-password xxxxxxxxxx --from
[email protected]
To: [email protected]
=== 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:<[email protected]>
<-  250 OK
 -> RCPT TO:<[email protected]>
<-  250 Accepted
 -> DATA
<-  354 Enter message, ending with "." on a line by itself
 -> Date: Sun, 20 Dec 2009 19:15:29 +0000
 -> To: [email protected]
 -> From: [email protected]
 -> 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.
u...@lappie:~$


2009-12-20 19:15:30 1NMRFa-00042U-6Z <=
"[email protected]"@mailserver.example.com
H=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx P=esmtpa A=login:[email protected]
S=607 T="test Sun, 20 Dec 2009 19:15:29 +0000"
2009-12-20 19:15:30 1NMRFa-00042U-6Z ** [email protected] R=dnslookup
T=remote_smtp: SMTP error from remote mail server after RCPT
TO:<[email protected]>: host xxxxxxxxxxxxxxxxxxxxxxxxxxx: 550-Verification
failed for <"[email protected]"@mailserver.example.com>\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 **
[email protected]@mailserver.example.com
<"[email protected]"@mailserver.example.com>: 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

-- 
## List details at http://lists.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to