Hello,
I installed Postfix on CentOS and my "main.cf" file is as below:

myhostname = mail.my-example.com
mydomain = my-example.com
myorigin = $mydomain
## Uncomment and Set inet_interfaces to all ##
inet_interfaces = all
## Change to all ##
inet_protocols = all
## Comment ##
##- Uncomment ##
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
## Uncomment and add IP range ##
mynetworks = 127.0.0.0/8, My Public IP
## Uncomment ##
home_mailbox = Maildir/
smtpd_use_tls = yes
smtpd_tls_cert_file = /etc/postfix/mail.crt
smtpd_tls_key_file = /etc/postfix/mail.key
smtpd_tls_security_level = may
mynetworks_style = subnet
queue_directory = /var/spool/postfix



When I want to send an email to Yahoo! then it show me below error:

# telnet localhost 25
Trying ::1...
Connected to localhost.
Escape character is '^]'.
ehlo localhost
220 mail.my-example.net.com ESMTP Postfix
250-mail.my-example.net.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
mail from:<info>
250 2.1.0 Ok
rcpt to:<myexam...@yahoo.com>
554 5.7.1 <myexam...@yahoo.com>: Relay access denied


I searched and find a solution as below:

"smtpd_recipient_restrictions = permit_sasl_authenticated"
  
But when I added it to main.cf then I can't do anything:

# telnet localhost 25
Trying ::1...
Connected to localhost.
Escape character is '^]'.
ehlo localhost


How can I solve it?

Thank you.

Reply via email to