1

Topic: Can send mail, but not receive it.

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.7
- Linux/BSD distribution name and version: Ubuntu 16.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Aug  1 08:44:15 mail postfix/qmgr[1412]: A048C160703: from=<n******l@gmail.com>, size=3034, nrcpt=1 (queue active)
Aug  1 08:44:15 mail postfix/pipe[1848]: A048C160703: to=<no-reply@mydomain.nl>, relay=dovecot, delay=2489, delays=2489/0.22/0/0.12, dsn=4.3.0, status=deferred (temporary failure)
Aug  1 08:48:13 mail postfix/postscreen[2079]: CONNECT from [209.85.218.41]:34431 to [185.87.186.238]:25
Aug  1 08:48:19 mail postfix/postscreen[2079]: PASS NEW [209.85.218.41]:34431
Aug  1 08:48:19 mail postfix/smtpd[2082]: connect from mail-oi0-f41.google.com[209.85.218.41]
Aug  1 08:48:20 mail postfix/smtpd[2082]: Anonymous TLS connection established from mail-oi0-f41.google.com[209.85.218.41]: TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)
Aug  1 08:48:21 mail postfix/smtpd[2082]: CF750160623: client=mail-oi0-f41.google.com[209.85.218.41]
Aug  1 08:48:22 mail postfix/cleanup[2096]: CF750160623: message-id=<CAP8MXB=27b1cJf_mjH4HxixoLN_uevymOCSNByqUgV6LnWyAhw@mail.gmail.com>
Aug  1 08:48:22 mail postfix/qmgr[1412]: CF750160623: from=<n******l@gmail.com>, size=2455, nrcpt=1 (queue active)
Aug  1 08:48:22 mail postfix/smtpd[2082]: disconnect from mail-oi0-f41.google.com[209.85.218.41] ehlo=2 starttls=1 mail=1 rcpt=1 data=1 quit=1 commands=7
Aug  1 08:48:27 mail postfix/10025/smtpd[2105]: connect from localhost[127.0.0.1]
Aug  1 08:48:27 mail postfix/10025/smtpd[2105]: 891BD160776: client=localhost[127.0.0.1]
Aug  1 08:48:27 mail postfix/cleanup[2096]: 891BD160776: message-id=<CAP8MXB=27b1cJf_mjH4HxixoLN_uevymOCSNByqUgV6LnWyAhw@mail.gmail.com>
Aug  1 08:48:27 mail postfix/10025/smtpd[2105]: disconnect from localhost[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
Aug  1 08:48:27 mail postfix/qmgr[1412]: 891BD160776: from=<n******l@gmail.com>, size=3023, nrcpt=1 (queue active)
Aug  1 08:48:27 mail postfix/pipe[2106]: 891BD160776: to=<no-reply@mydomain.nl>, relay=dovecot, delay=0.21, delays=0.05/0.04/0/0.12, dsn=4.3.0, status=deferred (temporary failure)
Aug  1 08:48:27 mail amavis[1485]: (01485-01) Passed CLEAN {RelayedInbound}, [209.85.218.41]:34431 [209.85.218.41] <n******l@gmail.com> -> <no-reply@mydomain.nl>, Queue-ID: CF750160623, Message-ID: <CAP8MXB=27b1cJf_mjH4HxixoLN_uevymOCSNByqUgV6LnWyAhw@mail.gmail.com>, mail_id: I_DitI3AHI0b, Hits: 0.381, size: 2455, queued_as: 891BD160776, dkim_sd=20161025:gmail.com, 5347 ms, Tests: [DKIM_SIGNED=0.1,DKIM_VALID=-0.1,DKIM_VALID_AU=-0.1,FREEMAIL_FROM=0.001,HTML_MESSAGE=0.001,RCVD_IN_DNSWL_NONE=-0.0001,RCVD_IN_MSPIKE_H3=-0.01,RCVD_IN_MSPIKE_WL=-0.01,RCVD_IN_SORBS_SPAM=0.5,SPF_PASS=-0.001]
Aug  1 08:48:27 mail postfix/amavis/smtp[2101]: CF750160623: to=<no-reply@mydomain.nl>, relay=127.0.0.1[127.0.0.1]:10024, delay=7.1, delays=1.4/0.05/0.81/4.9, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 891BD160776)
Aug  1 08:48:27 mail postfix/qmgr[1412]: CF750160623: removed

