Имя пользователя:
Пароль:  
Помощь | Регистрация | Забыли пароль?  

Показать сообщение отдельно
zai zai вне форума

Аватара для zai

Ветеран


Сообщения: 4964
Благодарности: 724

Профиль | Отправить PM | Цитировать


Попробуй так:
в /etc/postfix/main.cf
допиши:
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/mailpasswd
smtp_sasl_security_options = noanonymous
smtp_sasl_type = cyrus
smtp_sasl_mechanism_filter = login
smtp_sender_dependent_authentification = yes
sender_dependent_relayhost_maps = hash:/etc/postfix/sender_relay
sender_canonical_maps = hash:/etc/postfix/canonical
smtp_generic_maps = hash:/etc/postfix/generic

создай файл: /etc/postfix/mailpasswd
с текстом (у меня в примере Яндекс):
[smtp.yandex.ru] pochta@yandex.ru:12345

создай файл: /etc/postfix/sender_relay
с текстом:
@yandex.ru [smtp.yandex.ru]
pochta@yandex.ru [smtp.yandex.ru]

создай файл: /etc/postfix/canonical
с текстом:
@yandex.ru pochta@yandex.ru

Команды:
postmap /etc/postfix/canonical
postmap /etc/postfix/sender_relay
postmap /etc/postfix/mailpasswd
postmap /etc/postfix/generic

-------
А зачем тебе жужжать, если ты не пчела? По-моему так.

Это сообщение посчитали полезным следующие участники:

Отправлено: 16:03, 29-02-2016 | #7