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.

splitting message with multiple cc/bcc

Discussion in 'E-mail Discussions' started by swwork, Oct 16, 2011.

  1. swwork

    swwork Member

    Joined:
    Jan 22, 2007
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Hello, and Thanks in advance to all
    I'm rather new with this world and I'm trying to obtain a goal with Exim/cPanel

    I would like to split a message sent to multiple cc/bcc into single messages sent to every single recipient so that, in the exim log, I can see every one of them with its own message ID.

    I've gone onto WHM Exim Advanced Editor and created a custom router and transport where I've inserted max_rcpt = 1 that, if I've understood well, should do the work.
    But when I receive the messages (and, of course, in the exim log) they still have the same message ID.
    I've tried to add connection_max_messages = 1 under max_rcpt = 1 but still no luck.

    I'm sure that messages are going through the right transport as I've added a description header and it is in the received message.

    I'm also sure that I'm doing something wrong or I'm missing somehting.

    Can someone help with it ?

    TIA
    Flaviano
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Why precisely are you trying to increase the work for exim by splitting the same message into having different message IDs? This would exponentially increase the work exim has to perform to queue messages.
     
  3. swwork

    swwork Member

    Joined:
    Jan 22, 2007
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Hi,
    the server is used only to manage email for the company,
    we have a warning every X email sent for period od time so to be warned if there is an high flow
    but the system count only the to and not the bc/bcc
    so I would like to use the max_rcpt = 1 to split email sent to a list
    and be sure to have them sent one by one and be counted from our warning system.
    I know that exits a way to manage incoming lists but, following RFC, the value should be not under 100
    max_rcpt is a way we would like to evaluate.

    Thanks
    Flaviano
     
  4. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Please provide the customizations you've made and in what area for us to review them so we can see what you've done specifically.

    For reference, I believe you are trying something along the lines of what is being discussed here on the exim site:

    47. Some common configuration settings

     
  5. swwork

    swwork Member

    Joined:
    Jan 22, 2007
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Hi,
    these are the changes I've made

    1) in Exim Configuration -> Advanced Editor
    in the box under Router Configurations

    ===
    mycheckspam2:
    domains = ! +local_domains
    condition = "${perl{checkspam2}}"
    driver = redirect
    ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8 : 64.94.110.0/24
    allow_fail
    data = "${perl{checkspam2_results}}"

    mytrackbandwidth:
    domains = ! +local_domains
    condition = "${perl{trackbandwidth}}"
    driver = redirect
    ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8 : 64.94.110.0/24
    allow_fail
    verify = false
    data = "${perl{trackbandwidth_results}}"

    mydk_lookuphost:
    driver = dnslookup
    domains = ! +local_domains
    #ignore verisign to prevent waste of bandwidth
    ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8 : 64.94.110.0/24
    require_files = "+/var/cpanel/domain_keys/private/${sender_address_domain}"
    headers_add = "${perl{mailtrapheaders}}"
    transport = my_dk_remote_smtp

    mylookuphost:
    driver = dnslookup
    domains = ! +local_domains
    #ignore verisign to prevent waste of bandwidth
    ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8 : 64.94.110.0/24
    headers_add = "${perl{mailtrapheaders}}"
    transport = my_remote_smtp


    myliteral:
    driver = ipliteral
    domains = ! +local_domains
    headers_add = "${perl{mailtrapheaders}}"
    ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8 : 64.94.110.0/24
    transport = my_remote_smtp
    ===



    1) in Exim Configuration -> Advanced Editor
    in the box under Transports Configurations

    ===
    my_remote_smtp:
    driver = smtp
    max_rcpt = 1
    # headers_add = "X-Descriptions: my_remote_smtp"
    interface = ${lookup{$sender_address_domain}lsearch{/etc/domain_ips}{$value}{$interface_address}}
    helo_data = $smtp_active_hostname

    my_dk_remote_smtp:
    driver = smtp
    max_rcpt = 1
    # headers_add = "X-Descriptions: my_dk_remote_smtp"
    interface = ${lookup{$sender_address_domain}lsearch{/etc/domain_ips}{$value}{$interface_address}}
    helo_data = $smtp_active_hostname
    dk_private_key = "/var/cpanel/domain_keys/private/${dk_domain}"
    dk_canon = nofws
    dk_selector = default
    ===

    the email is correctly sent because, when activated, I could see the added header
    but the message ID, if I send, for example, one "to" and two "bcc" is the same for all three messages
    instead, if I'm correct, I waited for three different message IDs

    Best Regards
    Flaviano
     
  6. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Could you provide an example of an exigrep on one of the sent messages to see how it appears in exim_mainlog?

    So using:

    Code:
    exigrep sender@domain.com /var/log/exim_mainlog
    I'm not certain you will get a different message ID. It appears to indicate it will split the messages during sending but nowhere does it mention the actual message ID will be different in the documentation I read on that site.
     
  7. swwork

    swwork Member

    Joined:
    Jan 22, 2007
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    Thanks for reply,

    here's one of the sent messages (one to and one bc) from the exim_mainlog

    Code:
    2011-10-24 00:17:51 1RI6MY-0006KW-MX <= [email]postmaster@xxxxxxxx.com[/email] H=host149-103-dynamic.14-87-r.retail.telecomitalia.it (c2d6600) [87.14.xxx.xxx] P=esmtpa A=dovecot_login:postmaster@xxxxxxxx.com S=731 id=00a401cc91d1$9a215590$e400000a@c2d6600 T="prova2"
    2011-10-24 00:17:51 cwd=/var/spool/exim 3 args: /usr/sbin/exim -Mc 1RI6MY-0006KW-MX
    2011-10-24 00:17:55 1RI6MY-0006KW-MX DK: message signed using a=rsa-sha1; q=dns; c=nofws; s=default; d=xxxxxxxx.com; h=Received:Message-ID:From:To:Cc:Subject:Date:MIME-Version:Content-Type:Content-Transfer-Encoding:X-Priority:X-MSMail-Priority:X-Mailer:X-MimeOLE:X-Source:X-Source-Args:X-Source-Dir;
    2011-10-24 00:17:55 1RI6MY-0006KW-MX => [email]info@xxxxxxxx.it[/email] R=mydk_lookuphost T=my_dk_remote_smtp H=mail.xxxxxxxx.it [64.14.xxx.xxx] X=TLSv1:AES256-SHA:256
    2011-10-24 00:17:56 1RI6MY-0006KW-MX DK: message signed using a=rsa-sha1; q=dns; c=nofws; s=default; d=xxxxxxxx.com; h=Received:Message-ID:From:To:Cc:Subject:Date:MIME-Version:Content-Type:Content-Transfer-Encoding:X-Priority:X-MSMail-Priority:X-Mailer:X-MimeOLE:X-Source:X-Source-Args:X-Source-Dir;
    2011-10-24 00:17:56 1RI6MY-0006KW-MX => [email]xxxxxxxx@tiscali.it[/email] R=mydk_lookuphost T=my_dk_remote_smtp H=imp-3.mail.tiscali.it [213.205.33.247]
    2011-10-24 00:17:56 1RI6MY-0006KW-MX Completed
    
    Best Regards
    Flaviano
     
  8. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    I have to admit that this is a bit out of my level of expertise to know whether you can get different message IDs.

    Is there any way you can actually post onto the exim mailing list with what you are using and what you are trying to achieve? They have the best mailing list around for people who will actually respond with legitimate help who are experts. The list is via exim.org and you'd simply need to sign up to post to their mailing list. I've never seen any posts there go unanswered. Additionally, they tend to be very nice and helpful to new members who are asking legitimate questions.
     
  9. swwork

    swwork Member

    Joined:
    Jan 22, 2007
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    thanks a lot for your information

    I'll place my question there and will let you know about

    Best Regards
    Flaviano
     
Loading...

Share This Page