Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Oct 2004
    Posts
    6

    Default Forwarding all messages in mailbox?

    I have many mailboxes set up on an account and they're getting a lot of emails and I need to forward all of them to a single person. I don't want to log into each mailbox and forward each one manually so is there an easier way? Once the emails are forwarded I want to close each mailbox. I don't suppose closing the mailbox automatically copies mail into the default account? I can't find anything in the reseller control panel either!

    I'm using WHM 9.9.3 cPanel 9.9.6-C9.

    Thanks.

  2. #2
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    You can reprocess an inbox from a Mail account and forward it elsewhere using:


    cd home/username/mail/domain.com/username
    cp -a inbox inbox.for
    cat /dev/null > inbox
    cat inbox.for | formail -s /usr/sbin/sendmail an@other.com
    rm -f inbox.for
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  3. #3
    Member
    Join Date
    Oct 2004
    Posts
    6

    Default

    Unfortunately I don't have direct access to the server. I'm basically working through cPanel.

  4. #4
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Well, you could create a shell script with the above commands in, upload it and then write a perl script to run the shell script, upload it then run the perl script
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

Similar Threads & Tags
Similar threads

  1. Forwarding to default mailbox
    By Bdzzld in forum cPanel and WHM Discussions
    Replies: 16
    Last Post: 07-20-2008, 12:34 PM
  2. Delivering mail to mailbox AND forwarding it?
    By zimmerru in forum E-mail Discussions
    Replies: 5
    Last Post: 06-04-2007, 11:19 AM
  3. Forwarding w/o leaving a copy - keep mailbox
    By PoBoy in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 11-15-2006, 03:38 PM
  4. Shouldn't Forwarding Stop when mailbox is full?
    By anup123 in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 12-14-2005, 11:04 PM
  5. Reject messages (not bouncing) when mailbox full
    By mfragoso in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 02-21-2005, 12:02 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube