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!

Mail filters and parked domains

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

  1. myplacedk

    myplacedk Member

    Oct 16, 2003
    Likes Received:
    Trophy Points:
    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/ > /etc/vfilters/

    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

    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.

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