I just don't understand why it wont receive mails, im pretty new to this and have seen many posts on the internet already, but none could really help me fix the issue.

It is a clean install on a droplet. Followed this tutorial: https://www.linuxbabe.com/mail-server/u … stallation

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Can send mail, but not receive it.

SurudoiRyu wrote:

Aug  1 08:48:27 mail postfix/pipe[2106]: 891BD160776: to=<no-reply@mydomain.nl>, relay=dovecot, delay=0.21, delays=0.05/0.04/0/0.12, dsn=4.3.0, status=deferred (temporary failure)

Something wrong with Dovecot. Please check logs under /var/log/dovecot/ to get related error message.

3

Re: Can send mail, but not receive it.

log of /var/log/dovecot/dovecot.log

Aug  3 08:14:27 mail dovecot: lda(postmaster@mysite.nl): Debug: Loading modules from directory: /usr/lib/dovecot/modules
Aug  3 08:14:27 mail dovecot: lda(postmaster@mysite.nl): Debug: Module loaded: /usr/lib/dovecot/modules/lib01_acl_plugin.so
Aug  3 08:14:27 mail dovecot: lda(postmaster@mysite.nl): Debug: Module loaded: /usr/lib/dovecot/modules/lib10_quota_plugin.so
Aug  3 08:14:27 mail dovecot: lda(postmaster@mysite.nl): Debug: Module loaded: /usr/lib/dovecot/modules/lib15_notify_plugin.so
Aug  3 08:14:27 mail dovecot: lda(postmaster@mysite.nl): Debug: Module loaded: /usr/lib/dovecot/modules/lib20_mail_log_plugin.so
Aug  3 08:14:27 mail dovecot: lda(postmaster@mysite.nl): Debug: Module loaded: /usr/lib/dovecot/modules/lib20_mailbox_alias_plugin.so
Aug  3 08:14:27 mail dovecot: lda(postmaster@mysite.nl): Debug: Module loaded: /usr/lib/dovecot/modules/lib90_sieve_plugin.so
Aug  3 08:14:27 mail dovecot: lda: Fatal: Internal error occurred. Refer to server log for more information.

Also checked the lda log and it returned me somewhat more:

Aug  3 07:59:27 mail dovecot: lda(postmaster@mysite.nl): Error: userdb lookup: connect(/var/run/dovecot/auth-userdb) failed: Permission denied (euid=2000(vmail) egid=2000(vmail) UNIX perms appear ok (ACL/MAC wrong?), dir owned by 0:0 mode=0755)
Aug  3 08:04:28 mail dovecot: lda(no-reply@mysite.nl): Error: userdb lookup: connect(/var/run/dovecot/auth-userdb) failed: Permission denied (euid=2000(vmail) egid=2000(vmail) UNIX perms appear ok (ACL/MAC wrong?), dir owned by 0:0 mode=0755)
Aug  3 08:09:27 mail dovecot: lda(no-reply@mysite.nl): Error: userdb lookup: connect(/var/run/dovecot/auth-userdb) failed: Permission denied (euid=2000(vmail) egid=2000(vmail) UNIX perms appear ok (ACL/MAC wrong?), dir owned by 0:0 mode=0755)
Aug  3 08:09:27 mail dovecot: lda(no-reply@mysite.nl): Error: userdb lookup: connect(/var/run/dovecot/auth-userdb) failed: Permission denied (euid=2000(vmail) egid=2000(vmail) UNIX perms appear ok (ACL/MAC wrong?), dir owned by 0:0 mode=0755)
Aug  3 08:14:27 mail dovecot: lda(postmaster@mysite.nl): Error: userdb lookup: connect(/var/run/dovecot/auth-userdb) failed: Permission denied (euid=2000(vmail) egid=2000(vmail) UNIX perms appear ok (ACL/MAC wrong?), dir owned by 0:0 mode=0755)

So i checked its owner:

srw-rw----  1 vmail   vmail       0 Aug  1 08:46 auth-userdb=

And the ID of vmail:

uid=2000(vmail) gid=2000(vmail) groups=2000(vmail)

