Michael Steinbeck-Reeves
2009-Apr-29 18:47 UTC
[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 at gmail.com> > Subject: Re: [Dovecot] How do I get my mail from fetchmail into > dovecot? > To: Dovecot Mailing List <dovecot at dovecot.org> > Message-ID: > <991123400904290653g205c603m2e4b511486a69b52 at mail.gmail.com> > Content-Type: text/plain; charset="utf-8" > > On Wed, Apr 29, 2009 at 4:46 PM, Michael Steinbeck-Reeves < > michael at 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
Eduardo M KALINOWSKI
2009-Apr-29 18:52 UTC
[Dovecot] How do I get my mail from fetchmail into dovecot
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 at kalinowski.com.br
Anton Dollmaier
2009-Apr-29 19:00 UTC
[Dovecot] How do I get my mail from fetchmail into dovecot
> 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 mboxconfigure 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
Andrzej Adam Filip
2009-Apr-29 19:31 UTC
[Dovecot] How do I get my mail from fetchmail into dovecot
Michael Steinbeck-Reeves <michael at 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 at onet.eu Blessed is he who has reached the point of no return and knows it, for he shall enjoy living. -- W. C. Bennett