1

Topic: How to change Header 'From' for mlmmj?

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.3.2
- Deployed with iRedMail Easy or the downloadable installer? downloadable installer
- Linux/BSD distribution name and version: CentOS 8
- 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.
====

Hello. How i can modify 'From' header for outgoing messages is is sended to mailing list member? For example:

Jul 19 16:50:17 ired roundcube[3679342]: <1j4g9qnu> User user@domain.tld [185.49.170.14]; Message <aea5e80b71c871dd242b649ac57b24bc@domain.tld> for group@domain.tld; 250: 2.0.0 Ok: queued as 9EAEAA20634
Jul 19 16:50:18 ired amavis[3678725]: (3678725-02) Passed CLEAN {RelayedInternal}, ORIGINATING/MYNETS LOCAL [127.0.0.1]:55170 ESMTP/ESMTP <user@domain.tld> -> <group@domain.tld>, (), Queue-ID: 9EAEAA20634, Message-ID: <aea5e80b71c871dd242b649ac57b24bc@domain.tld>, mail_id: CYipqFjcQ5Es, b: 87Wfi2HmT, Hits: -2.9, size: 550, queued_as: 35DE9A213D1, Subject: "test mail", From: <user@domain.tld>, User-Agent: Roundcube_Webmail, helo=localhost, Tests: [ALL_TRUSTED=-1,BAYES_00=-1.9], autolearn=ham autolearn_force=no, autolearnscore=0, dkim_new=dkim:mx.domain.tld, 534 ms
Jul 19 16:50:18 ired amavis[3678725]: (3678725-02) Passed CLEAN, <user@domain.tld> -> <group@domain.tld>, Hits: -2.9, tag=2, tag2=6.2, kill=6.9, queued_as: 35DE9A213D1, L/0/0/0
Jul 19 16:50:18 ired postfix/amavis/smtp[3677560]: 9EAEAA20634: to=<group@domain.tld>, relay=127.0.0.1[127.0.0.1]:10026, delay=0.61, delays=0.06/0/0/0.54, 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 35DE9A213D1)
Jul 19 16:50:18 ired postfix/pipe[3680422]: 35DE9A213D1: to=<group@domain.tld>, relay=mlmmj, delay=0.03, delays=0.01/0.02/0/0.01, dsn=2.0.0, status=sent (delivered via mlmmj service (Mail delivered without modificaiton.))
Jul 19 16:50:18 ired postfix/qmgr[3618056]: 526A3A20634: from=<group+bounces-1900@domain.tld>, size=2199, nrcpt=2 (queue active)
Jul 19 16:50:18 ired amavis[3678725]: (3678725-03) Passed CLEAN {RelayedInternal}, MLMMJ LOCAL [127.0.0.1] /ESMTP <group+bounces-1900@domain.tld> -> <user2@domain2.tld>,<user3@domain.tld>, (), Message-ID: <aea5e80b71c871dd242b649ac57b24bc@domain.tld>, mail_id: K1XvYtWYw4yT, b: 0DZA8rmVi, Hits: -, size: 1887, queued_as: 526A3A20634, Subject: "test mail", From: <user@domain.tld>, User-Agent: Roundcube_Webmail, helo=, dkim_i=@mx.domain.tld, dkim_sd=dkim:mx.domain.tld, 97 ms
Jul 19 16:50:18 ired amavis[3678725]: (3678725-03) Passed CLEAN, <group+bounces-1900@domain.tld> -> <user2@domain2.tld>, Hits: -, tag=0, tag2=0, kill=0, queued_as: 526A3A20634, L/0/0/0
Jul 19 16:50:18 ired amavis[3678725]: (3678725-03) Passed CLEAN, <group+bounces-1900@domain.tld> -> <user3@domain.tld>, Hits: -, tag=0, tag2=0, kill=0, queued_as: 526A3A20634, L/0/0/0

I want to change this - <group+bounces-1900@domain.tld> to any static address like 'somaddr@domain.tld'.

Thanks

2

Re: How to change Header 'From' for mlmmj?

Why?

----

Buy me a cup of coffee ($5) to support iRedMail:

buy me a cup of coffee

3

Re: How to change Header 'From' for mlmmj?

ZhangHuangbin wrote:

Why?

Because in front of mail server we have SecurityGatewy mail gateway. Which one have licensing 'per users', and when we sent mail to some mailing list, in list of users we have huge number of users like '<group+bounces-1900@domain.tld>', '<group+bounces-1901@domain.tld>', etc . It becomes economically impossilbe

4

Re: How to change Header 'From' for mlmmj?

Interesting, the gateway should consider those "group+xxx@" addresses as the same address because + is the popular address delimiter.
I suggest contact your gateway vendor to figure out a solution.

----

Buy me a cup of coffee ($5) to support iRedMail:

buy me a cup of coffee

5

Re: How to change Header 'From' for mlmmj?

ZhangHuangbin wrote:

Interesting, the gateway should consider those "group+xxx@" addresses as the same address because + is the popular address delimiter.
I suggest contact your gateway vendor to figure out a solution.

We did. Answer was - 'you can merge those adresses, but you should do it manually'. Obviously, manually is not our way. So, now i'm looking for solution how to do it automatically, and first step was to found how to avoid those 'bounce...'. If not possible, then i will try to create something to do that manual job automatically.