AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • Início
  • system&network
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • Início
  • system&network
    • Recentes
    • Highest score
    • tags
  • Ubuntu
    • Recentes
    • Highest score
    • tags
  • Unix
    • Recentes
    • tags
  • DBA
    • Recentes
    • tags
  • Computer
    • Recentes
    • tags
  • Coding
    • Recentes
    • tags
Início / server / Perguntas / 663424
Accepted
DiogoSaraiva
DiogoSaraiva
Asked: 2015-01-30 07:18:54 +0800 CST2015-01-30 07:18:54 +0800 CST 2015-01-30 07:18:54 +0800 CST

Não consigo receber e-mails no meu servidor de e-mail

  • 772

Criei um servidor de correio, seguindo este tutorial:
https://www.linode.com/docs/email/postfix/email-with-postfix-dovecot-and-mysql ,

Configurei o e-mail no meu cliente de e-mail, SMTP e IMAP e ambas as conexões estão funcionando, posso enviar e-mail do meu endereço de e-mail ([email protected]) para outro ([email protected]) e posso lê-lo também, mas quando envio para o endereço de e-mail do meu servidor de e-mail ([email protected]), ele envia, mas não vejo na caixa de entrada do [email protected]...

Criou um registro mx: example.com mx 10 example.com
e também criou um registro spf:v=spf1 a mx ~all

O servidor de correio está no Ubuntu 14.04.1 Desktop.

Os resultados dedovecot -n

# 2.2.9: /etc/dovecot/dovecot.conf
# OS: Linux 3.13.0-44-generic x86_64 Ubuntu 14.04.1 LTS ext4
auth_mechanisms = plain login
mail_location = maildir:/var/mail/vhosts/%d/%n
mail_privileged_group = mail
namespace inbox {
  inbox = yes
  location = 
  mailbox Drafts {
    special_use = \Drafts
  }
  mailbox Junk {
    special_use = \Junk
  }
  mailbox Sent {
    special_use = \Sent
  }
  mailbox "Sent Messages" {
    special_use = \Sent
  }
  mailbox Trash {
    special_use = \Trash
  }
  prefix = 
}
passdb {
  args = /etc/dovecot/dovecot-sql.conf.ext
  driver = sql
}
protocols = imap pop3 lmtp
service auth-worker {
  user = vmail
}
service auth {
  unix_listener /var/spool/postfix/private/auth {
    group = postfix
    mode = 0666
    user = postfix
  }
  unix_listener auth-userdb {
    mode = 0600
    user = vmail
  }
  user = dovecot
}
service imap-login {
  inet_listener imap {
    port = 0
  }
}
service lmtp {
  unix_listener /var/spool/postfix/private/dovecot-lmtp {
    group = postfix
    mode = 0600
    user = postfix
  }
}
service pop3-login {
  inet_listener pop3 {
    port = 0
  }
}
ssl = required
ssl_cert = </etc/dovecot/dovecot.pem
ssl_key = </etc/dovecot/private/dovecot.pem
userdb {
  args = uid=vmail gid=vmail home=/var/mail/vhosts/%d/%n
  driver = static
}

Resultados de netstat -panet:

