Попробуй так:
в /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