Não é possível conectar-se ao servidor Postfix / Dovecot

0

Desde alguns dias, não consigo fazer login no meu servidor de e-mail. Está usando o postfix / dovecot. Os logs não mostram nada e eu estou completamente sem opções. Estou usando o Ubuntu LTS 14.04 rodando em um VPS.

root@server:~# postconf -n
alias_maps = $alias_database
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd 
$daemon_directory/$process_name $process_id & sleep 5
default_destination_concurrency_limit = 20
dovecot_destination_recipient_limit = 1
inet_interfaces = all
inet_protocols = ipv4, ipv6
local_destination_concurrency_limit = 2
local_transport = local
mailbox_size_limit = 0
message_size_limit = 52428800
mydestination = $myhostname, $mydomain, localhost.$myhostname, 
localhost.$mydomain, localhost
mydomain = mail.trafficinfinity.net
myhostname = $mydomain
mynetworks = 127.0.0.0/8 77.98.163.28
queue_directory = /var/spool/postfix
smtp_tls_note_starttls_offer = yes
smtp_tls_security_level = may
smtp_use_tls = yes
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_client_restrictions = permit_mynetworks, permit_sasl_authenticated, 
reject_unknown_client_hostname
smtpd_helo_required = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, reject_unauth_pipelining, reject_non_fqdn_recipient
smtpd_relay_restrictions =
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_path = private/auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_sender_login_maps = mysql:/etc/postfix/mysql-
virtual_sender_permissions.cf
smtpd_sender_restrictions = permit_mynetworks, reject_sender_login_mismatch, permit_sasl_authenticated, reject_unknown_helo_hostname,  reject_unknown_recipient_domain, reject_unknown_sender_domain
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /etc/ssl/private/mailserver.pem
smtpd_tls_key_file = $smtpd_tls_cert_file
smtpd_tls_loglevel = 1
smtpd_tls_mandatory_ciphers = medium
smtpd_tls_mandatory_protocols = SSLv3, TLSv1
smtpd_tls_received_header = yes
smtpd_tls_security_level = may
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual_alias_maps.cf
virtual_gid_maps = static:2000
virtual_mailbox_base = /
virtual_mailbox_domains = mysql:/etc/postfix/mysql-
virtual_mailbox_domains.cf
virtual_mailbox_limit = 0
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual_mailbox_maps.cf
virtual_transport = dovecot
virtual_uid_maps = static:2000

root@server:~# doveconf -n
# 2.2.9: /etc/dovecot/dovecot.conf
# OS: Linux 3.13.0-45-generic x86_64 Ubuntu 14.04.1 LTS ext3
auth_debug = yes
auth_debug_passwords = yes
auth_mechanisms = plain login
auth_socket_path = /var/run/dovecot/auth-userdb
auth_verbose = yes
auth_verbose_passwords = plain
mail_access_groups = vmail
mail_debug = yes
mail_location = maildir:/var/customers/mail/%d/%n/Maildir
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character 
vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date ihave
passdb {
  args = /etc/dovecot/dovecot-sql.conf.ext
  driver = sql
}
plugin {
  sieve = ~/.dovecot.sieve
  sieve_dir = ~/sieve
}
postmaster_address = info@*****.com
protocols = imap pop3 sieve imap pop3
service auth-worker {
  user = vmail
}
service auth {
  unix_listener /var/spool/postfix/private/auth {
    group = postfix
    mode = 0660
    user = postfix
  }
  unix_listener auth-userdb {
    group = vmail
    mode = 0644
    user = vmail
  }
  user = dovecot
}
service managesieve-login {
  inet_listener sieve {
    port = 4190
  }
}
ssl_cert = </etc/ssl/certs/dovecot.pem
ssl_key = </etc/ssl/private/dovecot.pem
userdb {
  args = uid=2000 gid=2000 home=/var/customers/mail/%d/%n 
allow_all_users=yes
  driver = static
}
userdb {
  driver = passwd
}
verbose_ssl = yes
protocol lda {
  info_log_path = /var/log/dovecot-lda.log
  log_path = /var/log/dovecot-lda-errors.log
  mail_plugins = sieve
}
protocol imap {
  mail_max_userip_connections = 20
}

Se você precisar de mais detalhes, avise-nos.

EDIT: mais informações:

root@server:~# service dovecot status
dovecot start/running, process 3804

root@server:~# service postfix status
 * postfix is running

root@server:~# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 mail.trafficinfinity.net ESMTP Postfix (Debian/GNU)
EHLO localhost
250-mail.trafficinfinity.net
250-PIPELINING
250-SIZE 52428800
250-VRFY
250-ETRN
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN

root@server:~# telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS AUTH=PLAIN AUTH=LOGIN] Dovecot (Ubuntu) ready.

TELNET do lado de fora:

TELNET 143:

* OK Waiting for authentication process to respond..
* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS LOGINDISABLED] Dovecot (Ubuntu) ready.

TELNET 25:

DÁ TELA EM BRANCO (SEM TEXTO)

Erro de rede: a conexão expirou

NetStat:

root@server:~# netstat -antup|grep 25
tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN      3786/master
tcp        0      0 159.253.7.53:53         0.0.0.0:*               LISTEN      994/named
tcp        0     64 159.253.7.53:22         83.81.148.213:14111     ESTABLISHED 22785/0
tcp        0      0 159.253.7.53:22         58.218.198.144:34431    ESTABLISHED 22962/sshd: root [p
tcp6       0      0 :::25                   :::*                    LISTEN      3786/master
udp        0      0 159.253.7.53:123        0.0.0.0:*                           1544/ntpd
udp        0      0 159.253.7.53:53         0.0.0.0:*                           994/named

Eu fiz mais alguns testes no link e

Ambos me dizem que as portas 25 e 143 estão abertas e o endereço do servidor de e-mail é resolvível. O único erro que deu foi para o DNS reverso.

LSOF me deu:

root@server:~# lsof -nP -i :143 -i :993
COMMAND   PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
dovecot 23538 root   36u  IPv4 729647      0t0  TCP *:143 (LISTEN)
dovecot 23538 root   37u  IPv6 729648      0t0  TCP *:143 (LISTEN)
dovecot 23538 root   38u  IPv4 729649      0t0  TCP *:993 (LISTEN)
dovecot 23538 root   39u  IPv6 729650      0t0  TCP *:993 (LISTEN)
    
por Tom 15.07.2017 / 14:36

0 respostas