tcp        0      0 0.0.0.0:995             0.0.0.0:*               ESCUTA      0          11309       986/dovecot     
tcp        0      0 0.0.0.0:7300            0.0.0.0:*               ESCUTA      1001       13485       1371/perl       
tcp        0      0 192.168.1.104:27754     0.0.0.0:*               ESCUTA      1001       13484       1371/perl       
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               ESCUTA      117        11024       1134/mysqld     
tcp        0      0 0.0.0.0:587             0.0.0.0:*               ESCUTA      0          11611       1232/master     
tcp        0      0 0.0.0.0:465             0.0.0.0:*               ESCUTA      0          11617       1232/master     
tcp        0      0 127.0.1.1:53            0.0.0.0:*               ESCUTA      0          12148       1486/dnsmasq    
tcp        0      0 0.0.0.0:21              0.0.0.0:*               ESCUTA      0          9546        993/vsftpd      
tcp        0      0 0.0.0.0:22              0.0.0.0:*               ESCUTA      0          9555        980/sshd        
tcp        0      0 127.0.0.1:631           0.0.0.0:*               ESCUTA      0          8840        510/cupsd       
tcp        0      0 0.0.0.0:25              0.0.0.0:*               ESCUTA      0          11602       1232/master     
tcp        0      0 127.0.0.1:6010          0.0.0.0:*               ESCUTA      1000       21171       3082/1          
tcp        0      0 0.0.0.0:993             0.0.0.0:*               ESCUTA      0          10582       986/dovecot     
tcp        0      0 192.168.1.104:993       85.242.102.178:50794    ESTABELECIDO 119        24686       3168/imap-login 
tcp        0      0 192.168.1.104:7300      78.111.205.56:45853     ESTABELECIDO 1001       21084       1371/perl       
tcp        0      0 192.168.1.104:993       85.242.102.178:55965    ESTABELECIDO 119        21384       3176/imap-login 
tcp        0    264 192.168.1.104:22        192.168.1.90:57457      ESTABELECIDO 0          21118       3046/sshd: diogosar
tcp        0      0 192.168.1.104:993       85.242.102.178:57359    ESTABELECIDO 119        21396       3178/imap-login 
tcp6       0      0 :::995                  :::*                    ESCUTA      0          11310       986/dovecot     
tcp6       0      0 :::587                  :::*                    ESCUTA      0          11612       1232/master     
tcp6       0      0 :::80                   :::*                    ESCUTA      0          10956       1340/apache2    
tcp6       0      0 :::465                  :::*                    ESCUTA      0          11618       1232/master     
tcp6       0      0 :::22                   :::*                    ESCUTA      0          9557        980/sshd        
tcp6       0      0 :::25                   :::*                    ESCUTA      0          11603       1232/master     
tcp6       0      0 ::1:6010                :::*                    ESCUTA      1000       21170       3082/1          
tcp6       0      0 :::993                  :::*                    ESCUTA      0          10583       986/dovecot   

Minha pergunta é: por que não vejo caixa de entrada no e-mail, se envio e-mails para ela? Eu tentei com POP3 também...

Atualizar:

Trecho do arquivo: /var/log/mail.log:

Jan 29 15:07:43 Ubuntu postfix/error[3196]: AA1E22C3528: to=<[email protected]>, relay=none, delay=59795, delays=59795/0.06/0/0, dsn=4.4.2, status=deferred (delivery temporarily suspended: lost connection with Ubuntu[private/dovecot-lmtp] while receiving the initial server greeting)
    Jan 29 15:11:03 Ubuntu postfix/scache[3193]: statistics: start interval Jan 29 15:07:43
    Jan 29 15:11:03 Ubuntu postfix/scache[3193]: statistics: domain lookup hits=0 miss=2 success=0%
    Jan 29 15:12:43 Ubuntu postfix/qmgr[3157]: 225BE2C3568: from=<[email protected]>, size=519, nrcpt=1 (queue active)
    Jan 29 15:12:43 Ubuntu dovecot: lmtp(3217): Fatal: Error reading configuration: Invalid settings: postmaster_address setting not given
    Jan 29 15:12:43 Ubuntu postfix/lmtp[3216]: 225BE2C3568: to=<[email protected]>, relay=Ubuntu[private/dovecot-lmtp], delay=58634, delays=58634/0.03/0.01/0, dsn=4.4.2, status=deferred (lost connection with Ubuntu[private/dovecot-lmtp] while receiving the initial server greeting)
    Jan 29 15:17:43 Ubuntu postfix/qmgr[3157]: 083672C3576: from=<[email protected]>, size=697, nrcpt=1 (queue active)
    Jan 29 15:17:43 Ubuntu dovecot: lmtp(3225): Fatal: Error reading configuration: Invalid settings: postmaster_address setting not given
    Jan 29 15:17:43 Ubuntu postfix/lmtp[3224]: 083672C3576: to=<[email protected]>, relay=Ubuntu[private/dovecot-lmtp], delay=57731, delays=57731/0.03/0.01/0, dsn=4.4.2, status=deferred (lost connection with Ubuntu[private/dovecot-lmtp] while receiving the initial server greeting)
    Jan 29 15:20:52 Ubuntu dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=85.242.102.178, lip=192.168.1.104, mpid=3232, TLS, session=<wzqYCMwNSQBV8may>
    Jan 29 15:22:43 Ubuntu postfix/qmgr[3157]: 369702C3665: from=<>, size=2930, nrcpt=1 (queue active)
    Jan 29 15:22:43 Ubuntu postfix/qmgr[3157]: F0A022C3538: from=<[email protected]>, size=1260, nrcpt=1 (queue active)
    Jan 29 15:22:43 Ubuntu postfix/qmgr[3157]: 0A11C2C3581: from=<[email protected]>, size=525, nrcpt=3 (queue active)
    Jan 29 15:22:43 Ubuntu dovecot: lmtp(3654): Fatal: Error reading configuration: Invalid settings: postmaster_address setting not given
    Jan 29 15:22:43 Ubuntu dovecot: lmtp(3657): Fatal: Error reading configuration: Invalid settings: postmaster_address setting not given
    Jan 29 15:22:43 Ubuntu postfix/lmtp[3652]: 369702C3665: to=<[email protected]>, relay=Ubuntu[private/dovecot-lmtp], delay=30046, delays=30046/0.03/0.01/0, dsn=4.4.2, status=deferred (lost connection with Ubuntu[private/dovecot-lmtp] while receiving the initial server greeting)
    Jan 29 15:22:43 Ubuntu postfix/lmtp[3653]: F0A022C3538: to=<[email protected]>, relay=Ubuntu[private/dovecot-lmtp], delay=21441, delays=21441/0.02/0.01/0, dsn=4.4.2, status=deferred (lost connection with Ubuntu[private/dovecot-lmtp] while receiving the initial server greeting)
    Jan 29 15:22:43 Ubuntu dovecot: lmtp(3660): Fatal: Error reading configuration: Invalid settings: postmaster_address setting not given
    Jan 29 15:22:43 Ubuntu postfix/lmtp[3652]: 0A11C2C3581: to=<[email protected]>, relay=Ubuntu[private/dovecot-lmtp], delay=30047, delays=30047/0.03/0.02/0, dsn=4.4.2, status=deferred (lost connection with Ubuntu[private/dovecot-lmtp] while receiving the initial server greeting)
    Jan 29 15:26:03 Ubuntu postfix/scache[3659]: statistics: start interval Jan 29 15:22:43
    Jan 29 15:26:03 Ubuntu postfix/scache[3659]: statistics: domain lookup hits=0 miss=1 success=0%
    Jan 29 15:29:44 Ubuntu postfix/smtpd[3765]: connect from nk11p03mm-asmtp001.mac.com[17.158.232.236]
    Jan 29 15:29:45 Ubuntu postfix/smtpd[3765]: BE8582C34DE: client=nk11p03mm-asmtp001.mac.com[17.158.232.236]
    Jan 29 15:29:45 Ubuntu postfix/cleanup[3776]: BE8582C34DE: message-id=<[email protected]>
    Jan 29 15:29:45 Ubuntu postfix/qmgr[3157]: BE8582C34DE: from=<[email protected]>, size=1267, nrcpt=1 (queue active)
    Jan 29 15:29:45 Ubuntu dovecot: lmtp(3780): Fatal: Error reading configuration: Invalid settings: postmaster_address setting not given
    Jan 29 15:29:45 Ubuntu postfix/lmtp[3779]: BE8582C34DE: to=<[email protected]>, relay=Ubuntu[private/dovecot-lmtp], delay=0.23, delays=0.21/0.01/0.01/0, dsn=4.4.2, status=deferred (lost connection with Ubuntu[private/dovecot-lmtp] while receiving the initial server greeting)
    Jan 29 15:29:46 Ubuntu postfix/smtpd[3765]: disconnect from nk11p03mm-asmtp001.mac.com[17.158.232.236]

Resultados de :telnet cr7akg.com smtp

Trying 85.242.102.178...
Connected to cr7akg.com.
Escape character is '^]'.
220 Ubuntu ESMTP Postfix (Ubuntu)

Resultados de :telnet 192.168.1.104 smtp

Trying 192.168.1.104...
Connected to ubuntu.lan.
Escape character is '^]'.
220 Ubuntu ESMTP Postfix (Ubuntu)
postfix
  • 2 2 respostas
  • 2291 Views

2 respostas

  • Voted
  1. Best Answer
    DiogoSaraiva
    2015-01-30T09:45:00+08:002015-01-30T09:45:00+08:00

    Encontrou esta solução:

    adicione isto em /etc/dovecot/conf.d/20-lmtp.conf:

    protocol lmtp {
    postmaster_address = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf # required
    mail_plugins = quota
    }
    

    provavelmente foi isso:

    protocol lmtp {
      # Space separated list of plugins to load (default is global mail_plugins).
      #mail_plugins = $mail_plugins
    }
    
    • 2
  2. deweydb
    2021-02-26T08:44:33+08:002021-02-26T08:44:33+08:00

    No meu caso, eu tinha um caminho de log incorreto nas configurações do meu dovecot. Certifique-se de verificar seus logs dovecot para possíveis erros.

    • -1

relate perguntas

Sidebar

Stats

  • Perguntas 205573
  • respostas 270741
  • best respostas 135370
  • utilizador 68524
  • Highest score
  • respostas
  • Marko Smith

    Você pode passar usuário/passar para autenticação básica HTTP em parâmetros de URL?

    • 5 respostas
  • Marko Smith

    Ping uma porta específica

    • 18 respostas
  • Marko Smith

    Verifique se a porta está aberta ou fechada em um servidor Linux?

    • 7 respostas
  • Marko Smith

    Como automatizar o login SSH com senha?

    • 10 respostas
  • Marko Smith

    Como posso dizer ao Git para Windows onde encontrar minha chave RSA privada?

    • 30 respostas
  • Marko Smith

    Qual é o nome de usuário/senha de superusuário padrão para postgres após uma nova instalação?

    • 5 respostas
  • Marko Smith

    Qual porta o SFTP usa?

    • 6 respostas
  • Marko Smith

    Linha de comando para listar usuários em um grupo do Windows Active Directory?

    • 9 respostas
  • Marko Smith

    O que é um arquivo Pem e como ele difere de outros formatos de arquivo de chave gerada pelo OpenSSL?

    • 3 respostas
  • Marko Smith

    Como determinar se uma variável bash está vazia?

    • 15 respostas
  • Martin Hope
    Davie Ping uma porta específica 2009-10-09 01:57:50 +0800 CST
  • Martin Hope
    kernel O scp pode copiar diretórios recursivamente? 2011-04-29 20:24:45 +0800 CST
  • Martin Hope
    Robert ssh retorna "Proprietário incorreto ou permissões em ~/.ssh/config" 2011-03-30 10:15:48 +0800 CST
  • Martin Hope
    Eonil Como automatizar o login SSH com senha? 2011-03-02 03:07:12 +0800 CST
  • Martin Hope
    gunwin Como lidar com um servidor comprometido? 2011-01-03 13:31:27 +0800 CST
  • Martin Hope
    Tom Feiner Como posso classificar a saída du -h por tamanho 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich O que é um arquivo Pem e como ele difere de outros formatos de arquivo de chave gerada pelo OpenSSL? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent Como determinar se uma variável bash está vazia? 2009-05-13 09:54:48 +0800 CST

Hot tag

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • Início
  • Perguntas
    • Recentes
    • Highest score
  • tag
  • help

Footer

AskOverflow.Dev

About Us

  • About Us
  • Contact Us

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve