The Community Forums

Interact with an entire community of cPanel & WHM users.
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Forwardin email without saving on server

Discussion in 'E-mail Discussions' started by desi6n, Jun 5, 2004.

  1. desi6n

    desi6n Member

    Joined:
    Apr 15, 2004
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    Hi Folks,

    Is there a way to forward email to another account on another server and not have the email saved on the original server?

    All my clients emails are forwarded to a different location but the mail is still saved on my server and starts taking up a lot of room. Is there anyway to automatically delete this mail after a set period of time. or once it is forwarded not to save a copy on the server?

    Thanks
     
  2. Bruce

    Bruce Well-Known Member

    Joined:
    Oct 4, 2001
    Messages:
    147
    Likes Received:
    0
    Trophy Points:
    16
    The besy way I have found is to not even create the e-mail account and just setup forwarding so any mail addressed to that name gets forwarded and never saved.
     
  3. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    Correct. Just create forwarders without POP accounts and mail to the addresses being forwarded will only be forwarded. The only mail that will be on the server is anything sent to non-existant accounts if the default account is not blackholed.

    If the default address is set to "blackhole: and there are no POP accounts, there will be no mail on the server.
     
  4. desi6n

    desi6n Member

    Joined:
    Apr 15, 2004
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    Thanks - the problem is that I have accounts with business members who each need their own email account with the business extension (ie johnsmith@hisbusiness.com) and those are forwarded to their personal email accounts. (ie johnsmith123@hotmail.com)
     
  5. icanectc

    icanectc Well-Known Member

    Joined:
    Mar 10, 2003
    Messages:
    344
    Likes Received:
    0
    Trophy Points:
    16
    Squirrel is correct.

    Changing post :)
     
  6. zimu

    zimu Member

    Joined:
    Jun 11, 2004
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    ok so thats simple enough. but what if my clients would like to log onto webmail every once in a while and send emails using their email accounts.

    sure, they can set it up with an alternate outgoing mail server or something but thats a pain.

    is there really no way to delete mail on the server after forwarding?
     
  7. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    Sounds like you want an email forwarder, but also be able to send emails from that address. That's a bit of a problem. To send from an address, it needs to be a POP account, and then of course, comes the problem of having mail on the server.

    You could just set up a POP and forwarder, and set a daily cron job script to delete the inbox file for that email account.
     
  8. desi6n

    desi6n Member

    Joined:
    Apr 15, 2004
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    Any good tutorials for setting up that Cron Job Script?

    Any good tutorials for setting up that Cron Job Script?

    Thanks! :)
     
  9. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,578
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Toronto, Ontario Canada
    cPanel Access Level:
    DataCenter Provider
    Set a cronjob to do the following for each mailbox

    cd /home/username/mail/domain.com/user;cd .>inbox

    That will empty the inbox of any contents for that user.
     
  10. desi6n

    desi6n Member

    Joined:
    Apr 15, 2004
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
Loading...

Share This Page