1 (edited by tyllee 2016-04-26 03:09:37)

Topic: Email hidden at delivery

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.4
- Linux/BSD distribution name and version: Deb 8.4
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? yes
- Related log if you're reporting an issue:  /var/log/mail.log /var/log/iredapd/iredapd.log
====

Secenario:
othermail.srv is hosting the same mail domain as iredmail.srv. When user account does not exist at othermail.srv it sends it to iredmail.srv.

I've whitelisted ip of othermail.srv (111.111.111.111).

The mail is delivered but hidden. Why is it hidden? In roundcube I can read the mail but it's greyed out. See logs below. 

I can "Unhide" the email in roundcube . And then all clients can read the email. I can't hide the email again from roundcube.

/var/log/mail.log -- this log show normal behavior
Apr 25 19:22:42 srv postfix/smtp[23814]: 0A2F7553: to=<user@iredmail.srv>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.19, delays=0.02/0.01/0/0.16, 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 2E3A5F4A)
Apr 25 19:22:42 srv postfix/qmgr[1369]: 0A2F7553: removed
Apr 25 19:22:42 srv postfix/pipe[23818]: 2E3A5F4A: to=<user@iredmail.srv>, relay=dovecot, delay=0.04, delays=0/0.01/0/0.03, dsn=2.0.0, status=sent (delivered via dovecot service)
Apr 25 19:22:42 srv postfix/qmgr[1369]: 2E3A5F4A: removed


/var/log/iredapd/iredapd.log  -- this log show normal behavior
2016-04-25 19:22:42 INFO [111.111.111.111] RCPT, user@other.srv -> user@iredmail.srv, DUNNO
2016-04-25 19:22:42 INFO [111.111.111.111] END-OF-MESSAGE, user@other.srv -> user@iredmail.srv, DUNNO


What log should I read to understand why the email gets "hidden" and can be unhidden from roundcube?

Post's attachments

removed_roundcube.tiff
removed_roundcube.tiff 13.03 kb, 1 downloads since 2016-04-25 

You don't have the permssions to download the attachments of this post.

----

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

2

Re: Email hidden at delivery

tyllee wrote:

Apr 25 19:22:42 srv postfix/pipe[23818]: 2E3A5F4A: to=<user@iredmail.srv>, relay=dovecot, delay=0.04, delays=0/0.01/0/0.03, dsn=2.0.0, status=sent (delivered via dovecot service)

This is normal mail delivery. And log in iredapd.log is fine.

Seems you have some sieve rules to process this email. Please check /var/log/dovecot.log and /var/log/dovecot-sieve.log for more details.

3

Re: Email hidden at delivery

ZhangHuangbin wrote:
tyllee wrote:

Apr 25 19:22:42 srv postfix/pipe[23818]: 2E3A5F4A: to=<user@iredmail.srv>, relay=dovecot, delay=0.04, delays=0/0.01/0/0.03, dsn=2.0.0, status=sent (delivered via dovecot service)

This is normal mail delivery. And log in iredapd.log is fine.

Seems you have some sieve rules to process this email. Please check /var/log/dovecot.log and /var/log/dovecot-sieve.log for more details.

/var/log/dovecot-sieve.log
Apr 25 19:22:42 lda(user@iredmail.srv): Info: sieve: msgid=<1316080464-6887@othermail.srv>: stored mail into mailbox 'INBOX'

Noting strange here either...

/var/log/dovecot.log  only login and logout massages time of delivery.

/var/vmail/sieve/dovecot.sieve
require ["fileinto"];

# rule:[Move Spam to Junk Folder]
if header :is "X-Spam-Flag" "YES"
{
    fileinto "Junk";
    stop;
}

/var/vmail/sieve/DOMAIN/user.sieve
There is no local sieve rule for the user.

I'm stuck.

4

Re: Email hidden at delivery

FYI

I've tried the reproduce this to day. But all is working now without me interfering.

Could it been some conscript or other script regarding whitelist rules?

I will get back if this comes back.

5

Re: Email hidden at delivery

tyllee wrote:

Apr 25 19:22:42 lda(user@iredmail.srv): Info: sieve: msgid=<1316080464-6887@othermail.srv>: stored mail into mailbox 'INBOX'

This means Dovecot delivered email to user's INBOX folder. Not hidden here.
I have no idea right now, sorry.

6

Re: Email hidden at delivery

Still having problem with this. Or I've solved it by setting whitelisting in postfix manually.

When I restart or reload postfix the problems reoccur. Even though I've whitelisted in iRedAdmin-Pro in the whitelist tab and greylisting tab.

This way I solve the problem:

I put the sending server in mynetworks in postfix config.

/etc/postfix/main.cf
mynetworks = 127.0.0.1 111.111.111.111

7

Re: Email hidden at delivery

Your post makes me confused. Did you solve this issue or not?

8

Re: Email hidden at delivery

Sorry for the delay.

I'm not totally satisfied. This feel like a temporary solution.
Will investigate it further.