Results 1 to 7 of 7
  1. #1

    mail filter problem on cpanel

    hi all

    today i try to make a email filter using cpanel options but dont work this its the code

    Code:
    if first_delivery
    and ( ("$header_from:" contains "[email protected]")
    or ("$header_from:" contains "[email protected]")
    or ("$header_from:" contains "[email protected]")
    )
    then
    unseen deliver "[email protected]"
    endif
    and Also

    Code:
    if
     $header_from: contains "[email protected]"
    then
     deliver "[email protected]"
    endif
    the main idea its all outgoing mail from [email protected] must be
    send a copy (bcc) to [email protected]

    any idea ?
    Last edited by devilsoulblack; 04-11-2008 at 12:47 AM.
    { No HopE & No FeaR }
    Be part of the change, because We are the change..

  2. #2
    Join Date
    Sep 2002
    Location
    Top Secret
    Posts
    11,686
    I'm not sure about 'filters', but you can just use a forwarder and give the person an email address that will go to both accounts.

    Filters are more designed for catching and addressing spam
    WHMCS Guru - WHMCS addons, management, support and more.
    WHMCS Notifications Extended - Add slack, hipchat, SMS, pushover to WHMCS !!
    Always looking for Linux, WHMCS, Support Desk work. PM for details

  3. #3

  4. #4
    Join Date
    Sep 2002
    Location
    Top Secret
    Posts
    11,686
    Which would be why it doesn't work, unless I'm misunderstanding things here.

    The way I understand things is that you're trying to get mail your users send out through the server to automatically filter to another user on your domain. If that's wrong, then that's wrong, and I'm misunderstanding things.

    The problem with this is that 'filters' are only applied to incoming messages as they should be. Otherwise, you're doing a lot more damage to the server load wise.
    WHMCS Guru - WHMCS addons, management, support and more.
    WHMCS Notifications Extended - Add slack, hipchat, SMS, pushover to WHMCS !!
    Always looking for Linux, WHMCS, Support Desk work. PM for details

  5. #5
    Quote Originally Posted by linux-tech View Post
    Which would be why it doesn't work, unless I'm misunderstanding things here.

    The way I understand things is that you're trying to get mail your users send out through the server to automatically filter to another user on your domain. If that's wrong, then that's wrong, and I'm misunderstanding things.

    The problem with this is that 'filters' are only applied to incoming messages as they should be. Otherwise, you're doing a lot more damage to the server load wise.
    ok you suggest make that using forwarding, but i dont have idea how make that using cpanel mail opcion, i understand forwarding if for incomming mail, any suggesting ?
    { No HopE & No FeaR }
    Be part of the change, because We are the change..

  6. #6
    Join Date
    Sep 2002
    Location
    Top Secret
    Posts
    11,686
    The prior suggestion, forget that, it won't work either.
    Forwarders and filters are for incoming mail. I was under the assumption you wanted this addressed for that, not for outgoing mail (ie: mail you send from the server).

    AFAIK there's no 'automatic' way to do what you're trying to do, it'll have to be done manually.
    WHMCS Guru - WHMCS addons, management, support and more.
    WHMCS Notifications Extended - Add slack, hipchat, SMS, pushover to WHMCS !!
    Always looking for Linux, WHMCS, Support Desk work. PM for details

  7. #7
    mmmm ok thanks for suggestion
    { No HopE & No FeaR }
    Be part of the change, because We are the change..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •