Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

[exim] subject rewrite with exim.conf

Discussion in 'General Discussion' started by netlook, Sep 7, 2006.

  1. netlook

    netlook Well-Known Member

    Joined:
    Mar 25, 2004
    Messages:
    335
    Likes Received:
    0
    Trophy Points:
    166
    Hi

    Is it possible to rewrite e-mail subject by some magican directives put in exim.conf?

    I have to rewrite subject of every mail that is delivered to my server, is it possible???

    Thank you.
     
  2. deftech

    deftech Member

    Joined:
    Jan 11, 2006
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    151
    yes you can in the ACL's section with exiscan syntax.

    many people use it to rewrite the subjects to show they are spam.
     
  3. nadal

    nadal Registered

    Joined:
    Sep 19, 2006
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    151
    Location:
    Italy
    Hi, I have changed exim configuration this way:

    comment the following lines in /etc/exim.conf (or from cpanel exim configurator):

    deny message = Message rejected because $sender_fullhost \
    is blacklisted at $dnslist_domain see $dnslist_text


    and add this:

    warn message = $dnslist_domain EMAIL-DI-SPAM $h_subject:

    Check in your exim conf file wich file file contains the system filter (mine is /etc/antivirus.exim)

    system_filter = ...

    and then add this filter in it:

    if
    "${if def:header_X-ACL-Warn: {there}}" is "there"
    and ("${lookup{${lc:$sender_address}}lsearch*@{/etc/rblwhitelist}{1}{fail}}" is "fail")
    and foranyaddress ${lc:$recipients}("${lookup{${thisaddress}}lsearch*@{/etc/rblwhitelist}{1}{fail}}" is "fail")
    then
    headers remove Subject
    headers add "Subject: $h_X-ACL-Warn:"
    endif

    Remember to check your path for "/etc/rblwhitelist" if it's different on your server exim restart will report an error in the log.

    This should work!
     
    #3 nadal, Sep 26, 2006
    Last edited: Sep 28, 2006
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice