[IMAP] Nothing in INBOX

Philon bytesplit at gmail.com
Wed Sep 30 17:55:31 UTC 2015


Hi Yvon,

perhaps you can take a look into your logs at /var/log/mail.log (and dovecot.log as you configured). There Postfix should pickup the incoming email and deliver it to Dovecot. From this communication the problem should be pretty obvious.


Philon

> Am 30.09.2015 um 15:14 schrieb Yvon Thoraval <yvon.thoraval at gmail.com>:
> 
> Hey all,
> 
> I've just installed Postfix + Dovecot on Xubunto 14.04 LTS.
> Following this page :
> Setup a mail server with Postfix and Dovecot on Ubuntu / Debian
> <http://www.binarytides.com/install-postfix-dovecot-debian/>
> 
> although I'm able to send emails to GMail and other kind of domain, nothing
> appears on Thunderbird INBOX, nor using openssl :
> 
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> $ openssl s_client -connect imap.<DOMAIN>.<TLD>:993
> CONNECTED(00000003)
> 
> <snip />
> 
>    Start Time: 1443543797
>    Timeout   : 300 (sec)
>    Verify return code: 18 (self signed certificate)
> ---
> * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE
> AUTH=PLAIN AUTH=LOGIN] Dovecot (Ubuntu) ready.
> A1 LOGIN <USER>@<DOMAIN>.<TLD> <PASSWORD 4 USER>
> A1 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE
> SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT
> MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS
> LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN
> CONTEXT=SEARCH LIST-STATUS SPECIAL-USE BINARY MOVE] Logged in
> A2 LIST "" "*"
> * LIST (\HasNoChildren) "." GMail
> * LIST (\HasNoChildren \Drafts) "." Drafts
> * LIST (\HasNoChildren) "." j-kiosk
> * LIST (\HasNoChildren \Trash) "." Trash
> * LIST (\HasNoChildren) "." Pourriel
> * LIST (\HasNoChildren) "." "Linux Mint"
> * LIST (\HasNoChildren) "." free
> * LIST (\HasNoChildren \Sent) "." Sent
> * LIST (\HasNoChildren) "." INBOX
> A2 OK List completed.
> A3 EXAMINE INBOX
> * FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
> * OK [PERMANENTFLAGS ()] Read-only mailbox.
> * 0 EXISTS
> * 0 RECENT
> * OK [UIDVALIDITY 1443454274] UIDs valid
> * OK [UIDNEXT 1] Predicted next UID
> * OK [NOMODSEQ] No permanent modsequences
> A3 OK [READ-ONLY] Examine completed (0.000 secs).
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> 
> 
> 
> However, using mail, i can read the emails :
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> 
> $ mail
> 
> Heirloom mailx version 12.5 6/20/10.  Type ? for help.
> 
> "/var/mail/desktop": 20 messages 9 new 18 unread
> 
> U  1 Desktop User       Sun Sep 27 13:01   19/621   ceci est le sujet
> 
> <snip />
> 
>  N 20 Yvon Thoraval      Tue Sep 29 18:02   25/1042  another mail with
> Maildir...
> 
> ?
> 
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> 
> 
> my dovecot setup uses vhosts :
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> 
> $ ls -al /var/mail/vhosts/<DOMAIN>/<USER>/
> 
> total 76K
> 
> drwxr-sr-x 14 vmail vmail 4,0K sept. 29 18:01 ./
> 
> drwxr-sr-x  4 vmail vmail 4,0K sept. 27 10:31 ../
> 
> drwxr-sr-x  2 vmail vmail 4,0K sept. 28 17:31 cur/
> 
> -rw-r--r--  1 vmail vmail  272 sept. 28 17:31 dovecot.index.log
> 
> -rw-r--r--  1 vmail vmail  168 sept. 29 16:16 dovecot.mailbox.log
> 
> -rw-r--r--  1 vmail vmail   51 sept. 28 17:31 dovecot-uidlist
> 
> -rw-r--r--  1 vmail vmail    8 sept. 29 16:17 dovecot-uidvalidity
> 
> -r--r--r--  1 vmail vmail    0 sept. 28 17:31 dovecot-uidvalidity.56095d49
> 
> drwxr-sr-x  5 vmail vmail 4,0K sept. 29 15:09 .Drafts/
> 
> drwxr-sr-x  5 vmail vmail 4,0K sept. 28 18:40 .free/
> 
> drwxr-sr-x  5 vmail vmail 4,0K sept. 28 18:41 .GMail/
> 
> drwxr-sr-x  5 vmail vmail 4,0K sept. 29 16:17 .j-kiosk/
> 
> drwxr-sr-x  5 vmail vmail 4,0K sept. 29 16:17 .Linux Mint/
> 
> drwxr-sr-x  2 vmail vmail 4,0K sept. 29 18:01 Maildir/
> 
> -rw-r--r--  1 vmail vmail    0 sept. 28 17:31 maildirfolder
> 
> drwxr-sr-x  2 vmail vmail 4,0K sept. 28 17:31 new/
> 
> drwxr-sr-x  5 vmail vmail 4,0K sept. 29 15:08 .Pourriel/
> 
> drwxr-sr-x  5 vmail vmail 4,0K sept. 29 16:17 .Sent/
> 
> -rw-r--r--  1 vmail vmail   48 sept. 29 16:16 subscriptions
> 
> drwxr-sr-x  2 vmail vmail 4,0K sept. 28 17:31 tmp/
> 
> drwxr-sr-x  5 vmail vmail 4,0K sept. 29 15:06 .Trash/
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> 
> 
> with nothing in new subfolder:
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> 
> $ ls -al /var/mail/vhosts/<DOMAIN>/<USER>/new
> 
> total 8,0K
> 
> drwxr-sr-x  2 vmail vmail 4,0K sept. 28 17:31 ./
> 
> drwxr-sr-x 14 vmail vmail 4,0K sept. 29 18:01 ../
> 
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> 
> 
> my Postfix version :
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> 
> $ postconf -d | grep mail_version
> 
> mail_version = 2.11.0
> 
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> 
> 
> my Dovecot version :
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> 
> $ dovecot --version
> 
> 2.2.9
> 
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> 
> 
> my Dovecot conf :
> 
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> 
> $ sudo dovecot -n
> 
> # 2.2.9: /etc/dovecot/dovecot.conf
> 
> # OS: Linux 3.14.32-xxxx-std-ipv6-64 x86_64 Ubuntu 14.04.3 LTS ext4
> 
> auth_mechanisms = plain login
> 
> listen = *
> 
> log_path = /var/log/dovecot.log
> 
> mail_location = maildir:/var/mail/vhosts/%d/%n
> 
> 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 {
> 
>  driver = pam
> 
> }
> 
> passdb {
> 
>  args = scheme=PLAIN username_format=%u /etc/dovecot/dovecot-users
> 
>  driver = passwd-file
> 
> }
> 
> postmaster_address = desktop at j-kiosk.com
> 
> protocols = " imap lmtp pop3"
> 
> service auth {
> 
>  unix_listener /var/spool/postfix/private/auth {
> 
>    group = postfix
> 
>    mode = 0666
> 
>    user = postfix
> 
>  }
> 
> }
> 
> service imap-login {
> 
>  inet_listener imaps {
> 
>    port = 993
> 
>    ssl = yes
> 
>  }
> 
> }
> 
> service lmtp {
> 
>  unix_listener /var/spool/postfix/private/dovecot-lmtp {
> 
>    group = postfix
> 
>    mode = 0600
> 
>    user = postfix
> 
>  }
> 
> }
> 
> service pop3-login {
> 
>  inet_listener pop3s {
> 
>    port = 995
> 
>    ssl = yes
> 
>  }
> 
> }
> 
> ssl = required
> 
> ssl_cert = </etc/dovecot/dovecot.pem
> 
> ssl_key = </etc/dovecot/private/dovecot.pem
> 
> userdb {
> 
>  driver = passwd
> 
> }
> 
> userdb {
> 
>  args = uid=vmail gid=vmail home=/var/mail/vhosts/%d/%n
> 
>  driver = static
> 
> }
> 
> protocol imap {
> 
>  imap_client_workarounds = tb-extra-mailbox-sep
> 
> }
> 
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> 
> 
> my Postfix conf:
> 
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> 
> $ postconf -n
> 
> alias_database = hash:/etc/aliases
> 
> alias_maps = hash:/etc/aliases
> 
> append_dot_mydomain = no
> 
> biff = no
> 
> config_directory = /etc/postfix
> 
> inet_interfaces = all
> 
> inet_protocols = all
> 
> mailbox_size_limit = 51200000
> 
> mydestination = $myhostname, $mydomain, localhost.$mydomain, localhost
> 
> mydomain = <DOMAIN>.<TLD>
> 
> myhostname = smtp.<DOMAIN>.<TLD>
> 
> mynetworks = <DOMAIN IP>.0/24, 127.0.0.0/8
> 
> myorigin =<DOMAIN>.<TLD>
> 
> readme_directory = no
> 
> recipient_delimiter =
> 
> relayhost =
> 
> smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
> 
> smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
> 
> smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated
> defer_unauth_destination
> 
> smtpd_sasl_auth_enable = yes
> 
> smtpd_sasl_path = private/auth
> 
> smtpd_sasl_type = dovecot
> 
> smtpd_tls_auth_only = yes
> 
> smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
> 
> smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
> 
> smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
> 
> smtpd_use_tls = yes
> 
> virtual_mailbox_domains = /etc/postfix/virtual_mailbox_domains
> 
> virtual_transport = lmtp:unix:private/dovecot-lmtp
> 
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------



More information about the dovecot mailing list