And it seems right... ? or am i missing something ?

With kind regards

4

Re: Can send mail, but not receive it.

What's the permission of directory '/var/run/dovecot'?

5 (edited by SurudoiRyu 2017-08-09 20:20:19)

Re: Can send mail, but not receive it.

ZhangHuangbin wrote:

What's the permission of directory '/var/run/dovecot'?

Directory

drwxr-xr-x  5 root     root      760 Aug  1 08:46 dovecot/

Inside the directory

srw-------  1 root    root        0 Aug  1 08:46 anvil=
srw-------  1 root    root        0 Aug  1 08:46 anvil-auth-penalty=
srw-------  1 dovecot root        0 Aug  1 08:46 auth-client=
srw-------  1 dovecot root        0 Aug  1 08:46 auth-login=
srw-rw-rw-  1 vmail   vmail       0 Aug  1 08:46 auth-master=
-rw-------  1 root    root       32 Aug  1 08:34 auth-token-secret.dat
srw-rw----  1 vmail   vmail       0 Aug  1 08:46 auth-userdb=
srw-------  1 dovecot root        0 Aug  1 08:46 auth-worker=
srw-------  1 root    root        0 Aug  1 08:46 config=
srw-rw----  1 vmail   vmail       0 Aug  1 08:46 dict=
srw-------  1 root    root        0 Aug  1 08:46 dict-async=
srw-------  1 root    root        0 Aug  1 08:46 director-admin=
srw-rw-rw-  1 root    root        0 Aug  1 08:46 dns-client=
srw-------  1 root    root        0 Aug  1 08:46 doveadm-server=
lrwxrwxrwx  1 root    root       25 Aug  1 08:46 dovecot.conf -> /etc/dovecot/dovecot.conf
drwxr-xr-x  2 root    root       40 Aug  1 08:34 empty/
srw-------  1 root    root        0 Aug  1 08:46 imap-hibernate=
srw-------  1 root    root        0 Aug  1 08:46 imap-master=
srw-rw-rw-  1 root    root        0 Aug  1 08:46 imap-urlauth=
srw-------  1 dovecot root        0 Aug  1 08:46 imap-urlauth-worker=
srw-rw-rw-  1 root    root        0 Aug  1 08:46 indexer=
srw-------  1 dovecot root        0 Aug  1 08:46 indexer-worker=
srw-------  1 root    root        0 Aug  1 08:46 ipc=
srw-rw-rw-  1 root    root        0 Aug  1 08:46 lmtp=
srw-------  1 root    root        0 Aug  1 08:46 log-errors=
drwxr-x---  2 root    dovenull  160 Aug  1 08:46 login/
-rw-------  1 root    root        5 Aug  1 08:46 master.pid
srw-rw----  1 vmail   vmail       0 Aug  1 08:46 quota-warning=
srw-------  1 root    root        0 Aug  1 08:46 replication-notify=
prw-------  1 root    root        0 Aug  1 08:46 replication-notify-fifo|
srw-------  1 dovecot root        0 Aug  1 08:46 replicator=
srw-rw-rw-  1 root    root        0 Aug  1 08:46 ssl-params=
srw-------  1 root    root        0 Aug  1 08:46 stats=
prw-------  1 root    root        0 Aug  1 08:46 stats-mail|
prw-------  1 root    root        0 Aug  1 08:46 stats-user|
drwxr-x---  2 root    dovenull   80 Aug  1 08:46 token-login/

6

Re: Can send mail, but not receive it.

*) Why does the files have a '=' in file name? Do you use some 'ls' argument?
*) Do you have SELinux / AppArmor enabled on this server?
*) Here's output on my testing machine:

