1 (edited by kiran 2013-05-10 18:00:42)

Topic: Mail Headers difference between iRedmail and sureserver

==== Required information ====
- iRedMail version: iRedMail-0.8.4
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: CentOS release 5.6 x86_64
- Related log if you're reporting an issue:
====

Hi Team,

Recently I have installed iRedmail Server and migrated one of my domain from sureserver to iRedmail every thing is working fine but we have some issue which i am not able to rectify. My java application which is running on Production reading the mail header and sents that mail to respective client which is working fine with sureserver hosting but when i have migrated to iRedmail mail header differences is coming. There is 2 Delivered-To headers in sureserver but the same not there in iRedmail header due to which my java application not picking the messages. I want the other header should print in iRedmail header too.

Where are using catch all @ sureserver and also iRedmail.

The header is very important for me.

Please find the attached mail headers and suggest me what need to be done.

iRedmail Server
------------------------------------------------------------------------------
Return-Path : <Txxns_page.owner@list.tx.com>
Delivered-To : mxxxmail@pagexxx.net
Received : from localhost (mail.unicel.in [127.0.0.1])
    by mail.unicel.in (Postfix) with ESMTP id EF0AFC2C8104
    for <mxxxmail@pagexxx.net>; Wed,  8 May 2013 16:44:36 +0530 (IST)


sureserver
-----------------------------------------------------------------------------
Return-Path : <Txxns_page.owner@list.tx.com>
Delivered-To : mxxxmail@pagexxx.user
Received : (qmail 9677 invoked by uid 504); 31 Mar 2013 20:31:56 -0000
Delivered-To : 9177xx731xx@pagexx.net

----

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

2

Re: Mail Headers difference between iRedmail and sureserver

*) Please show us full mail headers of both emails here, not just the ones you pasted.
*) Is Txxns_page.owner@list.tx.com a mailing list? And what about mxxxmail@pagexxx.user and 9177xx731xx@pagexx.net?

3

Re: Mail Headers difference between iRedmail and sureserver

ZhangHuangbin wrote:

*) Please show us full mail headers of both emails here, not just the ones you pasted.
*) Is Txxns_page.owner@list.tx.com a mailing list? And what about mxxxmail@pagexxx.user and 9177xx731xx@pagexx.net?


Please find the attached iRedmail and secureserver Mail Headers.

iRedMail

--------------------------------

Return-Path : <tiins_page.owner@list.ti.com>
Delivered-To : mobilemail@page247.net
Received : from localhost (mail.unicel.in [127.0.0.1])
    by mail.unicel.in (Postfix) with ESMTP id EF0AFC2C8104
    for <mobilemail@page247.net>; Wed,  8 May 2013 16:44:36 +0530 (IST)
X-Virus-Scanned : amavisd-new at mail.unicel.in
Received : from mail.unicel.in ([127.0.0.1])
    by localhost (mail.unicel.in [127.0.0.1]) (amavisd-new, port 10024)
    with ESMTP id tJyIiPjHYejP for <mobilemail@page247.net>;
    Wed,  8 May 2013 16:44:36 +0530 (IST)
Received : from comal.ext.ti.com (unknown [198.47.26.152])
    by mail.unicel.in (Postfix) with ESMTPS id D9E18C2C8106;
    Wed,  8 May 2013 16:44:25 +0530 (IST)
Received : from dlep60.itg.ti.com ([157.170.170.21])
    by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id r48BENaf029779;
    Wed, 8 May 2013 06:14:23 -0500
Received : from dlep60.itg.ti.com (localhost [127.0.0.1])
    by dlep60.itg.ti.com (8.12.11/8.12.11) with ESMTP id r48BEMau016805;
    Wed, 8 May 2013 06:14:22 -0500 (CDT)
Received : (from daemon@localhost)
    by dlep60.itg.ti.com (8.12.11/8.12.11/Submit) id r48BEMqX016799;
    Wed, 8 May 2013 06:14:22 -0500 (CDT)
Received : from dbdlxv05.itg.ti.com (localhost [127.0.0.1])
    by dlep60.itg.ti.com (8.12.11/8.12.11) with ESMTP id r48BEKko016781
    for <bdnet_page@list.ti.com>; Wed, 8 May 2013 06:14:21 -0500 (CDT)
Received : from DBDE72.ent.ti.com (dbde72.ent.ti.com [172.24.171.97])
    by dbdlxv05.itg.ti.com (8.14.3/8.13.8) with ESMTP id r48BEJ9D030316
    for <bdnet_page@list.ti.com>; Wed, 8 May 2013 06:14:19 -0500
Received : from dbdp33.itg.ti.com (172.24.170.252) by DBDE72.ent.ti.com
(172.24.171.97) with Microsoft SMTP Server id 14.2.342.3; Wed, 8 May 2013
19:14:19 +0800
Received : from list.ti.com (smtpvbd.itg.ti.com [172.24.170.250])    by
dbdp33.itg.ti.com (8.13.8/8.13.8) with SMTP id r48BEGjt020093    for
<bdnet_page@list.ti.com>; Wed, 8 May 2013 16:44:19 +0530
Message-ID : <201305081114.r48BEGjt020093@dbdp33.itg.ti.com>
Date : Wed, 8 May 2013 11:14:19 +0000
MIME-Version : 1.0
Content-Type : text/plain
From : <dbdsnmpc01@list.ti.com>
To : <bdnet_page@list.ti.com>
Precedence : list
X-Homer-Version : ver 1.0.0.12 : Apr 13 2006 15:53:18
X-Homer-Queue-ID : 200.20130508061421.16792
Subject : ibdrr98 Link FastEthernet4/8 up.cause: up
List-Help : <http://email.ti.com>
List-Owner : <mailto:tiins_page.owner@list.ti.com>
List-Post : <mailto:tiins_page@list.ti.com>
X-List-Backtrack : bdnet_page,tiins_page



SecureServer
------------------------------
Return-Path : <tiins_page.owner@list.ti.com>
Delivered-To : mobilemail@page247.user
Received : (qmail 9677 invoked by uid 504); 31 Mar 2013 20:31:56 -0000
Delivered-To : 9177xx17x192@page247.net
Received : (qmail 9638 invoked by uid 504); 31 Mar 2013 20:31:55 -0000
Received : from comal.ext.ti.com (198.47.26.152)
  by s430.sureserver.com with SMTP; 31 Mar 2013 20:31:55 -0000
Received : from dlep60.itg.ti.com ([157.170.170.21])
    by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id r2VKVPKc003000;
    Sun, 31 Mar 2013 15:31:25 -0500
Received : from dlep60.itg.ti.com (localhost [127.0.0.1])
    by dlep60.itg.ti.com (8.12.11/8.12.11) with ESMTP id r2VKVNi9006698;
    Sun, 31 Mar 2013 15:31:24 -0500 (CDT)
Received : (from daemon@localhost)
    by dlep60.itg.ti.com (8.12.11/8.12.11/Submit) id r2VKVNPi006689;
    Sun, 31 Mar 2013 15:31:23 -0500 (CDT)
Received : from dlelxv30.itg.ti.com (localhost [127.0.0.1])
    by dlep60.itg.ti.com (8.12.11/8.12.11) with ESMTP id r2VKVM7d006666
    for <bdnet_page@list.ti.com>; Sun, 31 Mar 2013 15:31:22 -0500 (CDT)
Received : from DLEE70.ent.ti.com (dlee70.ent.ti.com [157.170.170.113])
    by dlelxv30.itg.ti.com (8.13.8/8.13.8) with ESMTP id r2VKVMuX014277
    for <bdnet_page@list.ti.com>; Sun, 31 Mar 2013 15:31:22 -0500
