1

Topic: Emails recieved and shown as delivered in log but not on server

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):      0.9.8
- Linux/BSD distribution name and version: CentOS Linux 7.5.1804
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): PGSQL
- Web server (Apache or Nginx):Nginx
- Manage mail accounts with iRedAdmin-Pro? yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Emails received and shown as delivered by postfix in log but are not on server or show up in email client. i have no supporting log file or files with any errors as to why the emails disappear after they show as delivered. this is a random issue that is for one user account so far but happens enough it is interfering with workflow. the emails are not even in the email accounts folder in the dir tree under vmail.

things Ive change in the last month:
created a symlink to a user account in /home due to /root partition filling up becuase it was setup with a smaller partition when Centos was installed
upgraded packages via yum which installed a newer uwsgi package back on 9-24-18

the problem started from what i can tell 3 to 4 weeks ago due to the amount of complaints of emails not showing up

any ideas would be helpful
Justin

2

Re: Emails recieved and shown as delivered in log but not on server

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):      0.9.8
- Linux/BSD distribution name and version: CentOS Linux 7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx):Nginx
- Manage mail accounts with iRedAdmin-Pro? yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

I also have the same problems for few users but it's on the send mail case.
Postfix and iRedAdmin-Pro log file show the email is sent but the mail didn't show in the sent folder, it disappeared. Whatever send from Outlook or Webmail are the same randomly.

Regards,
Matt

3

Re: Emails recieved and shown as delivered in log but not on server

Please check both Postfix and Dovecot log files, there MUST be some log related the issue.

----

Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee

4 (edited by justinr 2018-11-13 03:22:16)

Re: Emails recieved and shown as delivered in log but not on server

Below is a log entry for one of the missing emails which shows it was delivered to the mailbox, but going into the mail box and also into the directory structure you will find no email at all. I have gone through all the logs i can find for this one date/time and found not a single error which is extremely puzzling.

On Friday I deleted the user account and recreated the account while preserving the old email directory to see if the issue might be resolved that way.


MAIL LOG:
Oct 30 09:15:44 mx postfix/postscreen[30558]: PASS OLD [209.85.161.97]:33909
Oct 30 09:15:44 mx postfix/smtpd[30559]: connect from mail-yw1-f97.google.com[209.85.161.97]
Oct 30 09:15:45 mx postfix/smtpd[30559]: 8E3F78163E07: client=mail-yw1-f97.google.com[209.85.161.97]
Oct 30 09:15:45 mx postfix/cleanup[30779]: 8E3F78163E07: message-id=<06E242923803464881F2AF448A38C59901152FF580@Legend-Mail.legend.local>
Oct 30 09:15:45 mx postfix/qmgr[1694]: 8E3F78163E07: from=<tericXXXX@XXXXXXX.XXX>, size=5599, nrcpt=1 (queue active)
Oct 30 09:15:45 mx postfix/smtpd[30559]: disconnect from mail-yw1-f97.google.com[209.85.161.97]
Oct 30 09:15:45 mx postfix/smtpd[30791]: connect from mx.XXXX.XXX[127.0.0.1]
Oct 30 09:15:45 mx postfix/smtpd[30791]: F04A48163E08: client=mx.XXXX.XXX[127.0.0.1]
Oct 30 09:15:45 mx postfix/cleanup[30779]: F04A48163E08: message-id=<06E242923803464881F2AF448A38C59901152FF580@Legend-Mail.legend.local>
Oct 30 09:15:46 mx postfix/smtpd[30791]: disconnect from mx.XXXX.XXX[127.0.0.1]
Oct 30 09:15:46 mx postfix/qmgr[1694]: F04A48163E08: from=<tericXXXX@XXXXXXXX.XXX>, size=6442, nrcpt=1 (queue active)
Oct 30 09:15:46 mx amavis[27906]: (27906-20) Passed CLEAN {RelayedInbound}, [209.85.161.97]:33909 [209.201.111.85] <tericXXXX@XXXXXXXX.XXX> -> <schedule@XXXXXX.XXX>, Queue-ID: 8E3F78163E07, Message-ID: <06E242923803464881F2AF448A38C59901152FF580@legend-mail.legend.local>, mail_id: YYUKxUboxfhV, Hits: -, size: 5599, queued_as: F04A48163E08, dkim_sd=20150623:XXXXXXXXXXX.20150623.gappssmtp.com, 348 ms
Oct 30 09:15:46 mx postfix/smtp[30788]: 8E3F78163E07: to=<schedule@XXXXXXX.XXX>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.52, delays=0.15/0/0/0.36, 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 F04A48163E08)
Oct 30 09:15:46 mx postfix/qmgr[1694]: 8E3F78163E07: removed
Oct 30 09:15:46 mx postfix/pipe[30898]: F04A48163E08: to=<schedule@XXXXXXXX.XXX>, relay=dovecot, delay=0.3, delays=0.03/0/0/0.27, dsn=2.0.0, status=sent (delivered via dovecot service)
Oct 30 09:15:46 mx postfix/qmgr[1694]: F04A48163E08: removed


