V
V
VA2019-08-01 23:39:14
Mail server
VA, 2019-08-01 23:39:14

Postfix+Dovecot emails are not coming. how to solve?

Ubuntu 18.04, ip address is 80.14.123.196
Postfix, Dovecot, PostgreSQL, OpenDKIM Server behind
MikroTik gateway, all necessary ports are open (25, , 143, 465, 587, 993)
to spam.
However, I can't get it.

main.cf

#myhostname = mail.site.ru
compatibility_level=2
relay_domains =
virtual_alias_maps = proxy:pgsql:/etc/postfix/virtual_alias_maps.cf
virtual_mailbox_domains = proxy:pgsql:/etc/postfix/virtual_mailbox_domains.cf
virtual_mailbox_maps = proxy:pgsql:/etc/postfix/virtual_mailbox_maps.cf
virtual_mailbox_base = /home/vmail
virtual_mailbox_limit = 512000000
virtual_minimum_uid = 5000
virtual_transport = virtual
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000

local_transport = virtual
local_recipient_maps = $virtual_mailbox_maps
transport_maps = hash:/etc/postfix/transport

smtpd_sasl_auth_enable = yes
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_security_options = noanonymous
smtpd_sasl_tls_security_options = $smtpd_sasl_security_options

smtpd_tls_security_level = may
smtp_tls_security_level = may

smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /etc/ssl/private/server.crt
smtpd_tls_key_file = /etc/ssl/private/server.key
smtpd_sasl_local_domain = $mydomain

 
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_tls_protocols = !SSLv2, !SSLv3

broken_sasl_auth_clients = yes
smtpd_tls_loglevel = 1

html_directory = /usr/share/doc/postfix/html
queue_directory = /var/spool/postfix

mydestination = localhost

#OPENDKIM
milter_default_action = accept
milter_protocol = 2
smtpd_milters = inet:127.0.0.1:8891
non_smtpd_milters = inet:127.0.0.1:8891


There are such entries in the
mail.log logs
spoiler

Aug  1 05:55:43  myserver postfix/smtp[29466]: 1841B842A6B: host mail.shara.tv[285.130.195.145] 
said: 450 4.7.1 Client host rejected: cannot find your hostname, [80.14.123.196]. 

For assistance, call +7 (495) 727 24 24 #8080. 
Please provide the following information in your problem report: time (Aug 01 05:55:43), client (80.14.123.196) and server (mail.crocusgroup.ru). (in reply to RCPT TO command)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
vreitech, 2019-08-01
@fzfx

judging by the log, there is no reverse PTR record. it must be configured on your DNS server, or on the server of the hoster / provider, so that <domain_name_of_your_server> isdig -tPTR -x<IP_вашего_сервера> returned to the terminal command .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question