Received : from dlelxv24.itg.ti.com (172.17.1.199) by DLEE70.ent.ti.com
(157.170.170.113) with Microsoft SMTP Server id 14.2.342.3; Sun, 31 Mar 2013
15:31:22 -0500
Received : from flowbd01.itg.ti.com (flowbd01.itg.ti.com [172.24.170.72])    by
dlelxv24.itg.ti.com (8.13.8/8.13.8) with ESMTP id r2VKVLv3011833    for
<bdnet_page@list.ti.com>; Sun, 31 Mar 2013 15:31:22 -0500
Received : by flowbd01.itg.ti.com (Postfix, from userid 40968)    id 22F5E42A19;
Mon,  1 Apr 2013 02:01:20 +0530 (IST)
Message-ID : <20130331203120.22F5E42A19@flowbd01.itg.ti.com>
Date : Mon, 1 Apr 2013 02:01:20 +0530
MIME-Version : 1.0
Content-Type : text/plain
From : Network Performance Group <npfg@flowbd01.itg.ti.com>
To : <bdnet_page@list.ti.com>
Precedence : list
X-Homer-Version : ver 1.0.0.12 : Apr 13 2006 15:53:18
X-Homer-Queue-ID : 200.20130331153123.06672
Subject : There Were No Network Latency Decreases Yesterday
List-Help : <http://email.ti.com>
List-Owner : <mailto:tiins_page.owner@list.ti.com>
List-Post : <mailto:tiins_page@list.ti.com>
X-List-Backtrack : bdnet_page,tiins_page

4

Re: Mail Headers difference between iRedmail and sureserver

Could you please answer my another question in previous reply:

*) Is Txxns_page.owner@list.tx.com a mailing list? And what about mxxxmail@pagexxx.user and 9177xx731xx@pagexx.net?
*) What's the relationship between them?

5

Re: Mail Headers difference between iRedmail and sureserver

ZhangHuangbin wrote:

Could you please answer my another question in previous reply:

*) Is Txxns_page.owner@list.tx.com a mailing list? And what about mxxxmail@pagexxx.user and 9177xx731xx@pagexx.net?
*) What's the relationship between them?

Hi,

Yes Txxns_page.owner@list.tx.com is a mailing list which is configured at client end and mxxxmail@pagexxx.user account @ iredmail and it is catch all, 9177xx731xx@pagexx.net is part of catch all.

Regards,
Kiran Reddy

6

Re: Mail Headers difference between iRedmail and sureserver

kiran wrote:

mxxxmail@pagexxx.user account @ iredmail and it is catch all, 9177xx731xx@pagexx.net is part of catch all.

That makes sense.
No idea how to add addition Deliver-To: in Postfix, does set "receive_override_options=no_address_mappings" in Postfix main.cf helps? Reference: http://www.postfix.org/postconf.5.html# … de_options

Another solution is adding this header with sieve script.

7

Re: Mail Headers difference between iRedmail and sureserver

ZhangHuangbin wrote:
kiran wrote:

mxxxmail@pagexxx.user account @ iredmail and it is catch all, 9177xx731xx@pagexx.net is part of catch all.

That makes sense.
No idea how to add addition Deliver-To: in Postfix, does set "receive_override_options=no_address_mappings" in Postfix main.cf helps? Reference: http://www.postfix.org/postconf.5.html# … de_options

Another solution is adding this header with sieve script.

Hi,

Thanks for reply let me configure and see the option which you have specified. Even i would like to try

http://www.iredmail.org/forum/post14006.html#p14006

how to add header using sieve script can you please provide me the script.

Regards,
Kiran Reddy

8

Re: Mail Headers difference between iRedmail and sureserver

kiran wrote:

let me configure and see the option which you have specified. Even i would like to try
http://www.iredmail.org/forum/post14006.html#p14006

Let us know whether it works for you or not.

9

Re: Mail Headers difference between iRedmail and sureserver

ZhangHuangbin wrote:
kiran wrote:

let me configure and see the option which you have specified. Even i would like to try
http://www.iredmail.org/forum/post14006.html#p14006

Let us know whether it works for you or not.


Hi,

http://www.iredmail.org/forum/post14006.html#p14006

after following this URL it resovled the issue but it is showing X-Original-To. How can i rewrite X-Original-To to Delivered-To.

Waiting for your reply.

Thanks,
Kiran Reddy

10

Re: Mail Headers difference between iRedmail and sureserver

Your application cannot handle other mail header?

11

Re: Mail Headers difference between iRedmail and sureserver

ZhangHuangbin wrote:

Your application cannot handle other mail header?

Hi,

My application will support other headers but there lot of changes is required on code changes which will take much time. Instead of that i would like to rewire the headers.

Can you please help me.

Regards,
Kiran Reddy

12

Re: Mail Headers difference between iRedmail and sureserver

