Exim -- Multiple Addresses Delivery (catchall) How To?

anup123

Well-Known Member
Mar 29, 2004
889
1
168
This Planet
Say i send a mail to 3 recepients (not pop accounts) so the mail has to land in catchall account. From there it is retrieved and distributed to individual recepients.

The porblem is that only single copy is sent with

Envelope-To :user1@domian, user2@domain, user3@domain ....

How can multiple copies of the same mail be sent with a unique Envelope-To header for each so that using the Envelope-To, the mail can be distinctly delivered to WebMail accounts.

The issue gets more complicated when it's a combination of To,s CC,s and BCC.

Any help on how to configure Exim to send out multiple copies of the same message with distinct Envelope-To header?

Thanks
Anup
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
34
473
Go on, have a guess
I'm not sure that you can within exim, though you're more likely to find an answer over at http://www.exim.org

What you can do in these situations is one of two ideas:

1. Pipe (|) the email to a perl script that then forwards the mail to individual mailboxes

2. Use a mailing list that distributes mails to its members using the To: field
 

anup123

Well-Known Member
Mar 29, 2004
889
1
168
This Planet
Hi.

I am in a scenario which is something like webumake webmail. The perl script is run every five minutes to retrieve mail from catchall account and distribute to individual webmail accounts (mix of MysqlDB+disk storage).

New to exim so can't do much.
However i get this issue resolved before users complain about the same.

Thnx
Anup
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
34
473
Go on, have a guess
I'm looking into something similar for our product when working with Exim. You can do it with sendmail and .procmail recipes, but the option that is required for Exim to work with .procmail doesn't exist by default.

I'll update the thread when I have more information, but at the moment I don't have a solution that would help :(
 

anup123

Well-Known Member
Mar 29, 2004
889
1
168
This Planet
Hi.

Well i could get over this. It was just by doing a change in the script which logs in to catchall account and sitributes the mail. Instead of a get on Envelope-To just had to change to split_filed :)

It worked out ok and at least all the recepients can receive the mail from one copy. Actually piping th mail was not recommended under high traffic as it could have bogged down the server, though the webmail software had the provision of setting it in pipe mode also.

The only issue which remains is inablity to hide the BCC but that is really a trivial matter as not many users ever go to view the header of the email. The BCC issue is only for this scenario.

Thanks
Anup