Mailing list messages missing headers | MDaemon Technologies Community Forum

Mailing list messages missing headers


  • Hello. I use mailing lists to redirect mail to a specific address to multiple recepients. I want to apply content filter rules to them, but they are missing some of the headers related to the sender that I want to use.

    These are the missing headers:

    • X-MDRemoteIP
    • X-MDOrigin-Country

    Is it possible to not have the originial message stripped from the mailing list messages?

    Thanks!

    Dan

     



  • What version of MDaemon are you using?

    Can you share the content filter rules you are wanting to apply to the messages?

    In MDaemon Remote Administration under Main | Mailing List Manager | Settings, do you have the box for "Apply content & spam filters to list mail before cracking individual copies" enabled or disabled?  

    If you disable it, do your rules work?

    Disabling the setting changes when content filter rules are applied to mailing list messages.  When you disable the setting, the rule will be applied after a copy of the mailing list message is created for each recipient.  If you have large mailing lists this will drasticaly increase the amount of processing it takes to apply content filter rules to list messages.  It can also cause existing rules to no longer work as expected.


  • Hi Arron. I am using version 26.0.3. I am wanting to use these macros to add a line to a text log file:

    $HEADER:X-MDRemoteIP$, $HEADER:X-MDOrigin-Country$, $SENDERDOMAIN$

    But those macros produce a blank in my log file.

     "Apply content & spam filters to list mail before cracking ..." is checked.

     

    Dan


  • Arron,

    I unchecked the  "Apply content & spam filters to list mail before cracking ...", and it now works.

    However these two macros now return mailing list values instead of the original sender values.

    $SENDERDOMAIN$ - Returns the domain of the mailing list instead of the domain of the original sender.

    $SENDER$, - Returns the address of the mailing list instead of the address of the original sender.

     

    Is there a way around this?

     

    Dan


  • Try using the X-Envelope-From header.  Replace $SENDER$ with $HEADER:X-Envelope-From$

    It will contain the email address that was passed in the MAIL FROM command of the SMTP Session.  In most cases for list mail, it should be the same email address as was original in the FROM header.

    Getting the sender domain is a little bit harder, but still possible using content filter rules.  I did it with these two rules:

    [Rule005]
    RuleName=Write X-Envelope-From value to New Header
    Enable=Yes
    ThisRuleCondition=Any
    ProcessQueue=BOTH
    Condition01=body|all message|AND|
    Action01=add header|"X-OG-DOMAIN","$HEADER:X-Envelope-From$"
    [Rule006]
    RuleName=Replace value in X-OG-Domain with only the domain of X-Envelope-From
    Enable=Yes
    ThisRuleCondition=All
    ProcessQueue=BOTH
    Condition01=X-OG-DOMAIN|exists|AND|
    Action01=header search and replace|"X-OG-DOMAIN","(.*\@)(.*)","$2","0,1"
     

  • Arron,

    That worked perfectly. Thank you for the help and insight!


Please login to reply to this topic!