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 and marking catchall emails (in the header)

Discussion in 'E-mail Discussions' started by floppyfringe, Aug 27, 2010.

  1. floppyfringe

    floppyfringe Active Member

    Joined:
    Jan 21, 2010
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Ok lets say I have john@example.com and jane@example.com and they're both mailboxes.

    The catchall's goes to john@example.com

    If someone sends an email to sales@example.com I want something along this (haven't checked this script works!!):

    if ($recipients: contains "john@example.com"
    or $recipients: contains "jane@example.com") then
    then
    headers add "X-Mail: Mailbox"
    else
    headers add "X-Mail: Forwarder"
    headers add "X-CA: Yes"
    endif

    The problem is I dont want to have to add mailboxes to tell the script which mailboxes are mailboxes or if they are fowarders/catchall's etc etc

    Anyone with a far better knowledge of exim have any pointers?

    The aim is to have the fact the email was caught was because it was a catch all (and most likely to be junk, but i don't want it in my inbox, with the header info, it can be put into a lower priority folder, leaving my inbox to be stuff sent to john@example.com), and i'd rather not have a catchall mailbox which i'll forget to check.

    Thanks
     
Loading...

Share This Page