# ls -l
total 8
srw------- 1 root    root       0 Aug  9 17:59 anvil
srw------- 1 root    root       0 Aug  9 17:59 anvil-auth-penalty
srw------- 1 dovecot root       0 Aug  9 17:59 auth-client
srw------- 1 dovecot root       0 Aug  9 17:59 auth-login
srw-rw-rw- 1 vmail   vmail      0 Aug  9 17:59 auth-master
-rw------- 1 root    root      32 Aug  9 18:18 auth-token-secret.dat
srw-rw---- 1 vmail   vmail      0 Aug  9 17:59 auth-userdb
srw------- 1 dovecot root       0 Aug  9 17:59 auth-worker
srw------- 1 root    root       0 Aug  9 17:59 config
srw-rw---- 1 vmail   vmail      0 Aug  9 17:59 dict
srw------- 1 root    root       0 Aug  9 17:59 dict-async
srw------- 1 root    root       0 Aug  9 17:59 director-admin
srw-rw-rw- 1 root    root       0 Aug  9 17:59 dns-client
srw------- 1 root    root       0 Aug  9 17:59 doveadm-server
lrwxrwxrwx 1 root    root      25 Aug  9 17:59 dovecot.conf -> /etc/dovecot/dovecot.conf
drwxr-xr-x 2 root    root      40 Aug  9 17:59 empty
srw------- 1 root    root       0 Aug  9 17:59 imap-hibernate
srw------- 1 root    root       0 Aug  9 17:59 imap-master
srw-rw-rw- 1 root    root       0 Aug  9 17:59 imap-urlauth
srw------- 1 dovecot root       0 Aug  9 17:59 imap-urlauth-worker
srw-rw-rw- 1 root    root       0 Aug  9 17:59 indexer
srw------- 1 dovecot root       0 Aug  9 17:59 indexer-worker
srw------- 1 root    root       0 Aug  9 17:59 ipc
srw-rw-rw- 1 root    root       0 Aug  9 17:59 lmtp
srw------- 1 root    root       0 Aug  9 17:59 log-errors
drwxr-x--- 2 root    dovenull 160 Aug  9 17:59 login
-rw------- 1 root    root       5 Aug  9 17:59 master.pid
srw-rw---- 1 vmail   vmail      0 Aug  9 17:59 quota-warning
srw------- 1 root    root       0 Aug  9 17:59 replication-notify
prw------- 1 root    root       0 Aug  9 17:59 replication-notify-fifo
srw------- 1 dovecot root       0 Aug  9 17:59 replicator
srw-rw-rw- 1 root    root       0 Aug  9 17:59 ssl-params
srw------- 1 root    root       0 Aug  9 17:59 stats
prw------- 1 root    root       0 Aug  9 17:59 stats-mail
prw------- 1 root    root       0 Aug  9 17:59 stats-user
drwxr-x--- 2 root    dovenull  80 Aug  9 17:59 token-login

7

Re: Can send mail, but not receive it.

ZhangHuangbin wrote:

*) Why does the files have a '=' in file name? Do you use some 'ls' argument?
*) Do you have SELinux / AppArmor enabled on this server?
*) Here's output on my testing machine:

# ls -l
total 8
srw------- 1 root    root       0 Aug  9 17:59 anvil
srw------- 1 root    root       0 Aug  9 17:59 anvil-auth-penalty
srw------- 1 dovecot root       0 Aug  9 17:59 auth-client
srw------- 1 dovecot root       0 Aug  9 17:59 auth-login
srw-rw-rw- 1 vmail   vmail      0 Aug  9 17:59 auth-master
-rw------- 1 root    root      32 Aug  9 18:18 auth-token-secret.dat
srw-rw---- 1 vmail   vmail      0 Aug  9 17:59 auth-userdb
srw------- 1 dovecot root       0 Aug  9 17:59 auth-worker
srw------- 1 root    root       0 Aug  9 17:59 config
srw-rw---- 1 vmail   vmail      0 Aug  9 17:59 dict
srw------- 1 root    root       0 Aug  9 17:59 dict-async
srw------- 1 root    root       0 Aug  9 17:59 director-admin
srw-rw-rw- 1 root    root       0 Aug  9 17:59 dns-client
srw------- 1 root    root       0 Aug  9 17:59 doveadm-server
lrwxrwxrwx 1 root    root      25 Aug  9 17:59 dovecot.conf -> /etc/dovecot/dovecot.conf
drwxr-xr-x 2 root    root      40 Aug  9 17:59 empty
srw------- 1 root    root       0 Aug  9 17:59 imap-hibernate
srw------- 1 root    root       0 Aug  9 17:59 imap-master
srw-rw-rw- 1 root    root       0 Aug  9 17:59 imap-urlauth
srw------- 1 dovecot root       0 Aug  9 17:59 imap-urlauth-worker
srw-rw-rw- 1 root    root       0 Aug  9 17:59 indexer
srw------- 1 dovecot root       0 Aug  9 17:59 indexer-worker
srw------- 1 root    root       0 Aug  9 17:59 ipc
srw-rw-rw- 1 root    root       0 Aug  9 17:59 lmtp
srw------- 1 root    root       0 Aug  9 17:59 log-errors
drwxr-x--- 2 root    dovenull 160 Aug  9 17:59 login
-rw------- 1 root    root       5 Aug  9 17:59 master.pid
srw-rw---- 1 vmail   vmail      0 Aug  9 17:59 quota-warning
srw------- 1 root    root       0 Aug  9 17:59 replication-notify
prw------- 1 root    root       0 Aug  9 17:59 replication-notify-fifo
srw------- 1 dovecot root       0 Aug  9 17:59 replicator
srw-rw-rw- 1 root    root       0 Aug  9 17:59 ssl-params
srw------- 1 root    root       0 Aug  9 17:59 stats
prw------- 1 root    root       0 Aug  9 17:59 stats-mail
prw------- 1 root    root       0 Aug  9 17:59 stats-user
drwxr-x--- 2 root    dovenull  80 Aug  9 17:59 token-login

