The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'General Discussion' started by anup123, Apr 5, 2004.

  1. anup123

    anup123 Well-Known Member

    Joined:
    Mar 29, 2004
    Messages:
    897
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    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
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    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
     
  3. anup123

    anup123 Well-Known Member

    Joined:
    Mar 29, 2004
    Messages:
    897
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    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
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    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 :(
     
  5. anup123

    anup123 Well-Known Member

    Joined:
    Mar 29, 2004
    Messages:
    897
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    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
     
Loading...

Share This Page