Eu segui este guia no linode para configurar o servidor de e-mail dovecot e postfix no meu Ubuntu 12.04.2 LTS. A configuração requer o soquete /var/spool/postfix/private/dovecot-lmtp
para atuar como transporte virtual. No entanto, na minha configuração, esse arquivo de soquete não existe quando o serviço é iniciado. E eu tenho a linha lmtp
em /etc/dovecot/conf.d/10-master.conf
.
Aqui está uma pequena informação sobre o meu servidor.
Linux prosp 3.8.4-linode50 #1 SMP Mon Mar 25 15:50:29 EDT 2013 i686 i686 i386 GNU/Linux
root@prosp:/var/spool/postfix/private# ls
anvil bsmtp dovecot-auth lmtp mailman relay scache tlsmgr verify
auth defer error local proxymap retry scalemail-backend trace virtual
bounce discard ifmail maildrop proxywrite rewrite smtp uucp
root@prosp:/var/spool/postfix/private# aptitude show postfix postfix-mysql dovecot-core dovecot-imapd dovecot-pop3d dovecot-lmtpd dovecot-mysql
Package: postfix
State: installed
Version: 2.9.6-1~12.04.1
Package: postfix-mysql
State: installed
Version: 2.9.6-1~12.04.1
Package: dovecot-core
State: installed
Version: 1:2.0.19-0ubuntu2
Package: dovecot-imapd
State: installed
Version: 1:2.0.19-0ubuntu2
Package: dovecot-pop3d
State: installed
Version: 1:2.0.19-0ubuntu2
Package: dovecot-lmtpd
State: installed
Version: 1:2.0.19-0ubuntu2
Package: dovecot-mysql
State: installed
Version: 1:2.0.19-0ubuntu2
Seção do 10-master.conf
service lmtp {
unix_listener /var/spool/postfix/private/dovecot-lmtp {
mode = 0600
user = postfix
group = postfix
}
# Create inet listener only if you can't use the above UNIX socket
inet_listener lmtp {
# Avoid making LMTP visible for the entire internet
address = 127.0.0.1
port = 2424
}
}
Estou me perguntando por que isso não existe. Eu tentei reinstalar o dovecot-lmtpd sem sucesso. E como o soquete lmtp não existe, meu servidor de e-mail pode enviar e-mails, mas não pode receber. O registro de e-mail tem essa linha quando um e-mail recebido é recebido:
May 31 09:05:24 postfix/lmtp[3664]: 2FD80321F4: to=<[email protected]>, relay=none, delay=0.41, delays=0.41/0/0/0, dsn=4.4.1, status=deferred (connect to me.com[private/dovecot-lmtp]: No such file or directory)
Registra depois que o dovecot é reiniciado:
May 31 11:38:10 host dovecot: log: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)
May 31 11:38:10 host dovecot: master: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)
May 31 11:38:10 host dovecot: master: Dovecot v2.0.19 starting up (core dumps disabled)
May 31 11:38:11 host postfix/smtpd[5741]: connect from localhost.localdomain[127.0.0.1]
May 31 11:38:11 host dovecot: auth-worker: mysql(127.0.0.1): Connected to database mailserver
May 31 11:38:11 host postfix/smtpd[5741]: 3F8A24DE2A3: client=localhost.localdomain[127.0.0.1], sasl_method=PLAIN, [email protected]
May 31 11:38:11 host postfix/cleanup[5751]: 3F8A24DE2A3: message-id=<[email protected]>
May 31 11:38:11 host postfix/qmgr[5683]: 3F8A24DE2A3: from=<[email protected]>, size=938, nrcpt=1 (queue active)
May 31 11:38:11 host postfix/smtpd[5741]: disconnect from localhost.localdomain[127.0.0.1]
May 31 11:38:11 host postfix/error[5753]: 3F8A24DE2A3: to=<[email protected]>, relay=none, delay=0.05, delays=0.04/0/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to otherdomain.com[private/dovecot-lmtp]: No such file or directory)
Alguma idéia de por que isso aconteceu?
Parece que não consigo usar o lmtp como um ouvinte inet:
May 31 12:22:48 host postfix/lmtp[6798]: connect to localhost[127.0.0.1]:2424: Connection refused
May 31 12:22:48 host postfix/lmtp[6798]: connect to localhost[::1]:2424: Connection refused
May 31 12:22:48 host postfix/lmtp[6799]: connect to localhost[127.0.0.1]:2424: Connection refused
May 31 12:22:48 host postfix/lmtp[6799]: connect to localhost[::1]:2424: Connection refused