*) Yes it is an ls argument smile
*) I think apparmor is enabled, never used it

/var/run/dovecot# sudo apparmor_status
apparmor module is loaded.
49 profiles are loaded.
12 profiles are in enforce mode.
   /sbin/dhclient
   /usr/bin/freshclam
   /usr/lib/NetworkManager/nm-dhcp-client.action
   /usr/lib/NetworkManager/nm-dhcp-helper
   /usr/lib/chromium-browser/chromium-browser//browser_java
   /usr/lib/chromium-browser/chromium-browser//browser_openjdk
   /usr/lib/chromium-browser/chromium-browser//sanitized_helper
   /usr/lib/connman/scripts/dhclient-script
   /usr/sbin/clamd
   /usr/sbin/mysqld
   /usr/sbin/ntpd
   /usr/sbin/tcpdump
37 profiles are in complain mode.
   /usr/lib/chromium-browser/chromium-browser
   /usr/lib/chromium-browser/chromium-browser//chromium_browser_sandbox
   /usr/lib/chromium-browser/chromium-browser//lsb_release
   /usr/lib/chromium-browser/chromium-browser//xdgsettings
   /usr/lib/dovecot/anvil
   /usr/lib/dovecot/auth
   /usr/lib/dovecot/config
   /usr/lib/dovecot/deliver
   /usr/lib/dovecot/dict
   /usr/lib/dovecot/dovecot-auth
   /usr/lib/dovecot/dovecot-lda
   /usr/lib/dovecot/dovecot-lda///usr/sbin/sendmail
   /usr/lib/dovecot/imap
   /usr/lib/dovecot/imap-login
   /usr/lib/dovecot/lmtp
   /usr/lib/dovecot/log
   /usr/lib/dovecot/managesieve
   /usr/lib/dovecot/managesieve-login
   /usr/lib/dovecot/pop3
   /usr/lib/dovecot/pop3-login
   /usr/lib/dovecot/ssl-params
   /usr/sbin/avahi-daemon
   /usr/sbin/dnsmasq
   /usr/sbin/dnsmasq//libvirt_leaseshelper
   /usr/sbin/dovecot
   /usr/sbin/identd
   /usr/sbin/mdnsd
   /usr/sbin/nmbd
   /usr/sbin/nscd
   /usr/sbin/smbd
   /usr/sbin/smbldap-useradd
   /usr/sbin/smbldap-useradd///etc/init.d/nscd
   /usr/{sbin/traceroute,bin/traceroute.db}
   /{usr/,}bin/ping
   klogd
   syslog-ng
   syslogd
17 processes have profiles defined.
5 processes are in enforce mode.
   /sbin/dhclient (621) 
   /sbin/dhclient (673) 
   /usr/bin/freshclam (811) 
   /usr/sbin/clamd (919) 
   /usr/sbin/mysqld (942) 
12 processes are in complain mode.
   /usr/lib/dovecot/anvil (2010) 
   /usr/lib/dovecot/config (2017) 
   /usr/lib/dovecot/imap (20030) 
   /usr/lib/dovecot/imap-login (20028) 
   /usr/lib/dovecot/lmtp (2009) 
   /usr/lib/dovecot/lmtp (2013) 
   /usr/lib/dovecot/lmtp (2014) 
   /usr/lib/dovecot/lmtp (2015) 
   /usr/lib/dovecot/lmtp (2016) 
   /usr/lib/dovecot/log (2011) 
   /usr/lib/dovecot/ssl-params (30269) 
   /usr/sbin/dovecot (2008) 
0 processes are unconfined but have a profile defined.

*) output seems the same with mine.

8

Re: Can send mail, but not receive it.

SurudoiRyu wrote:

*) I think apparmor is enabled, never used it

Is it actually running? Does it work after you stopped apparmor?

9

Re: Can send mail, but not receive it.

It was actually running, stopped it and still can't receive mail.

10

Re: Can send mail, but not receive it.

Try this:

*) Stop Dovecot service.
*) Make sure file /var/run/dovecot/auth-userdb is absent. If exists, remove it manually.
*) Start Dovecot service.

11

Re: Can send mail, but not receive it.

ZhangHuangbin wrote:

Try this:

*) Stop Dovecot service.
*) Make sure file /var/run/dovecot/auth-userdb is absent. If exists, remove it manually.
*) Start Dovecot service.

Tried it, did not helped. Still cannot receive mail but can send it to others.

lda.log:

Aug 22 08:39:58 mail dovecot: lda(postmaster@mysite.nl): Error: userdb lookup: connect(/var/run/dovecot/auth-userdb) failed: Permission denied (euid=2000(vmail) egid=2000(vmail) UNIX perms appear ok (ACL/MAC wrong?), dir owned by 0:0 mode=0755)
Aug 22 08:39:58 mail dovecot: lda(postmaster@mysite.nl): Error: userdb lookup: connect(/var/run/dovecot/auth-userdb) failed: Permission denied (euid=2000(vmail) egid=2000(vmail) UNIX perms appear ok (ACL/MAC wrong?), dir owned by 0:0 mode=0755)
Aug 22 08:42:54 mail dovecot: lda(no-reply@mysite.nl): Error: userdb lookup: connect(/var/run/dovecot/auth-userdb) failed: Permission denied (euid=2000(vmail) egid=2000(vmail) UNIX perms appear ok (ACL/MAC wrong?), dir owned by 0:0 mode=0755)
Aug 22 08:44:58 mail dovecot: lda(postmaster@mysite.nl): Error: userdb lookup: connect(/var/run/dovecot/auth-userdb) failed: No such file or directory
Aug 22 08:44:58 mail dovecot: lda(postmaster@mysite.nl): Error: userdb lookup: connect(/var/run/dovecot/auth-userdb) failed: No such file or directory
Aug 22 08:48:51 mail dovecot: lda(no-reply@mysite.nl): Error: userdb lookup: connect(/var/run/dovecot/auth-userdb) failed: Permission denied (euid=2000(vmail) egid=2000(vmail) UNIX perms appear ok (ACL/MAC wrong?), dir owned by 0:0 mode=0755)

File is placed back in directory:

