Листинг /usr/local/exim/configure (скачать)
# AUTHENTICATION CONFIGURATION # | |
begin authenticators | |
#PLAIN: | |
# driver | = plaintext |
# server_set_id | = $auth2 |
# server_prompts | = : |
# server_condition | = Authentication is not yet configured |
# server_advertise_condition | = ${if def:tls_in_cipher } |
#LOGIN: | |
# driver | = plaintext |
# server_set_id | = $auth1 |
# server_prompts | = <| Username: | Password: |
# server_condition | = Authentication is not yet configured |
# server_advertise_condition | = ${if def:tls_in_cipher } |
# 1. Так авторизуется Netscape => (LOGIN) | |
auth_login: | |
driver | = plaintext |
public_name | = LOGIN |
server_condition | = ${lookup sqlite,file=/www/db/exim/exim.sqlite \ |
| {SELECT `username` FROM `mailbox` WHERE `username` = \ |
| '${quote_sqlite:$auth1}' AND `password` = \ |
| '${quote_sqlite:$auth2}'}{yes}{no}} |
server_prompts | = Username:: : Password:: |
server_set_id | = $auth1 |
# 2. Так авторизуется Outlook Express => (PLAIN) | |
auth_plain: | |
driver | = plaintext |
public_name | = PLAIN |
server_condition | = ${lookup sqlite,file=/www/db/exim/exim.sqlite \ |
| {SELECT `username` FROM `mailbox` WHERE `username` = \ |
| '${quote_sqlite:$auth2}' AND `password` = \ |
| '${quote_sqlite:$auth3}'}{yes}{no}} |
server_prompts | = : |
server_set_id | = $auth2 |
# 3. Так авторизуется TheBat! => (CRAM-MD5) | |
auth_cram_md5: | |
driver | = cram_md5 |
public_name | = CRAM-MD5 |
server_secret | = ${lookup sqlite,file=/www/db/exim/exim.sqlite \ |
| {SELECT `password` FROM `mailbox` WHERE `username` = \ |
| '${quote_sqlite:$auth1}'}{$value}fail} |
server_set_id | = $auth2 |