Re: [Dovecot] How do I get my mail from fetchmail into dovecot
Message: 3 Date: Wed, 29 Apr 2009 16:53:49 +0300 From: Odhiambo ????? odhiambo@gmail.com Subject: Re: [Dovecot] How do I get my mail from fetchmail into dovecot? To: Dovecot Mailing List dovecot@dovecot.org Message-ID: 991123400904290653g205c603m2e4b511486a69b52@mail.gmail.com Content-Type: text/plain; charset="utf-8"
On Wed, Apr 29, 2009 at 4:46 PM, Michael Steinbeck-Reeves < michael@steinbeck-reeves.uk.com> wrote:
I have dovecot (with squirrel mail etc.) running without any problems but cannot understand how to get e-mail from a pop server into dovecot. I have fetchmail configured to pick up the mail from the pop3 server but don't understand how to get it from there into my dovecot mbox
Where does fetchmail put the e-mails? Point dovecot there with "mail_location =..." then use your favorite MuA to access the e-mail.
That is the problem, fetchmail just forwards it to port 25 (I think) and I need to work out what to put between fetchmail and dovecot in order to get the mail into the correct folders...
And I am just going around in circles on this at the moment. Any hint would be appreciated!
Thanks,
Michael
On Qua, 29 Abr 2009, Michael Steinbeck-Reeves wrote:
That is the problem, fetchmail just forwards it to port 25 (I think) and I need to work out what to put between fetchmail and dovecot in order to get the mail into the correct folders...
A MTA (Mail Tranfer Agent), such as exim, postfix or others.
Though there might be a way to configure fetchmail to store directly
in the mail store, but I'm not sure (I don't use it).
-- Eduardo M KALINOWSKI eduardo@kalinowski.com.br
I have dovecot (with squirrel mail etc.) running without any problems but cannot understand how to get e-mail from a pop server into dovecot. I have fetchmail configured to pick up the mail from the pop3 server but don't understand how to get it from there into my dovecot mbox
configure dovecot-deliver as MDA for fetchmail.
If you use system users, calling "deliver" should be sufficient.
On virtual users, you probably need to pass the correct recipient to deliver.
Anton
Michael Steinbeck-Reeves michael@steinbeck-reeves.uk.com wrote:
[...] That is the problem, fetchmail just forwards it to port 25 (I think) and I need to work out what to put between fetchmail and dovecot in order to get the mail into the correct folders...
And I am just going around in circles on this at the moment. Any hint would be appreciated!
You can use mda option provided in fetchmail as SMTP alternative.
I recommend using procmail as mda in ~/.fetchmailrc e.g.: mda "/usr/bin/procmail -tY -m /home/user/.procmail/account-1.rc" and calling dovecot's deliver inside procmail scripts DELIVER="/usr/lib/dovecot/deliver" DELIVERFLAGS="-e"
:0 w |$DELIVER $DELIVERFLAGS
Using procmail provides nice hook for extra processing e.g.
- spam filtering/tagging
- virus detection
You can make fetchmail use dovecot's deliver direclty in mda option
-- [pl>en: Andrew] Andrzej Adam Filip : anfi@onet.eu Blessed is he who has reached the point of no return and knows it, for he shall enjoy living. -- W. C. Bennett
Andrzej Adam Filip andrzej.filip@gmail.com:
You can use mda option provided in fetchmail as SMTP alternative.
I recommend using procmail as mda in ~/.fetchmailrc e.g.:
Heh... I'm an old procmail user, and was happy to be able to switch back to it from sieve (which I never really got the hang of), when moving from cyrus to dovecot.
But I'm not sure if I'd ever *recommend* it to someone else.
On a side note: the exim default config of debian (and debian derivatives, like Ubuntu), uses procmail for filtering and delivery if it is available, and there is a .procmailrc file in the users' home directories.
Steinar Bang sb@dod.no wrote:
Andrzej Adam Filip andrzej.filip@gmail.com:
You can use mda option provided in fetchmail as SMTP alternative.
I recommend using procmail as mda in ~/.fetchmailrc e.g.:
Heh... I'm an old procmail user, and was happy to be able to switch back to it from sieve (which I never really got the hang of), when moving from cyrus to dovecot.
But I'm not sure if I'd ever *recommend* it to someone else.
On a side note: the exim default config of debian (and debian derivatives, like Ubuntu), uses procmail for filtering and delivery if it is available, and there is a .procmailrc file in the users' home directories.
I use *both* (procmail script as fetchmail's MDA and sieve).
Somehow I prefer to: a) avoid passing messages via local MTA (fetchmail's default) b) avoid calling dovecot's deliver directly from ~/.fetchmailrc
-- [pl>en: Andrew] Andrzej Adam Filip : anfi@onet.eu "They are both businesses - if you have given them enough money, I'm sure they'll do whatever the hell you ask:->" -- David Welton
Am 29.04.2009, 21:31 Uhr, schrieb Andrzej Adam Filip
andrzej.filip@gmail.com:
Michael Steinbeck-Reeves michael@steinbeck-reeves.uk.com wrote:
[...] That is the problem, fetchmail just forwards it to port 25 (I think) and I need to work out what to put between fetchmail and dovecot in order to get the mail into the correct folders...
And I am just going around in circles on this at the moment. Any hint would be appreciated!
You can use mda option provided in fetchmail as SMTP alternative.
I recommend using procmail as mda in ~/.fetchmailrc e.g.: mda "/usr/bin/procmail -tY -m /home/user/.procmail/account-1.rc" and calling dovecot's deliver inside procmail scripts DELIVER="/usr/lib/dovecot/deliver" DELIVERFLAGS="-e"
:0 w |$DELIVER $DELIVERFLAGS
Using procmail provides nice hook for extra processing e.g.
- spam filtering/tagging
- virus detection
You can make fetchmail use dovecot's deliver direclty in mda option
I advise against the use of procmail for fresh installs. Use maildrop
instead. It is maintained, has cleaner code, cleaner interfaces, much
better error handling and an easier-to-read syntax. =>
http://www.courier-mta.org/maildrop/
-- Matthias Andree
participants (6)
-
Andrzej Adam Filip
-
Anton Dollmaier
-
Eduardo M KALINOWSKI
-
Matthias Andree
-
Michael Steinbeck-Reeves
-
Steinar Bang