SIEVE LOG:
Oct 30 09:15:46 lda(schedule@XXXXXXX.XXX): Info: sieve: msgid=<06E242923803464881F2AF448A38C59901152FF580@Legend-Mail.legend.local>: stored mail into mailbox 'INBOX'

IREDAPD LOG:
2018-10-30 09:15:45 INFO [209.85.161.97] RCPT, tericXXX@XXXXX.XXX -> schedule@XXXXXX.XXX, OK wblist=(10, 3, 'W') [sasl_username=, sender=tericXXX@XXXXXXX.XXX, client_name=mail-yw1-f97.google.com, reverse_client_name=mail-yw1-f97.google.com, helo=mail-yw1-f97.google.com, encryption_protocol=TLSv1.2, process_time=0.0067s]
2018-10-30 09:15:45 INFO [209.85.161.97] END-OF-MESSAGE, tericXXXX@XXXXXXX.XXX -> schedule@XXXXXXX.XXX, DUNNO [recipient_count=1, size=5424, process_time=0.0021s]
2018-10-30 09:17:21 INFO Whitelisted: wblist=(10, 3855, 'W')


Thank you for your time and help
Justin

5

Re: Emails recieved and shown as delivered in log but not on server

justinr wrote:

Oct 30 09:15:46 lda(schedule@XXXXXXX.XXX): Info: sieve: msgid=<06E242923803464881F2AF448A38C59901152FF580@Legend-Mail.legend.local>: stored mail into mailbox 'INBOX'

According to this log, message should be delivered to user's INBOX folder.

Does this user have some sieve rule to discard or forward/redirect email to other email addresses?

----

Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee

6

Re: Emails recieved and shown as delivered in log but not on server

ZhangHuangbin wrote:
justinr wrote:

Oct 30 09:15:46 lda(schedule@XXXXXXX.XXX): Info: sieve: msgid=<06E242923803464881F2AF448A38C59901152FF580@Legend-Mail.legend.local>: stored mail into mailbox 'INBOX'

According to this log, message should be delivered to user's INBOX folder.

Does this user have some sieve rule to discard or forward/redirect email to other email addresses?


this user is a straight of the box user using global spam protection and nothing else, and that's what has me stumped. none of the other 18 user accounts show any signs of missing mail, just this one account.

7

Re: Emails recieved and shown as delivered in log but not on server

I have no idea why email was missed. Do you remember any difference between this user and other normal mail users?

----

Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee

8

Re: Emails recieved and shown as delivered in log but not on server

the only true difference is that this email account receives a hundred plus emails a day with some coming in all at one time, i have not looked to see if this issue is happening during one of the spurts of emails or not. could a mass of emails all coming in around the same time cause a bottleneck so to speak and create an issue like this?

9

Re: Emails recieved and shown as delivered in log but not on server

justinr wrote:

could a mass of emails all coming in around the same time cause a bottleneck so to speak and create an issue like this?

I don't think so in your case.

I suggest turn on debug mode in Dovecot to check this mail delivery to this account.
FYI: https://docs.iredmail.org/debug.dovecot.html

----

Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee