1 (edited by gilles.quenot 2020-02-09 04:34:43)

Topic: Missing mail from particular host

- iRedMail version: 1.0-beta2 MARIADB edition
- Deployed with  downloadable installer
- Linux/BSD distribution name and version: debian10
- Store mail accounts in MySQL backend
- Web server: Nginx

Hi,

I received a mail from amv.fr :

Feb  7 15:59:54 mail1 postfix/qmgr[13756]: 48Ddkd6bGyz45TDH: from=<nepasrepondre2@amv.fr>, size=39209, nrcpt=1 (queue active)
Feb  7 15:59:54 mail1 postfix/smtpd[12433]: disconnect from mailhost01.filhet-allard.com[195.25.190.133] ehlo=1 mail=2 rcpt=2 data=2 quit=1 commands=8
Feb  7 15:59:54 mail1 postfix/pipe[12449]: 48Ddkd6bGyz45TDH: to=<me@mydomain.tld>, orig_to=<mealiased@mydomain.tld>, relay=dovecot, delay=0.
33, delays=0.24/0/0/0.08, dsn=2.0.0, status=sent (delivered via dovecot service)
Feb  7 15:59:54 mail1 postfix/qmgr[13756]: 48Ddkd6bGyz45TDH: removed

But I see nothing in my mailbox (roundcube), nor on my android phone (k9 mail via imap).

If I search 'nepasrepondre2@amv.fr' in /var/vmail, like :

grep -r 'nepasrepondre2@amv\.fr' /var/vmail

I have no result at all.

I receive emails from other hosts. Don't know what's going on at all.

Edit:
in dovecot logs, I have :

Feb  8 15:51:01 mail1 dovecot: auth: Error: passwd-file: open(/etc/dovecot/dovecot-master-users) failed: Permission denied (euid=108(dovecot) egid=114(dovecot) missing +r perm: /etc/dovecot/dovecot-master-users, dir owned by 0:0 mode=0755)

Ran :

ls -l /etc/dovecot/dovecot-master-users
-r-x------ 1 root root 134 Jan 13 23:08 /etc/dovecot/dovecot-master-users
chmod 544 /etc/dovecot/dovecot-master-users
ls -l /etc/dovecot/dovecot-master-users
-r-xr--r-- 1 root root 134 Jan 13 23:08 /etc/dovecot/dovecot-master-users

Any clue ?
Regards

----

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

2

Re: Missing mail from particular host

Run “chown dovecot:dovecot /etc/dovecot/dovecot-master-users“ to fix it.

3

Re: Missing mail from particular host

ZhangHuangbin wrote:

Run “chown dovecot:dovecot /etc/dovecot/dovecot-master-users“ to fix it.

OK, thanks, I don't think that's the root cause, because i receive other mails

4

Re: Missing mail from particular host

Then please extract related error log from Postfix log file, cannot help much without log.

5 (edited by gilles.quenot 2020-02-09 20:08:54)

Re: Missing mail from particular host

The logs are there since my first post, there's no error, that's my main issue :

Feb  7 15:59:54 mail1 postfix/qmgr[13756]: 48Ddkd6bGyz45TDH: from=<nepasrepondre2@amv.fr>, size=39209, nrcpt=1 (queue active)
Feb  7 15:59:54 mail1 postfix/smtpd[12433]: disconnect from mailhost01.filhet-allard.com[195.25.190.133] ehlo=1 mail=2 rcpt=2 data=2 quit=1 commands=8
Feb  7 15:59:54 mail1 postfix/pipe[12449]: 48Ddkd6bGyz45TDH: to=<me@mydomain.tld>, orig_to=<mealiased@mydomain.tld>, relay=dovecot, delay=0.
33, delays=0.24/0/0/0.08, dsn=2.0.0, status=sent (delivered via dovecot service)
Feb  7 15:59:54 mail1 postfix/qmgr[13756]: 48Ddkd6bGyz45TDH: removed

Please, read my first post, searched mail in /var/vmail with no result

6

Re: Missing mail from particular host

- Does user "me@mydomain.tld" have any mail forwarding? Or redirecting (in sieve rule)?
- Any error in /var/log/dovecot/*?

7

Re: Missing mail from particular host

Hi,

# less /var/log/dovecot/dovecot.log
Feb 25 07:44:30 mail1 dovecot: auth-worker(20740): Warning: sqlpool(mysql): Query failed, retrying: Lost connection to MySQL server during query (idled for 11 secs)
Feb 25 07:44:30 mail1 dovecot: auth-worker(20740): Error: mysql(127.0.0.1): Connect failed to database (vmail): Can't connect to MySQL server on '127.0.0.1' (115) - waiting for 1 seconds before retry
Feb 25 07:44:30 mail1 dovecot: auth-worker(20740): Error: mysql(127.0.0.1): Connect failed to database (vmail): Can't connect to MySQL server on '127.0.0.1' (115) - waiting for 1 seconds before retry
Feb 25 07:44:30 mail1 dovecot: auth-worker(20742): Warning: sqlpool(mysql): Query failed, retrying: Lost connection to MySQL server during query (idled for 21 secs)
Feb 25 07:44:30 mail1 dovecot: auth-worker(20742): Error: mysql(127.0.0.1): Connect failed to database (vmail): Can't connect to MySQL server on '127.0.0.1' (115) - waiting for 1 seconds before retry
Feb 25 07:44:30 mail1 dovecot: auth-worker(20742): Error: mysql(127.0.0.1): Connect failed to database (vmail): Can't connect to MySQL server on '127.0.0.1' (115) - waiting for 1 seconds before retry
Feb 25 07:44:31 mail1 dovecot: auth-worker(20740): Error: mysql(127.0.0.1): Connect failed to database (vmail): Can't connect to MySQL server on '127.0.0.1' (115) - waiting for 5 seconds before retry
Feb 25 07:44:31 mail1 dovecot: auth-worker(20740): Error: mysql(127.0.0.1): Connect failed to database (vmail): Can't connect to MySQL server on '127.0.0.1' (115) - waiting for 5 seconds before retry
Feb 25 07:44:31 mail1 dovecot: auth-worker(20742): Error: mysql(127.0.0.1): Connect failed to database (vmail): Can't connect to MySQL server on '127.0.0.1' (115) - waiting for 5 seconds before retry
Feb 25 07:44:31 mail1 dovecot: auth-worker(20742): Error: mysql(127.0.0.1): Connect failed to database (vmail): Can't connect to MySQL server on '127.0.0.1' (115) - waiting for 5 seconds before retry
Feb 25 07:44:37 mail1 dovecot: dict(20748): mysql(127.0.0.1): Disconnected from database, retrying commit
Feb 25 07:44:37 mail1 dovecot: dict(20745): mysql(127.0.0.1): Disconnected from database, retrying commit

Seems somethings is wrong

8

Re: Missing mail from particular host

Strange, no more errors since this.

Catch all enabled, and an alias exists to move *@mydomain.tld => me@mydomain.tld

Any clue for missing mails ?

9

Re: Missing mail from particular host

From https://whatismyipaddress.com/blacklist-check

https://i.imgur.com/SADrMkR.png

10

Re: Missing mail from particular host

Any update please ?

11

Re: Missing mail from particular host

You said "Strange, no more errors since this."

So this seems fixed?

The log you posted has a completly different timestamp, if it is just one mail missing, you should post the related log

12

Re: Missing mail from particular host

Cthulhu: already done here

There's no error in /var/log/mail.log that's my problem (like you can see in the linked post).

Dunno how an email can disappear like this.

13

Re: Missing mail from particular host

Can you find it in the particular mail folder?

14

Re: Missing mail from particular host

Cthulhu: already searched with grep, read the first post. In GUI, nothing (for sure).