Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 16
  1. #1
    Member
    Join Date
    Nov 2007
    Posts
    861

    Arrow Incoming/Outgoing email copy

    Hoping someone can help me for this


    I need all incoming and outgoing mail forwarding to any other gmail account

    How to do outgoing fw. ?

    we are using

    cPanel 11.24.4-S34960
    WHM 11.24.2 - X 3.9
    CENTOS 5.3 i686 standard

  2. #2
    Member
    Join Date
    Nov 2008
    Posts
    76

    Default

    It is not possible to forward outgoing mails from cpanel.

    You can use the option forward options under your cpanel>>mail>>Forwarders to froward the incoming mails.
    Regards,
    Jay J,
    HostingZoom | ResellerZoom |
    modVPS

  3. #3
    Member
    Join Date
    Jan 2004
    Posts
    755

    Default

    Not entirely accurate...

    From within cPanel, no. But it's fairly simple to do...

    A) your email program's outgoing mail server must use your cPanel server. If you use your ISP mail server to send mail, you can't do any processing on it.

    B) configure your server to copy all email to the third account. There are several ways to do this, but the easiest to maintain is by installing MailScanner.

    I highly recommend using the mailscanner stuff that configserver.com provides.

    In any case, if you go this route, it's as simple as using the mailscanner 'archive' features to capture the email and forward it thusly:

    in the 'archive.rules' file:

    FromOrTo: *origin-domain.com address@sent-to-domain.com

    This grabs email that is addressed From or To any address of origin-domain.com and sends it to address@sent-to-domain.com

  4. #4
    Member
    Join Date
    Nov 2007
    Posts
    861

    Arrow

    you mean this is allowing only from email program's not into webmail right ??

  5. #5
    Member
    Join Date
    Jan 2004
    Posts
    755

    Default

    If you set this up and use webmail, it will also capture those outgoing messages.

  6. #6
    Member
    Join Date
    May 2007
    Posts
    114

    Default

    Quote Originally Posted by Lyttek View Post
    B) configure your server to copy all email to the third account. There are several ways to do this, but the easiest to maintain is by installing MailScanner.

    I highly recommend using the mailscanner stuff that configserver.com provides.

    In any case, if you go this route, it's as simple as using the mailscanner 'archive' features to capture the email and forward it thusly:

    in the 'archive.rules' file:

    FromOrTo: *origin-domain.com address@sent-to-domain.com

    This grabs email that is addressed From or To any address of origin-domain.com and sends it to address@sent-to-domain.com
    Brilliant! Thanks.

    I have been using configserver's Mailscanner for two plus years without ever realizing it had this capability.
    Last edited by meeven; 04-22-2009 at 10:14 AM. Reason: addition

  7. #7
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jun 2006
    Posts
    18

    Default

    Hi,

    I read a post from http://forums.cpanel.net/f43/want-sa...er-108285.html

    And I tested it and it is working , maybe you could have a read and test it out

  8. #8
    Member
    Join Date
    Jan 2004
    Posts
    755

    Default

    That method will work too.... it's a lot more work, though.

  9. #9
    Member
    Join Date
    Nov 2007
    Posts
    861

    Arrow

    Quote Originally Posted by hploh View Post
    Hi,

    I read a post from http://forums.cpanel.net/f43/want-sa...er-108285.html

    And I tested it and it is working , maybe you could have a read and test it out
    i have seen that thread

    but i think that script is made only for domain.com

    in my server there are 400 account created & more than 1000 email accounts

    what about other domains & email accounts

    in my server there are more than 150 domains are hosted e.g mydomain.com , mydomain.org , testdomain.com , testing.com

    In mydomain.com there 5 email accounts
    test1@mydomain.com
    test2@mydomain.com
    test3@mydomain.com
    test4@mydomain.com
    test5@mydomain.com

    all email which are sent from those ids must be copy to monitor@mydomain.com
    test1@testdomain.com
    test2@testdomain.com
    test3@testdomain.com
    test4@testdomain.com
    test5@testdomain.com

    all email which are sent from those ids must be copy to Owner@testmydomain.com

  10. #10
    Member
    Join Date
    Nov 2007
    Posts
    861

    Arrow

    Quote Originally Posted by Lyttek View Post
    That method will work too.... it's a lot more work, though.
    thanks for your bring attention here

  11. #11
    Member
    Join Date
    Aug 2004
    Posts
    174

    Default

    Where do I find this archive.rules file? I have mailscanner updated and cannot find it anywhere

    Regards

  12. #12
    Member
    Join Date
    Jan 2004
    Posts
    755

    Default

    on my system (centos, but should be true elsewhere I think):

    /usr/mailscanner/etc/rules/archive.rules

    Having said that, you can set where rules are stored by modifying the mailscanner configuration file. I HIGHLY recommend getting the MailScanner Front End from ConfigServer.com

  13. #13
    Member
    Join Date
    Aug 2004
    Posts
    174

    Default

    I only have this archives:

    [root@server1 rules]# ls
    bounce.rules filename.rules.rules max.message.size.rules spam.action.rules spamhigh.action.rules spam.scanning.rules spam.whitelist.rules virus.scanning.rules
    EXAMPLES filetype.rules.rules README spam.blacklist.rules spamhigh.score.rules spam.score.rules virus.delivery.rules

    I have the most recent version of mailscanner and they can be viewed on the GUI in WHM thats why I asked. Then which file must be modified?

    Regards

  14. #14
    Member
    Join Date
    Jan 2004
    Posts
    755

    Default

    archive.rules will be the filename...

    Is it enabled in the config? Have you verified the path for the archive.rules file in the config? It's possible to set a different path for each rule file.

    It follows the same internal structure as the other files, such that:

    Code:
    FromOrTo: *domain.com address@otherdomain.com
    FromOrTo: default no
    Will send any email in/out of domain.com to address@otherdomain.com

  15. #15
    Member
    Join Date
    Aug 2004
    Posts
    174

    Default

    Yes I do not have that file under:

    /usr/mailscanner/etc/rules

    or anywhere on my server, as I stated I am using the latest version of configserver mailscanner with the front end attached to cpanel =o(

    Maybe this file is depreciated in later versions

Similar Threads & Tags
Similar threads

  1. Monitor All Incoming/Outgoing Email
    By viustas in forum E-mail Discussions
    Replies: 2
    Last Post: 02-06-2010, 07:32 AM
  2. Copy all incoming email
    By rushman in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 02-01-2007, 07:08 AM
  3. Incoming and Outgoing Email does not work after Cpanel Update
    By rqsweat in forum cPanel and WHM Discussions
    Replies: 11
    Last Post: 07-04-2005, 12:34 PM
  4. Replies: 18
    Last Post: 05-31-2004, 04:46 PM
  5. Replies: 8
    Last Post: 08-22-2003, 03:41 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube