Re: [exim] More secure authentication with dyndns.com's mail…

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Sander Smeenk
日付:  
To: exim-users
題目: Re: [exim] More secure authentication with dyndns.com's mailhop outbound service?
Quoting Adam Funk (adam00f@???):

>         login:
>             driver = plaintext
>             public_name = LOGIN
>             client_send = ": username : password"


> I would like exim to be able to authenticate to outbound.mailhop.org
> without storing the unencrypted password on disk. Is this possible?


Ofcourse it is.

login_server:
    driver = plaintext
    public_name = LOGIN
    server_prompts = "Username:: : Password::"
    server_condition = "${if crypteq{$2}{${extract{1}{:}{${lookup{$1}lsearch{CONFDIR/passwd}{$value}{*:*}}}}}{1}{0}}"
    server_set_id = $1


Works for me. I have a file CONFDIR/passwd with crypt()'ed passwords.

--
| "Weird. It doesn't need a license if you change 5 bytes at 0x8cec94 to 0x90!"
| -- Someone on IRC about licensed software
| 1024D/08CEC94D - 34B3 3314 B146 E13C 70C8 9BDB D463 7E41 08CE C94D