drwxr-xr-x  5 root    root      760 Aug 22 08:45 .
drwxr-xr-x 28 root    root     1080 Aug 22 08:36 ..
srw-------  1 root    root        0 Aug 22 08:45 anvil
srw-------  1 root    root        0 Aug 22 08:45 anvil-auth-penalty
srw-------  1 dovecot root        0 Aug 22 08:45 auth-client
srw-------  1 dovecot root        0 Aug 22 08:45 auth-login
srw-rw-rw-  1 vmail   vmail       0 Aug 22 08:45 auth-master
-rw-------  1 root    root       32 Aug  1 08:34 auth-token-secret.dat
srw-rw----  1 vmail   vmail       0 Aug 22 08:45 auth-userdb
srw-------  1 dovecot root        0 Aug 22 08:45 auth-worker
srw-------  1 root    root        0 Aug 22 08:45 config
srw-rw----  1 vmail   vmail       0 Aug 22 08:45 dict
srw-------  1 root    root        0 Aug 22 08:45 dict-async
srw-------  1 root    root        0 Aug 22 08:45 director-admin
srw-rw-rw-  1 root    root        0 Aug 22 08:45 dns-client
srw-------  1 root    root        0 Aug 22 08:45 doveadm-server
lrwxrwxrwx  1 root    root       25 Aug 22 08:45 dovecot.conf -> /etc/dovecot/dovecot.conf
drwxr-xr-x  2 root    root       40 Aug  1 08:34 empty
srw-------  1 root    root        0 Aug 22 08:45 imap-hibernate
srw-------  1 root    root        0 Aug 22 08:45 imap-master
srw-rw-rw-  1 root    root        0 Aug 22 08:45 imap-urlauth
srw-------  1 dovecot root        0 Aug 22 08:45 imap-urlauth-worker
srw-rw-rw-  1 root    root        0 Aug 22 08:45 indexer
srw-------  1 dovecot root        0 Aug 22 08:45 indexer-worker
srw-------  1 root    root        0 Aug 22 08:45 ipc
srw-rw-rw-  1 root    root        0 Aug 22 08:45 lmtp
srw-------  1 root    root        0 Aug 22 08:45 log-errors
drwxr-x---  2 root    dovenull  160 Aug 22 08:45 login
-rw-------  1 root    root        6 Aug 22 08:45 master.pid
srw-rw----  1 vmail   vmail       0 Aug 22 08:45 quota-warning
srw-------  1 root    root        0 Aug 22 08:45 replication-notify
prw-------  1 root    root        0 Aug 22 08:45 replication-notify-fifo
srw-------  1 dovecot root        0 Aug 22 08:45 replicator
srw-rw-rw-  1 root    root        0 Aug 22 08:45 ssl-params
srw-------  1 root    root        0 Aug 22 08:45 stats
prw-------  1 root    root        0 Aug 22 08:45 stats-mail
prw-------  1 root    root        0 Aug 22 08:45 stats-user
drwxr-x---  2 root    dovenull   80 Aug 22 08:45 token-login

12

Re: Can send mail, but not receive it.

No idea right now, Did you modify any Dovecot configuration? Please show me output of command "doveconf -n".

13

Re: Can send mail, but not receive it.

Here is the output of doveconf -n can't remember if i have changed anything in here (thought not):

