Jump to content

Не приходят письма. Postfix. Dovecot. Ubuntu 20.04. 451 4.3.0 Temporary lookup failure


Recommended Posts

И так, была проблема в том что письма не уходили на gmail, и другие ящики.
Так же они и не приходили на мой vps.
Порыл кучу инфы, добавил все записи к домену. (mx, mail.domen.com, spf.......)

 

451 4.3.0 <info@domein.com>: Temporary lookup failureВот конфиг main.cf

 

queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix/sbin
data_directory = /var/lib/postfix
mail_owner = postfix
inet_protocols = all
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
debug_peer_level = 2
debugger_command =
     PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
     ddd $daemon_directory/$process_name $process_id & sleep 5

sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.10.1/samples
readme_directory = /usr/share/doc/postfix-2.10.1/README_FILES


myhostname = mail.domain.com
mynetworks = 127.0.0.1/8
mydomain = domain.com
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
message_size_limit = 30720000
virtual_alias_domains =
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
virtual_mailbox_base = /home/vmail
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
smtpd_relay_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_sasl_authenticated_header = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_use_tls = yes
smtpd_tls_cert_file = /etc/letsencrypt/live/domain.com/fullchain.pem
smtpd_tls_key_file = /etc/pki/dovecot/private/dovecot.pem
virtual_create_maildirsize = yes
virtual_maildir_extended = yes
proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps
virtual_transport = dovecot
dovecot_destination_recipient_limit = 1
inet_interfaces = all
smtp_tls_security_level = may
disable_vrfy_command = yes
smtpd_milters = inet:127.0.0.1:8891
non_smtpd_milters = $smtpd_milters
milter_default_action = accept

tls_server_sni_maps = hash:/etc/postfix/vmail_ssl.map
myorigin = /etc/mailname
relayhost =
mailbox_size_limit = 0
recipient_delimiter = +

header_checks = regexp:/etc/postfix/header_checks


 systemctl status postfix -l
 


● postfix.service - Postfix Mail Transport Agent
     Loaded: loaded (/lib/systemd/system/postfix.service; enabled; vendor preset: enabled)
     Active: active (exited) since Wed 2023-09-27 15:55:37 EEST; 1h 1min ago
    Process: 1820 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
   Main PID: 1820 (code=exited, status=0/SUCCESS)

Sep 27 15:55:37 vps-43637 systemd[1]: Starting Postfix Mail Transport Agent...
Sep 27 15:55:37 vps-43637 systemd[1]: Finished Postfix Mail Transport Agent.


root@vps-43637:~# systemctl status dovecot -l

● dovecot.service - Dovecot IMAP/POP3 email server
     Loaded: loaded (/lib/systemd/system/dovecot.service; enabled; vendor preset: enabled)
     Active: active (running) since Wed 2023-09-27 16:39:53 EEST; 18min ago
       Docs: man:dovecot(1)
             http://wiki2.dovecot.org/
   Main PID: 5982 (dovecot)
      Tasks: 7 (limit: 7006)
     Memory: 7.4M
     CGroup: /system.slice/dovecot.service
             ├─5982 /usr/sbin/dovecot -F
             ├─6005 dovecot/anvil
             ├─6006 dovecot/log
             ├─6007 dovecot/config
             ├─6033 dovecot/stats
             ├─7014 dovecot/auth
             └─7143 dovecot/auth -w

Sep 27 16:47:30 vps-43637 dovecot[6006]: imap-login: Login: user=<info@domain.com>, method=PLAIN, rip=::1, lip=::1, mpid=6502, TLS, session=<xzrHblcGjL8AAAAAAAAAAAAAAAAAAA>
Sep 27 16:47:30 vps-43637 dovecot[6006]: imap(info@domain.com)<6502><xzrHblcGjL8AAAAAAAAAAAAAAAAAAAAB>: Logged out in=676 out=29586 deleted=0 expunged=0 trashed=0 hdr_coun>
Sep 27 16:47:32 vps-43637 dovecot[6006]: imap-login: Login: user=<info@domain.com>, method=PLAIN, rip=::1, lip=::1, mpid=6507, TLS, session=<C+jYblcGlr8AAAAAAAAAAAAAAAAAAA>
Sep 27 16:47:32 vps-43637 dovecot[6006]: imap(info@domain.com)<6507><C+jYblcGlr8AAAAAAAAAAAAAAAAAAAAB>: Logged out in=676 out=29594 deleted=0 expunged=0 trashed=0 hdr_coun>
Sep 27 16:55:05 vps-43637 dovecot[6006]: imap-login: Login: user=<info@domain.com>, method=PLAIN, rip=::1, lip=::1, mpid=7048, TLS, session=<K7DdiVcGzqwAAAAAAAAAAAAAAAAAAA>
Sep 27 16:55:05 vps-43637 dovecot[6006]: imap(info@domain.com)<7048><K7DdiVcGzqwAAAAAAAAAAAAAAAAAAAAB>: Logged out in=105 out=971 deleted=0 expunged=0 trashed=0 hdr_count=>
Sep 27 16:55:05 vps-43637 dovecot[6006]: imap-login: Login: user=<info@domain.com>, method=PLAIN, rip=::1, lip=::1, mpid=7049, TLS, session=<MnTeiVcG2qwAAAAAAAAAAAAAAAAAAA>
Sep 27 16:55:05 vps-43637 dovecot[6006]: imap(info@domain.com)<7049><MnTeiVcG2qwAAAAAAAAAAAAAAAAAAAAB>: Logged out in=92 out=605 deleted=0 expunged=0 trashed=0 hdr_count=0>
Sep 27 16:57:25 vps-43637 dovecot[6006]: pop3-login: Login: user=<info@domain.com>, method=PLAIN, rip=31.133.98.218, lip=185.69.155.213, mpid=7144, TLS, session=<erQ8klcG8>
Sep 27 16:57:25 vps-43637 dovecot[6006]: pop3(info@domain.com)<7144><erQ8klcG8y8fhWLa>: Disconnected: Logged out top=0/0, retr=0/0, del=0/79, size=1286387


В vps на базе нуля, но настроить сайты и юзать подсказки гугла умею.

Link to comment
Share on other sites

  • 2 weeks later...

Переустановил postfix, слетели настройки разные, поднял снова по разным мануалам, теперь почта даже не уходит :( конфиг тот-же так как там указаны сертификаты. Куда копать? Логи пустые. Причем даже после переустановки - логи не пишутся, постфикс не выдает ошибок, довекот тоже чистый... куда копать?

 

p.s.

Использую cyberpanel, ubuntu 22.04, snappymail (встроеный в киберпанель)

Edited by wisma
p.s.
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...