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.

Mail filters and parked domains

Discussion in 'E-mail Discussions' started by myplacedk, Jun 11, 2004.

  1. myplacedk

    myplacedk Member

    Joined:
    Oct 16, 2003
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    I need all mails to be handled by a script, and then delivered to the mailbox.
    I've done that with two filters. One for running the script, and one for doing the actual delivery. (The first filter cancels delivery, so I must recreate that.)

    This works fine, except for parked domains. The filters are not applied. I couldn't find any way to edit mail filters for parked domains in cPanel, so I tried manually copying the filters:

    cat /etc/vfilters/maindomain.com > /etc/vfilters/parkedcomain.com

    It worked, but now the script is executed twice!

    The second execution works as expected, but the first one thinks that the mail was sent to the main domain. The environment variable DOMAIN is set to maindomain.com.

    Any advise on what to do next? Of couse I want to avoid the first execution, or at least have a way to check it in the script, so it can cancel itself.
     
Loading...

Share This Page