I have setup Postfix and Dovecot on my CentOS Server.
Now I am using unsecure SMTP and POP/IMAP (ports 25 and 110/143). I can send mail locally to and from myself, but when I want to send email TO my gmail account, eg. david@gmail.com, it responds:
Relay access denied
I tried the following, but it still gives me an access deny issue. Made the following changes to /etc/postfix/main.cf
:
smtpd_sasl_local_domain =
smtpd_sasl_auth_enable = yes
smtpd_sasl_type = cyrus
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_sasl_authenticated_header = yes
smtpd_recipient_restrictions =
permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
smtpd_recipient_restrictions
empty (not sure how Postfix feels about that) and then have a syntax error on the next line. Look at and possibly post the output ofpostconf -d | grep -E 'smtpd_[^_]+_restrictions'
. – a CVn Jul 22 '13 at 11:29