Gossamer Forum
Home : Products : Gossamer Mail : Discussion :

Exim4.X -- GMail -- Multiple Recepients Delivery

Quote Reply
Exim4.X -- GMail -- Multiple Recepients Delivery
Hi.

While sending mail from one GM Domain to Multiple recipients on another GM domain (local delivery), the following is the example of header (part of it) with only one mail going out instead of multiple copies:

To: demo1@gmdomain, demo2@gmdomain
Cc: demo3@gmdomain
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Message-Id: <E1BALOu-0005kU-Uk@servername>
Delivery-Date: Mon, 05 Apr 2004 09:38:00 +0530
Envelope-To: demo3@gmdomain, demo2@gmdomain, demo1@gmdomain

On Manually running the incoming.pl (which has the Envelope-To included), it is found that the mail is only delivered to demo3@gmdomain and not delivered to others (As in this scenario for local delivery, MTA sends out only one copy of the mail).

What changes are needed so that the mail is delivered to all the accounts, instead of just the first one from the Envelope-To.

TIA
Anup

Last edited by:

Alex: Apr 6, 2004, 4:02 PM
Quote Reply
Re: [anup123] Exim4.X -- GMail -- Multiple Recepients Delivery In reply to
Searched a lot on forums and other resources, but could not find the way to have Exim deliver multiple copies of the same mail with distinct Envelope-To (for the users on the same domain) for localdomains. In fact someone from webumake answered to a post on cpanel forum that it is not possible for Exim to do that.

The problem is only on localdomains. If any of GM domain is remote then it does send out multiple copies of mails.

Any clue?

TIA
Anup
Quote Reply
Re: [anup123] Exim4.X -- GMail -- Multiple Recepients Delivery In reply to
This as per Exim's docs is a consequence of built in de-duplication feature, which it claims has it's own advantage. Did the following to have at least three recepients recieve the message with only single copy of message in catchall account.

Added To And Cc to the Header in incoming.pl

Then Sent A Message With One Recipient Each In To, Cc and BCC (on the same domain)
execulted incoming.pl -V

All Three Got The Message even though there is only single copy of the message in the catchall account. However, if multiple To's And Cc's and Bcc's were added only the First address in each recd the message.

Accordingly, for Exim with localdomains (ie X --> GM on same server where X could or could not be a GM domain) how could following be achieved thru incoming.pl

Test For Occurrence Of Multiple Addresses In Envelope-To Header and Loop thru the list to deliver the message.

This would temporarily solve the problem, though the next one that would be there is that BCC is not hidden from Non BCC recepients but that could be ignored as not many view the header and it's only in the header that the said info is revealed.

The Envelop-To is constructed in LIFO manner. So Take the following example

To : x11, x12, x13
Cc : y11, y12, y13
Bcc : z11, z12, z13

Then the Envelope-To Header (Only single copy of the message is there) looks like this

Envelope-To : z13, z12, z11, y13, y12, y11, x13, x12, x11

Any suggestions as to what code needs to be added to incoming.pl?

And the next question is that with sendmail wrapper used, where exactly can i set the sendmail -t option if needed.

TIA
Anup
Quote Reply
Re: [anup123] Exim4.X -- GMail -- Multiple Recepients Delivery In reply to
It's actually an easy fix. All you need to change is:
Code:
$head->get('Envelope-To')
to:
Code:
$head->split_field('Envelope-To')

Adrian
Quote Reply
Re: [brewt] Exim4.X -- GMail -- Multiple Recepients Delivery In reply to
Thnx.
It worked.

Path to sendmail wrapper does not take any switches (GM Admin)
Where extactly in GM can i put the -t switch or is it included by default.

Thnx
Anup
Quote Reply
Re: [anup123] Exim4.X -- GMail -- Multiple Recepients Delivery In reply to
It is handled by GT::Mail automatically.

Adrian