As far as i know, Postfix doesn't write 'Deliver-To:' in mail header, maybe you need to achieve this with Sieve script.
Reference: http://tools.ietf.org/html/rfc5293

13

Re: Mail Headers difference between iRedmail and sureserver

ZhangHuangbin wrote:

As far as i know, Postfix doesn't write 'Deliver-To:' in mail header, maybe you need to achieve this with Sieve script.
Reference: http://tools.ietf.org/html/rfc5293

Hi,

Thanks for reply.

Please find the sieve script. please tell me whether it is correct or wrong also suggest me where to add this sieve script for applying all domains.

        if header :contains "X-Original-To:"
        {
        deleteheader :"X-Original-To:";
                addheader "Delivered-To:";
        }

Regards,
Kiran Reddy

14

Re: Mail Headers difference between iRedmail and sureserver

*) Dovecot has a global sieve script defined in "sieve_global_path =" in /etc/dovecot.conf (RHEL/CentOS 5), you can prepend this sieve script under "require" line.

*) List "variables" in "require" line.

*) Sieve script:

if header :matches "X-Original-To" "*" {set "deliverto" "${1}";}
if true {
    addheader :last "Deliver-To" "${deliverto}";
}

WARNING and NOTES:

*) CentOS 5 uses Dovecot-1.2, you must check whether the managesieve server supports "variables" extension. Verify it by telnet to managesieve port: 4190 (or 2000):

# telnet localhost 4190
...
"SIEVE" "... variables ..."
...

*) If user has his/her own sieve rules/scripts, global script will be ignored by Dovecot-1.2.

So, please test it first.

15 (edited by kiran 2013-05-16 14:29:12)

Re: Mail Headers difference between iRedmail and sureserver

ZhangHuangbin wrote:

*) Dovecot has a global sieve script defined in "sieve_global_path =" in /etc/dovecot.conf (RHEL/CentOS 5), you can prepend this sieve script under "require" line.

*) List "variables" in "require" line.

*) Sieve script:

if header :matches "X-Original-To" "*" {set "deliverto" "${1}";}
if true {
    addheader :last "Deliver-To" "${deliverto}";
}

WARNING and NOTES:

*) CentOS 5 uses Dovecot-1.2, you must check whether the managesieve server supports "variables" extension. Verify it by telnet to managesieve port: 4190 (or 2000):

# telnet localhost 4190
...
"SIEVE" "... variables ..."
...

*) If user has his/her own sieve rules/scripts, global script will be ignored by Dovecot-1.2.

So, please test it first.


Hi,

Please find the below results of telnet.

[root@mail ~]# telnet localhost 2000
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
"IMPLEMENTATION" "dovecot"
"SIEVE" "fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date"
"SASL" "PLAIN LOGIN"
"STARTTLS"
"NOTIFY" "mailto"
"VERSION" "1.0"
OK "Dovecot ready."

I didn't made any changes after i have installed iRedMail i think by default what ever is came with iRedMail still it was there.

Please suggest me. Please provide me step by step to configure this script for global domains also when i try to execute the script i am getting below error.

[root@mail ~]# sievec kiran.sieve
kiran: line 1: error: unknown command 'set' (only reported once at first occurence).
kiran: line 3: error: unknown command 'addheader' (only reported once at first occurence).
kiran: error: validation failed.
Error: failed to compile sieve script 'kiran.sieve'

Regards,
Kiran Reddy

16 (edited by kiran 2013-05-17 23:15:04)

Re: Mail Headers difference between iRedmail and sureserver

H,

How can i enable ediheader extention for sieve which can do this work if it is enabled.

As i see telnet report for port 2000 result as below and there is no editheader extention. I think if editheader extention enabled then the job is very easy i hope or is there any other way to do this i mean workaround.

[root@mail ~]# telnet localhost 2000
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
"IMPLEMENTATION" "dovecot"
"SIEVE" "fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date"
"SASL" "PLAIN LOGIN"
"STARTTLS"
"NOTIFY" "mailto"
"VERSION" "1.0"
OK "Dovecot ready."

Thanks,
Kiran Reddy

17

Re: Mail Headers difference between iRedmail and sureserver

Oh, then it doesn't support this sieve extension. That means you cannot achieve your goal with sieve script.
Sorry about this.

18

Re: Mail Headers difference between iRedmail and sureserver

ZhangHuangbin wrote:

Oh, then it doesn't support this sieve extension. That means you cannot achieve your goal with sieve script.
Sorry about this.

but if i upgrade to latest dovecot or dovecot-2.1-pigeonhole is this solve the issue.

If this is possible please let me know how to upgrade existing sieve.

Regards,
Kiran Reddy

19

Re: Mail Headers difference between iRedmail and sureserver

As mentioned in Dovecot wiki site, Pigeonhole-0.3.0 and later releases support editheader extension.
http://wiki2.dovecot.org/Pigeonhole/Sieve

20

Re: Mail Headers difference between iRedmail and sureserver

ZhangHuangbin wrote:

As mentioned in Dovecot wiki site, Pigeonhole-0.3.0 and later releases support editheader extension.
http://wiki2.dovecot.org/Pigeonhole/Sieve

Hi,

If i upgrade dovecot to latest version and install new version of Pigeonhole with that is there any dependencies or conflict happens in the configuration part or any.

Please suggest me and one more thing why iRedMail not using dovecot latest version ?

Regards,
Kiran Reddy

21

Re: Mail Headers difference between iRedmail and sureserver

kiran wrote:

If i upgrade dovecot to latest version and install new version of Pigeonhole with that is there any dependencies or conflict happens in the configuration part or any.

Dovecot-2 has different config parameters than Dovecot-1.2. Reference:
http://wiki2.dovecot.org/Upgrading

kiran wrote:

Please suggest me and one more thing why iRedMail not using dovecot latest version ?

*) Many Linux distributions don't use the latest versions of softwares. It's freeze according to release schedule, or other reason,
*) We use Dovecot packages from http://atrpms.net/

22

Re: Mail Headers difference between iRedmail and sureserver

ZhangHuangbin wrote:
kiran wrote:

If i upgrade dovecot to latest version and install new version of Pigeonhole with that is there any dependencies or conflict happens in the configuration part or any.

Dovecot-2 has different config parameters than Dovecot-1.2. Reference:
http://wiki2.dovecot.org/Upgrading

kiran wrote:

Please suggest me and one more thing why iRedMail not using dovecot latest version ?

*) Many Linux distributions don't use the latest versions of softwares. It's freeze according to release schedule, or other reason,
*) We use Dovecot packages from http://atrpms.net/

Thanks for reply.

I will upgrade to latest version and see whether this will resolve the issue.

23 (edited by kiran 2013-05-23 18:12:18)

Re: Mail Headers difference between iRedmail and sureserver

kiran wrote:
ZhangHuangbin wrote:
kiran wrote:

If i upgrade dovecot to latest version and install new version of Pigeonhole with that is there any dependencies or conflict happens in the configuration part or any.

Dovecot-2 has different config parameters than Dovecot-1.2. Reference:
http://wiki2.dovecot.org/Upgrading

kiran wrote:

Please suggest me and one more thing why iRedMail not using dovecot latest version ?

*) Many Linux distributions don't use the latest versions of softwares. It's freeze according to release schedule, or other reason,
*) We use Dovecot packages from http://atrpms.net/

Thanks for reply.

I will upgrade to latest version and see whether this will resolve the issue.


Hi,

I have used latest version of centos 6.4 with iredmail latest and dovecot 2.0, pigeonhole-0.3.5 i am not able to use editheader which should work with pigeonhole-0.3.5.

Can you please help me to enable editheader with dovecot.

When i telnet port 4190

other than editheader it is showing every extension.


Regards,
Kiran Reddy

24

Re: Mail Headers difference between iRedmail and sureserver

No idea, sorry. It's better to post to Dovecot mailing list for help.
Also, is it so hard to update your application to use another mail header?

25

Re: Mail Headers difference between iRedmail and sureserver

ZhangHuangbin wrote:

No idea, sorry. It's better to post to Dovecot mailing list for help.
Also, is it so hard to update your application to use another mail header?

It's ok i will check with dovecot mailing list.

Can you please tell me where can i put this .sieve script for all domains to reflect. I mean location for applying the script to all domains instead of specifying each user.

I need only this help from from you.

Thanks.