Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I successfully installed and configured Exim4 on my Debian/Squeeze machine, so now I am able to send outgoing emails with a command like this:

exim4 -v recipient@domain.com
From: sender@domain.com
To: recipient@domain.com
Subject: Test email

Body of the email
.

Is there a similar command to RETRIEVE emails into the Maildir folder?

NOTE: The emails I want to retrieve are from another email server on the same network. Typically, I use a regular email client to connect to the server via IMAP and SSL.

share|improve this question
1  
I don't understand the questions. Where do you want to retrieve mails from, and what exactly do you want to do with them? –  Gilles Jan 23 '13 at 22:46
    
@Gilles Updated my question. In case it is still not clear, what I want to do is to retrieve copies of all emails sent to a particular email address (received on another email server) so that I can process the body content for other purposes. –  Spartanblogger Jan 23 '13 at 22:49

1 Answer 1

up vote 3 down vote accepted

While it is quite viable to use exim to send emails, your question reads like you are using the wrong tools for what ever your overall goal is. exim cannot retrieve emails from another server, because exim is a mail transfer agent, cf. RFC 821. Accessing a users mailbox and retrieving email (what you want to do) is a completely different thing than sending and relaying emails (what exim has been developed for). To sync mailboxes you can use for example imapsync or offlineimap.

share|improve this answer
    
That is very informative. Thank you! –  Spartanblogger Jan 23 '13 at 23:33

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.