Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Jun 2008
    Posts
    3

    Default creating auto-bcc rules for OUTgoing emails

    Greetings all,
    first post here, so wish me luck...

    i've got a hosting account using cPanel (account is hosted through a reseller on HostGator), where i need to have all outgoing emails cc'ed or bcc'ed to separate addresses. (eg. user1@domain.com would forward to user.one@otherdomain.com, user2@domain.com would forward user.two@domain.com)

    i had found a tidbit on searching through this forum of:
    if you can access to your exim setting, you can add the text below at your cpanel_exim_system_filter


    if first_delivery
    and ("$h_from:" contains "info@example.com")
    and not ("$h_X-Spam-Checker-Version:" begins "SpamAssassin")
    then
    unseen deliver "sales@example.com"
    endif
    but unfortunately i DON'T have access to the exim setting through this account - i was told i would need a dedicated box (which is out of the question).


    is there another way to do this? maybe through a Perl or CGI module? currently i'm setting up auto-bcc's through their email clients, but that's only good if they don't use webmail or cellphones, etc... so i'd rather have it set up on the server so i know it's guaranteed.
    Any help would be greatly appreciated...

    Kind Regards and TIA!

  2. #2
    Member
    Join Date
    Oct 2005
    Posts
    125

    Default

    Not really because the mail goes directly to Exim from the user, then out of the system to the recipient. There is no way to inject a script.

    Basically, incoming mail is easy to deal with, but outgoing mail isn't something a non-dedicated user can really change.

    As a reseller, you might strongly consider moving to a dedicated server as it allows you to offer full service to your clients.

  3. #3
    Registered User
    Join Date
    Jun 2008
    Posts
    3

    Default

    unfortunately i'm not the reseller, i'm just the web guy that somehow got thrown into figuring this out...

    the site is small, and a dedicated box is expensive, so unfortunately i think it's out of the question...

    but thank you for your response, i will see what else i can figure out.

  4. #4
    Member
    Join Date
    Oct 2005
    Posts
    125

    Default

    There isn't a good way to do this as you don't have the access. The real issue is you don't control any of the process, the mail server nor the client.

    Your best solution would be to take control of part of the process. As you can't really take control of the client, you should try to take control of the mail server.

    If a dedicated is out of the question, then you need to go to something like an exchange server or an MX forwarding type of thing. You need to control something in order to do this. Basically, if you need this, you will need to spend some money to make it happen. Running your own SMTP or exchange server seems like your only option.

  5. #5
    Member
    Join Date
    Oct 2008
    Posts
    8

    Exclamation Auto BCC for the Entire Domain

    Is it possible to have this done for a complete Domain ?
    So that emails from all the Email Addresses for that domain gets BCC'ed To a email Address. ie anything@example.com Bcc'ed TO myaddress@mydomain.com

    Thanks In advance.

  6. #6
    Member
    Join Date
    Oct 2005
    Posts
    125

    Default

    http://wiki.exim.org/FAQ/Miscellaneous/Q5033

    Answer

    The most straightforward way is to set up a system filter, and include a command such as:

    unseen deliver mailbox@whatever.domain

    This sends a copy of every message to mailbox@whatever.domain (unless the message already has that recipient - Exim never does duplicate deliveries). To save only outgoing messages, you need to come up with a definition of what outgoing means. Typically, this might be a check on the sender address and/or on the originating host. Here is an example:

    if $sender_address_domain is mydomain.com and
    ${mask:$sender_host_address/24} is 192.168.124.0/24
    then
    unseen deliver mailbox@whatever.domain
    endif

  7. #7
    Registered User
    Join Date
    Apr 2009
    Posts
    1

    Lightbulb

    pret auto
    Thanks Sera for your guide^^. Best regards

  8. #8
    Member
    Join Date
    Nov 2004
    Posts
    25

    Default

    Quote Originally Posted by Serra View Post
    FAQ/Miscellaneous/Q5033 - Exim Wiki

    Answer

    The most straightforward way is to set up a system filter, and include a command such as:

    unseen deliver mailbox@whatever.domain

    This sends a copy of every message to mailbox@whatever.domain (unless the message already has that recipient - Exim never does duplicate deliveries). To save only outgoing messages, you need to come up with a definition of what outgoing means. Typically, this might be a check on the sender address and/or on the originating host. Here is an example:

    if $sender_address_domain is mydomain.com and
    ${mask:$sender_host_address/24} is 192.168.124.0/24
    then
    unseen deliver mailbox@whatever.domain
    endif
    Hello,

    Where to create this rule in cpanel ?

    Thanks.

Similar Threads & Tags
Similar threads

  1. All postmaster@ emails are BCC'd to root?
    By robb3369 in forum E-mail Discussions
    Replies: 1
    Last Post: 04-24-2008, 02:34 PM
  2. BCC aller Emails eines Accounts / Mailadresse?
    By ezztro in forum Diskussion auf Deutsch
    Replies: 4
    Last Post: 03-10-2008, 09:24 AM
  3. Replies: 1
    Last Post: 06-19-2007, 03:17 PM
  4. Auto-limiting outgoing email via localhost/PHP
    By brianoz in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 08-19-2006, 09:50 AM
  5. Filter rules and bouncing emails
    By web-rover in forum New User Questions
    Replies: 6
    Last Post: 06-29-2004, 10:45 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube