Dobrý deň,
prosím o pomoc s riešením postfixu. Potrebujem odosielať e-maily z môjho serveru na gmail. Doménu mám u FORPSI, ktorú smerujem na moju IP od UPC. Ide o úplne jednoduchý SMTP server... Dávam do pozornosti, že odosielanie mailov na inú doménu, napr. azet.sk funguje.
Po odoslaní mailu na gmail.com
/var/log/miail.log
Jan 17 10:29:35 domena.tld postfix/smtp[12444]: 13CCDC812A6: to=<mail@gmail.com>, relay=gmail-smtp-in.l.google.com[173.194.69.27]:25, delay=2.3, delays=0.05/0/1.7/0.55, dsn=5.7.1, status=bounced (host gmail-smtp-in.l.google.com[173.194.69.27] said: 550-5.7.1 [188.167.69.229] The IP you're using to send mail is not authorized to 550-5.7.1 send email directly to our servers. Please use the SMTP relay at your 550-5.7.1 service provider instead. Learn more at 550 5.7.1 https://support.google.com/mail/?p=NotAuthorizedError r21si739613edr.204 - gsmtp (in reply to end of DATA command))
postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
config_directory = /etc/postfix
inet_interfaces = all
local_recipient_maps = proxy:unix:passwd.byname $alias_maps
mailbox_size_limit = 0
mydestination = mail.domena.tld, domena.tld, localhost, localhost.localdomain
mydomain = domena.tld
myhostname = domena.tld
mynetworks = 192.168.1.0/24, my_public_IP, 127.0.0.0/8, [::ffff:127.0.0.0]/104, [::1]/128
myorigin = /etc/mailname
recipient_delimiter = +
smtp_tls_mandatory_protocols = !SSLv2, !SSLv3, !TLSv1, !TLSv1.1 = f
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_recipient_restrictions = permit_sasl_authenticated
smtpd_tls_cert_file = /etc/letsencrypt/live/domena.tld/fullchain.pem
smtpd_tls_key_file = /etc/letsencrypt/live/domena.tld/privkey.pem
smtpd_tls_protocols = !SSLv2, !SSLv3
smtpd_tls_security_level = may
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes