Re: [exim] SMTP-AUTH problem

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Brent Jones
日付:  
To: Ian Roberts
CC: exim-users
題目: Re: [exim] SMTP-AUTH problem
Ian Roberts wrote:
> Hello,
>
> I have a slight problem, my users are in Ldap, and smtp auth is
> working correctly. BUT, we have some code running on remote systems
> that we have no access to, trying to supply the username as the full
> email address of the account instead of just the givename.
>
> How can I edit my authenticator in exim4 to allow both "user" and "user@???
> " as the supplied username?
>
> Here are my current authenticators:
>
> pam_plain:
>      driver = plaintext
>      public_name = PLAIN
>      server_condition = "${if pam{$2:$3}{1}{0}}"
>      server_set_id = $2
>      server_prompts = :
> pam_login:
>      driver = plaintext
>      public_name = LOGIN
>      server_prompts = "Username:: : Password::"
>      #server_prompts = :
>      server_condition = "${if pam{$1:$2}{1}{0}}"
> #   server_condition = "${if or {pam{{extract{1}@}:$2}{1}{0}}}  
> {pam{$1:$2}{1}{0}}}"
>      server_set_id = $1

>
> Thanks so much,
> Ian
>


Exim can do text substitution with 'sg'
Heres the chapter from Google Books (not sure how much you're allowed to
read at once):

http://books.google.com/books?id=foCRVaMeRMgC&pg=RA1-PA388&lpg=RA1-PA388&dq=exim+text+substitution&source=web&ots=wpogDhTpTV&sig=l7tMlrenKp682OHpFxupZK6QRX0&hl=en&sa=X&oi=book_result&resnum=3&ct=result

Could find and replace the @domain.com field, and just pass the username
to the authenticator.

Brent Jones