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.

Automatic download of email

Discussion in 'E-mail Discussions' started by Lyttek, Dec 20, 2005.

  1. Lyttek

    Lyttek Well-Known Member

    Joined:
    Jan 2, 2004
    Messages:
    770
    Likes Received:
    3
    Trophy Points:
    18
    I've been looking for a (Windows) program that will download email without a user being logged on. Basically, what I'm wanting to accomplish is a cheap archiving system that uses MailScanner to catch all incoming and outgoing email and plop it into an account created for that purpose. That part's fine.

    Now I need something that will pull that mail off the server and store it on a Win2003 server, again, without a user logging on and running a mail client.

    :confused:
     
  2. RickG

    RickG Well-Known Member

    Joined:
    Feb 28, 2005
    Messages:
    238
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    North Carolina
    The question is in what format?

    Will it eventually be opened in a standard mail client? You could always download the "raw" mailbox (such as /home/accountname/mail/accountdomain/username/inbox) ... or do you need it readable in some other fashion?
     
  3. Lyttek

    Lyttek Well-Known Member

    Joined:
    Jan 2, 2004
    Messages:
    770
    Likes Received:
    3
    Trophy Points:
    18
    I'm open to all possibilities at this point, as it's the beginning of a project. In fact, I may even remove the "Windows" requirement if it turns out a good enough solution can be presented that can be implemented fairly cheaply on inexpensive hardware.
     
  4. adept2003

    adept2003 Well-Known Member

    Joined:
    Aug 11, 2003
    Messages:
    283
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    ~ "/(extra|special)/data"
    In essence, all you need is to set up a rule that forwards a copy of all emails to another email account. Since the user won't be logging in, then its irrelevent whether the receiving email address is on a windows server, or *nix, isn't it?
     
  5. Lyttek

    Lyttek Well-Known Member

    Joined:
    Jan 2, 2004
    Messages:
    770
    Likes Received:
    3
    Trophy Points:
    18
    True enough. But what I want to accomplish is to store the mail on the client's file server. I'd rather not setup a mail server there just for that :)

    But essentially, yes, that's what I'm doing... forwarding all emails to another account. It's pulling them from that account onto their local server that I'm tackling.
     
  6. Lyttek

    Lyttek Well-Known Member

    Joined:
    Jan 2, 2004
    Messages:
    770
    Likes Received:
    3
    Trophy Points:
    18
    Some fashion that makes it accessible, which leaves it pretty open. I like the capabilities that desktop search tools (such as Google's) present in searching mail, so a format that's compatible with that would be great.
     
  7. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    I can't remember whether MailScanner Archive stores in maildir or mbox format. IIRC and it uses mbox, then you should just need to find a windows client that understand mbox and you should be able to just ftp the file up. Alternatively, you could append all the email from the mbox file into an existing inbox on the server and retrieve it as normal through that account.
     
  8. Lyttek

    Lyttek Well-Known Member

    Joined:
    Jan 2, 2004
    Messages:
    770
    Likes Received:
    3
    Trophy Points:
    18
    I think what I'll end up doing is using MailScanner (installed by configserver.com, thanks Chirpy!) to copy incoming/outgoing email to another account, then using rsync to pull those messages down to a local server for actual storage.

    What I'm not sure about now is the following from the MS config:

    # Space-separated list of any combination of
    # 1. email addresses to which mail should be forwarded,
    # 2. directory names where you want mail to be stored,
    # 3. file names (they must already exist!) to which mail will be appended
    # in "mbox" format suitable for most Unix mail systems.

    If I choose option 2, what format are they stored in? Does the format depend on whether or not MBOX or MAILDIR is used?
     
  9. Lyttek

    Lyttek Well-Known Member

    Joined:
    Jan 2, 2004
    Messages:
    770
    Likes Received:
    3
    Trophy Points:
    18
    Ok, if you choose option 2, each message is stored as two files, one for headers, the other for data. So I guess that's considered a raw format, since it's not maildir or mbox?

    And FYI, if you use the _DATE_ tag *anywhere* in the rules file, it forces the archive to use the above format, and places them in a directory named to the current date in yyyymmdd format.

    It would have been more useful if the _DATE_ would work as just supplying the date, so you could name a file yyyymmdd.mbox or whatever. No joy there.

    Also, make sure permissions are set correctly.
     
Loading...

Share This Page