When I try to send a mail by SMTP and Postfix I got a error "5.7.1 unable to relay".
After lot of config changing it worked for me to send email to the same domain as server (to other accounts on that host) by:
smtpd_relay_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
But I stil got this error when sending to other domains. Dovecot is installed on my server.
How to allow relay to any domain but with simple authentication on SMTP on port 25 ? Without SSL/TLS etc.
If I addthe domain which I use as recipient for test to my destinations:
mydestination = o2.pl
Recipient address rejected: User unknown in local recipient table
Sample log when configured without mydestination:
Oct 6 00:50:40 XXXXXXX postfix/smtpd: NOQUEUE: reject: RCPT from MY_HOME_HOST: 554 5.7.1 <TARGET_EMAIL@o2.pl>: Relay access denied; from=<TEST_ACCOUN@MY_DOMAIN.pl> to=<TARGET_EMAIL@o2.p> proto=ESMTP helo=<[127.0.0.1]>
Thunderbird just hungs when I try to send email. It hung on "Connected to MY_OWN_DOMAIN..."
I switched TLS to "no" but it not helped. When I telnet to port 25 on localhost, I don't get a welcome message from SMTP
Propably because of:
"smtpd_recipient_restrictions": specify at least one working instance of: check_relay_domains, reject_unauth_destination, reject, defer or defer_if_permit
But when I have added "check_relay_domains" I got a error from thunderbird, that SMTP server send broken welcome message.
Finally I got new error:
Recipient address rejected: Relay access denied.
My whole main.cf: http://pastie.org/4916947