Re: [Exim] setting up SMTP AUTH using virtual passwd files

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Elwood Blues
Ημερομηνία:  
Προς: Jeremy C. Reed
Υ/ο: exim-users
Αντικείμενο: Re: [Exim] setting up SMTP AUTH using virtual passwd files
login:
    driver = plaintext
    public_name = LOGIN
    server_prompts = "Username:: : Password::"
    server_condition = ${if \
      crypteq{$2}{${extract{1}{:}{${lookup{${local_part:$1}}\
      lsearch{/etc/virtual/${domain:$1}/passwd}{$value}fail}}}}{1}{0}}
    server_set_id = $1



On Mon, 15 Apr 2002, Jeremy C. Reed wrote:

> Date: Mon, 15 Apr 2002 12:27:21 -0700 (PDT)
> From: Jeremy C. Reed <reed@???>
> To: exim-users@???
> Subject: [Exim] setting up SMTP AUTH using virtual passwd files
>
> Does anyone have any examples of setting up SMTP AUTH using different
> passwd files based on username?
>
> For example:
> /etc/virtual/domain1/passwd
> /etc/virtual/domain2/passwd
>
> username would be user@domain1 or user@domain2.
>
> I have:
>
>
> login:
> driver = plaintext
> public_name = LOGIN
> server_prompts = "Username:: : Password::"
> server_condition = ${if
> crypteq{$2}{${lookup{$1}lsearch{/etc/virtual/test/pass
> wd}{$value}}}{1}{0}}
> server_set_id = $1
>
>
> But I want "test" directory above changed to "domain" as sent in the
> username. So I need to split $1 at the "@" sign to get username and
> "domain" (directory) name. Any ideas?
>
> By the way, I am testing with Pine. I have:
> smtp-server=rainier/user=testing
> But I will change to
> smtp-server=rainier/user=testing@domain1
>
> And with pine, I did the following so it would work without
> "security" complaint:
> disable-these-authenticators=PLAIN
>
> I read that Outlook only supports AUTH LOGIN. (Hopefully testing with pine
> will be good enough for outlook.)
>
> And I think I can't used CRAM MD5 because my passwords are already
> encrypted.
>
>   Jeremy C. Reed
> ....................................................
>      BSD software, documentation, resources, news...
>      http://bsd.reedmedia.net/

>
>
> --
>
> ## List details at http://www.exim.org/mailman/listinfo/exim-users Exim details at http://www.exim.org/ ##
>