Хелп, люди добрые!
Про настройки постфикса тут уже много говорилось, не взыщите за еще один (может глупый) вопрос.
Как сделать чтобы postfix при отправке почты на relayhost прохолил аутентификацию.
postfix и smart relay с аутентификацией
- kae
- Неотъемлемая часть форума
- Сообщения: 318
- Зарегистрирован: 26 янв 2003, 03:53
- Откуда: Дзержинск, РБ.
- Контактная информация:
1. postfix должен быть собран с поддержкой sasl.
2. создать файлик saslpass (например) в /etc/postfix с паролями
3. в main.cf добавить:
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/saslpass
В saslpass пишем:
domain.tld my-mail-login:super-puper-password
э... тут забыл маленько... возможно, надо писАть так:
smtpserver.domain.tld my-mail-login:super-puper-password
А лучше написать м так и этак. Не ошибешся...
2. создать файлик saslpass (например) в /etc/postfix с паролями
3. в main.cf добавить:
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/saslpass
В saslpass пишем:
domain.tld my-mail-login:super-puper-password
э... тут забыл маленько... возможно, надо писАть так:
smtpserver.domain.tld my-mail-login:super-puper-password
А лучше написать м так и этак. Не ошибешся...

Будем же учиться хорошо мыслить — вот основной принцип морали
— Паскаль
— Паскаль
Спасибо! Еще я догадался создать saslpass.db postmap'ом. Теперь постфикс уже пытается что-то делать в нужном направлении, но этого пока не достаточно:
Код: Выделить всё
Apr 26 10:57:55 local-server postfix/smtp[18923]: BF6C65681A: to=<qwerty@tut.by>, relay=mail.qwerty.by[166.248.188.117], delay=2, status=deferred (Authentication failed: cannot SASL authenticate to server mail.qwerty.by[166.248.188.117]: no mechanism available)
- kae
- Неотъемлемая часть форума
- Сообщения: 318
- Зарегистрирован: 26 янв 2003, 03:53
- Откуда: Дзержинск, РБ.
- Контактная информация:
Не нашел подходящего механизма аутентификации... А может relayhost его и не требует?
Вот что есть в файле sample-auth.cf , но в старом рабочем конфиге все это было закоментировано. Я пробовал через mail.tut.by, но это было давно...
# The smtp_sasl_security_options parameter controls what authentication
# mechanisms the local Postfix SMTP client is allowed to use. The
# list of available authentication mechanisms is system dependent.
#
# Specify zero or more of the following:
#
# noplaintext: disallow methods that use plaintext passwords
# noactive: disallow methods subject to active (non-dictionary) attack
# nodictionary: disallow methods subject to passive (dictionary) attack
# noanonymous: disallow methods that allow anonymous authentication
#
# By default, the Postfix SMTP client will not use plaintext passwords.
#
#smtp_sasl_security_options =
smtp_sasl_security_options = noplaintext
Вот что есть в файле sample-auth.cf , но в старом рабочем конфиге все это было закоментировано. Я пробовал через mail.tut.by, но это было давно...
# The smtp_sasl_security_options parameter controls what authentication
# mechanisms the local Postfix SMTP client is allowed to use. The
# list of available authentication mechanisms is system dependent.
#
# Specify zero or more of the following:
#
# noplaintext: disallow methods that use plaintext passwords
# noactive: disallow methods subject to active (non-dictionary) attack
# nodictionary: disallow methods subject to passive (dictionary) attack
# noanonymous: disallow methods that allow anonymous authentication
#
# By default, the Postfix SMTP client will not use plaintext passwords.
#
#smtp_sasl_security_options =
smtp_sasl_security_options = noplaintext
Будем же учиться хорошо мыслить — вот основной принцип морали
— Паскаль
— Паскаль