LINUX.ORG.RU
ФорумAdmin

Исправить неавторизованную отправку email


0

0

Данная конфигурация exim’a позволяет отправлять письма даже не созданным пользователям.
Задача исправить не авторизованную отправку email в exim.
В AUTHENTICATION CONFIGURATION написано:

begin authenticators

plain_login:
driver = plaintext
public_name = PLAIN
server_condition = ${lookup mysql{SELECT '1' FROM users \
WHERE username = '${quote_mysql:$2}' \
AND clear = '${quote_mysql:$3}'} {yes}{no}}
server_set_id = $2

fixed_login:
driver = plaintext
public_name = LOGIN
server_prompts = "Username:: : Password::"
server_condition = ${lookup mysql{SELECT '1' FROM users \
WHERE username = '${quote_mysql:$1}' \
AND clear = '${quote_mysql:$2}'} {yes}{no}}
server_set_id = $1

fixed_cram:
driver = cram_md5
public_name = CRAM-MD5
server_secret = ${lookup mysql{SELECT clear FROM users \
WHERE username = '${quote_mysql:$1}'}{$value}fail}
server_set_id = $1
В логах :
2007-12-10 20:21:10 no IP address found for host vasya.pupkin.local (during SMTP connection from [192.168.0.5])
2007-12-10 20:21:13 fixed_cram authenticator failed for (vasya.pupkin.local) [192.168.0.5]: 535 Incorrect authentication data (set_id=test@pupkin.ru)
2007-12-10 20:21:14 plain_login authenticator failed for (vasya.pupkin.local) [192.168.0.5]: 535 Incorrect authentication data
2007-12-10 20:21:14 fixed_login authenticator failed for (vasya.pupkin.local) [192.168.0.5]: 535 Incorrect authentication data (set_id=test@pupkin.ru)
2007-12-10 20:21:15 1J1mJf-0003Af-Ak <= test@pupkin.ru H=(vasya.pupkin..local) [192.168.0.5] P=esmtp S=1446 id=942629988.20071210181719@pupkin.ru T="test"
2007-12-10 20:21:16 1J1mJf-0003Af-Ak => user@list.ru R=dnslookup T=remote_smtp H=mxs.mail.ru [194.67.23.20]


Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.