> mynetworks = 127.0.0.0/8, My Public IP > Trying ::1... It could be that you are using IPv6 to connect while "mynetworks" is IPv4 address. Try "telnet 127.0.0.1 25"
On Mon, Oct 12, 2020 at 3:25 PM Jason Long <hack3r...@yahoo.com> wrote: > 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. >