# 2.2.22 (fe789d2): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.4.13 (7b14904)
# OS: Linux 4.4.0-87-generic x86_64 Ubuntu 16.04.3 LTS
auth_debug = yes
auth_master_user_separator = *
auth_mechanisms = PLAIN LOGIN
dict {
  acl = mysql:/etc/dovecot/dovecot-share-folder.conf
  quotadict = mysql:/etc/dovecot/dovecot-used-quota.conf
}
first_valid_uid = 2000
last_valid_uid = 2000
listen = * [::]
mail_debug = yes
mail_gid = 2000
mail_location = maildir:%Lh/Maildir/:INDEX=%Lh/Maildir/
mail_plugins = quota mailbox_alias acl mail_log notify
mail_uid = 2000
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character vacati                                              on subaddress comparator-i;ascii-numeric relational regex imap4flags copy includ                                              e variables body enotify environment mailbox date index ihave duplicate mime for                                              everypart extracttext
namespace {
  inbox = yes
  location =
  mailbox Archive {
    auto = no
    special_use = \Archive
  }
  mailbox Archives {
    auto = no
    special_use = \Archive
  }
  mailbox "Deleted Messages" {
    auto = no
    special_use = \Trash
  }
  mailbox Drafts {
    auto = subscribe
    special_use = \Drafts
  }
  mailbox Junk {
    auto = subscribe
    special_use = \Junk
  }
  mailbox "Junk E-mail" {
    auto = no
    special_use = \Junk
  }
  mailbox Sent {
    auto = subscribe
    special_use = \Sent
  }
  mailbox "Sent Items" {
    auto = no
    special_use = \Sent
  }
  mailbox "Sent Messages" {
    auto = no
    special_use = \Sent
  }
  mailbox Spam {
    auto = no
    special_use = \Junk
  }
  mailbox Trash {
    auto = subscribe
    special_use = \Trash
  }
  prefix =
  separator = /
  type = private
}
namespace {
  list = children
  location = maildir:%%Lh/Maildir/:INDEX=%%Lh/Maildir/Shared/%%Ld/%%Ln
  prefix = Shared/%%u/
  separator = /
  subscriptions = yes
  type = shared
}
passdb {
  args = /etc/dovecot/dovecot-mysql.conf
  driver = sql
}
passdb {
  args = /etc/dovecot/dovecot-master-users
  driver = passwd-file
  master = yes
}
plugin {
  acl = vfile
  acl_shared_dict = proxy::acl
  mail_log_events = delete undelete expunge mailbox_delete mailbox_rename
  mail_log_fields = uid box msgid size from subject
  mailbox_alias_new = Sent Messages
  mailbox_alias_new2 = Sent Items
  mailbox_alias_old = Sent
  mailbox_alias_old2 = Sent
  quota = dict:user::proxy::quotadict
  quota_grace = 10%%
  quota_rule = *:storage=1G
  quota_warning = storage=100%% quota-warning 100 %u
  quota_warning2 = storage=95%% quota-warning 95 %u
  quota_warning3 = storage=90%% quota-warning 90 %u
  quota_warning4 = storage=85%% quota-warning 85 %u
  sieve = %Lh/sieve/dovecot.sieve
  sieve_before = /var/vmail/sieve/dovecot.sieve
  sieve_dir = %Lh/sieve
  sieve_global_dir = /var/vmail/sieve
  sieve_max_redirects = 30
}
protocols = pop3 imap sieve lmtp
service auth {
  unix_listener /var/spool/postfix/private/dovecot-auth {
    group = postfix
    mode = 0666
    user = postfix
  }
  unix_listener auth-master {
    group = vmail
    mode = 0666
    user = vmail
  }
  unix_listener auth-userdb {
    group = vmail
    mode = 0660
    user = vmail
  }
}
service dict {
  unix_listener dict {
    group = vmail
    mode = 0660
    user = vmail
  }
}
service imap-login {
  process_limit = 500
  service_count = 1
}
service lmtp {
  executable = lmtp -L
  inet_listener lmtp {
    address = 127.0.0.1
    port = 24
  }
  process_min_avail = 5
  unix_listener /var/spool/postfix/private/dovecot-lmtp {
    group = postfix
    mode = 0600
    user = postfix
  }
  user = vmail
}
service managesieve-login {
  inet_listener sieve {
    address = 127.0.0.1
    port = 4190
  }
}
service pop3-login {
  service_count = 1
}
service quota-warning {
  executable = script /usr/local/bin/dovecot-quota-warning.sh
  unix_listener quota-warning {
    group = vmail
    mode = 0660
    user = vmail
  }
}
ssl = required
ssl_cert = </etc/letsencrypt/live/mail.mysite.nl/fullchain.pem
ssl_cipher_list = ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES                                              :ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5
ssl_dh_parameters_length = 2048
ssl_key = </etc/letsencrypt/live/mail.mysite.nl/privkey.pem
ssl_prefer_server_ciphers = yes
ssl_protocols = !SSLv2 !SSLv3
syslog_facility = local5
userdb {
  args = /etc/dovecot/dovecot-mysql.conf
  driver = sql
}
protocol lda {
  lda_mailbox_autocreate = yes
  lda_mailbox_autosubscribe = yes
  mail_plugins = quota mailbox_alias acl mail_log notify sieve
  postmaster_address = root
}
protocol lmtp {
  lmtp_save_to_detail_mailbox = yes
  mail_plugins = quota sieve
  postmaster_address = postmaster
  recipient_delimiter = +
}
protocol imap {
  imap_client_workarounds = tb-extra-mailbox-sep
  mail_max_userip_connections = 30
  mail_plugins = quota mailbox_alias acl mail_log notify imap_quota imap_acl
}
protocol pop3 {
  mail_max_userip_connections = 30
  mail_plugins = quota mailbox_alias acl mail_log notify
  pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
  pop3_uidl_format = %08Xu%08Xv
}

14

Re: Can send mail, but not receive it.

No clue yet. sad
Everything seems just fine.