Linux Newbie help
 help / color / mirror / Atom feed
* Running fetchmail in daemon mode?
@ 2003-04-24 14:33 Chris Rose
  2003-04-24 16:06 ` Carl
  0 siblings, 1 reply; 8+ messages in thread
From: Chris Rose @ 2003-04-24 14:33 UTC (permalink / raw)
  To: Linux-Newbie (Linux Newbie)

 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

How do i get fetchmail to run in daemon mode?  Is it run on a per-user basis, or is it a system service that then checks all $HOME directories and performs the relevant fetchmalrc commands?

Chris R.
=======
http://offline.pointclark.net/

-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0

iQA/AwUBPqf1ncFBXq9qNmWaEQJzUgCfcBFO+fOnZ+DV5hNgNlYgU4q6ZBMAnio2
RqUZEJO1/CxmaNCHKQ7mtc6e
=M7II
-----END PGP SIGNATURE-----

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Running fetchmail in daemon mode?
  2003-04-24 14:33 Running fetchmail in daemon mode? Chris Rose
@ 2003-04-24 16:06 ` Carl
  2003-04-24 16:32   ` Chris Rose
  0 siblings, 1 reply; 8+ messages in thread
From: Carl @ 2003-04-24 16:06 UTC (permalink / raw)
  To: Linux-Newbie (Linux Newbie)

At 08:33 24/04/2003 -0600, Chris Rose wrote:
> 
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>How do i get fetchmail to run in daemon mode?  Is it run on a per-user basis, or is it a system service that then checks all $HOME directories and performs the relevant fetchmalrc commands?
>
>Chris R.
>=======

To start fetchmail in daemon mode you use the -d switch with an argument greater then 0

i've only used fetchmail in daemon mode when doing multi-drop. i don't know whether you could use multiple
poll statements in the fetchmailrc, each one for a different user and/or mail server when in daemon mode.

I tend not to use daemon mode at all now but run it in cron job. I have had problems when you get
an authentication failure in daemon mode and it gets bunged up until you execute fetchmail again which
wakes it back up. Having a cronjob run every 10 minutes or so will do just as good a job as daemon mode.

I have setup a system on a site that had individual remote mailboxes for each user and maintained a list of usernames
that i would get mail for. I parsed over the list and tweaked my standard fetchmailrc with command line options
(username, password, server etc). This is not too friendly on a big site though.

Reading the fetchmail faq will give you some of the pro's and con's of the different setup types.

Regards
Carl
--

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: Running fetchmail in daemon mode?
  2003-04-24 16:06 ` Carl
@ 2003-04-24 16:32   ` Chris Rose
  2003-04-24 18:07     ` Haines Brown
  0 siblings, 1 reply; 8+ messages in thread
From: Chris Rose @ 2003-04-24 16:32 UTC (permalink / raw)
  To: 'Carl', 'Linux-Newbie (Linux Newbie)'

 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The issue that i run into with the cron job is twofold:

One:  I get duplicate messages.  Right now, i'm passing mail to postfix-maildrop(Maildir/)-courierIMAP, and i get as many as 10 copies - already marked as read - of mail messages that have been sitting there a while.

Two:  Fetchmail, when i run it from the command line, gives me a console message:
fetchmail: interface option is only supported under Linux (without IPv6) and FreeBSD

This message gets mailed to me every time that fetchmail runs, which you can imagine isn't too helpful :/

Can anyone suggest a way to resolve these issues?

Chris R.
=======
http://offline.pointclark.net/

- -----Original Message-----
From: linux-newbie-owner@vger.kernel.org [mailto:linux-newbie-owner@vger.kernel.org] On Behalf Of Carl
Sent: April 24, 2003 10:07 AM
To: Linux-Newbie (Linux Newbie)
Subject: Re: Running fetchmail in daemon mode?


At 08:33 24/04/2003 -0600, Chris Rose wrote:
> 
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>How do i get fetchmail to run in daemon mode?  Is it run on a per-user basis, or is it a system service that then checks all $HOME directories and performs the relevant fetchmalrc commands?
>
>Chris R.
>=======

To start fetchmail in daemon mode you use the -d switch with an argument greater then 0

i've only used fetchmail in daemon mode when doing multi-drop. i don't know whether you could use multiple
poll statements in the fetchmailrc, each one for a different user and/or mail server when in daemon mode.

I tend not to use daemon mode at all now but run it in cron job. I have had problems when you get
an authentication failure in daemon mode and it gets bunged up until you execute fetchmail again which
wakes it back up. Having a cronjob run every 10 minutes or so will do just as good a job as daemon mode.

I have setup a system on a site that had individual remote mailboxes for each user and maintained a list of usernames
that i would get mail for. I parsed over the list and tweaked my standard fetchmailrc with command line options
(username, password, server etc). This is not too friendly on a big site though.

Reading the fetchmail faq will give you some of the pro's and con's of the different setup types.

Regards
Carl
- --

- -
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0

iQA/AwUBPqgRucFBXq9qNmWaEQKhYwCfQbDiERgoNEEvXrXDz6qmxToNCWIAoMeY
ToxW5vFe2IEgkua3rNHfi9HM
=WTGh
-----END PGP SIGNATURE-----

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Running fetchmail in daemon mode?
  2003-04-24 16:32   ` Chris Rose
@ 2003-04-24 18:07     ` Haines Brown
  2003-04-24 21:07       ` Chris Rose
  0 siblings, 1 reply; 8+ messages in thread
From: Haines Brown @ 2003-04-24 18:07 UTC (permalink / raw)
  To: offline; +Cc: carl, linux-newbie

> The issue that i run into with the cron job is twofold:
> 
> One: I get duplicate messages.  Right now, i'm passing mail to
> postfix-maildrop(Maildir/)-courierIMAP, and i get as many as 10
> copies - already marked as read - of mail messages that have been
> sitting there a while.
> 
> Two: Fetchmail, when i run it from the command line, gives me a
> console message: fetchmail: interface option is only supported under
> Linux (without IPv6) and FreeBSD
> 
> This message gets mailed to me every time that fetchmail runs, which
> you can imagine isn't too helpful :/
> 
> Can anyone suggest a way to resolve these issues?

Chris,

I'm a bit unclear about your message, for you say you have two
problems with a cron job, and then #2 is running it from command line.

In any case, I don't have either problem. I run fetchmail-5.9.0-16
under RH8.0.

In my cron file I have:

  # every hour:
  0 */1 * * * fetchmail

In my ~/.fetchmailrc:

  # This sets last resort mail recipient
  set postmaster "postmaster"

  poll pop.xxx.com 
  proto POP3

  user "xxx@xxx" 
  password "xxx" 

  # User options to screen out big messages using a fetchmail bug
  limit 50000	
  flush

When I run fetchmail from a command line, the only feedback I get is
its report that it is reading message and a new mail report. 

Haines Brown


-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: Running fetchmail in daemon mode?
  2003-04-24 18:07     ` Haines Brown
@ 2003-04-24 21:07       ` Chris Rose
  2003-04-24 23:56         ` Bob Swift
  0 siblings, 1 reply; 8+ messages in thread
From: Chris Rose @ 2003-04-24 21:07 UTC (permalink / raw)
  To: brownh; +Cc: linux-newbie

 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Well, i get that command line result no matter whether i run fetchmail via the command line or via cron.

My cron command looks like this:
0,15,30,45 * * * * /usr/bin/fetchmail -s

My fetchmailrc reads:
defaults
poll pop3.server.net
        proto pop3
        interface eth0/192.168.1.50/255.255.255.0
        user "<username>"
        pass "mypassword"
        is <username>
        keep

Chris R.
=======
http://offline.pointclark.net/

- -----Original Message-----
From: linux-newbie-owner@vger.kernel.org [mailto:linux-newbie-owner@vger.kernel.org] On Behalf Of Haines Brown
Sent: April 24, 2003 12:08 PM
To: offline@shaw.ca
Cc: carl@anexia.co.uk; linux-newbie@vger.kernel.org
Subject: Re: Running fetchmail in daemon mode?


> The issue that i run into with the cron job is twofold:
> 
> One: I get duplicate messages.  Right now, i'm passing mail to
> postfix-maildrop(Maildir/)-courierIMAP, and i get as many as 10
> copies - already marked as read - of mail messages that have been
> sitting there a while.
> 
> Two: Fetchmail, when i run it from the command line, gives me a
> console message: fetchmail: interface option is only supported under
> Linux (without IPv6) and FreeBSD
> 
> This message gets mailed to me every time that fetchmail runs, which
> you can imagine isn't too helpful :/
> 
> Can anyone suggest a way to resolve these issues?

Chris,

I'm a bit unclear about your message, for you say you have two
problems with a cron job, and then #2 is running it from command line.

In any case, I don't have either problem. I run fetchmail-5.9.0-16
under RH8.0.

In my cron file I have:

  # every hour:
  0 */1 * * * fetchmail

In my ~/.fetchmailrc:

  # This sets last resort mail recipient
  set postmaster "postmaster"

  poll pop.xxx.com 
  proto POP3

  user "xxx@xxx" 
  password "xxx" 

  # User options to screen out big messages using a fetchmail bug
  limit 50000	
  flush

When I run fetchmail from a command line, the only feedback I get is
its report that it is reading message and a new mail report. 

Haines Brown


- -
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0

iQA/AwUBPqhSFcFBXq9qNmWaEQJ+LQCfXN/+MzCbsA2DDgam7d48d69M0ywAoNmj
8/psXV4wQF+BKD5jqgSu80vz
=IZKF
-----END PGP SIGNATURE-----

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Running fetchmail in daemon mode?
  2003-04-24 21:07       ` Chris Rose
@ 2003-04-24 23:56         ` Bob Swift
  2003-04-25  8:34           ` Carl
  0 siblings, 1 reply; 8+ messages in thread
From: Bob Swift @ 2003-04-24 23:56 UTC (permalink / raw)
  To: Chris Rose, linux-newbie list

On Thursday 24 April 2003 15:07, Chris Rose wrote:

> My cron command looks like this:
> 0,15,30,45 * * * * /usr/bin/fetchmail -s

Looks okay to me...

> My fetchmailrc reads:
> defaults
> poll pop3.server.net
>         proto pop3
>         interface eth0/192.168.1.50/255.255.255.0
>         user "<username>"
>         pass "mypassword"
>         is <username>
>         keep

I'm guessing the "keep" option is what's causing your duplicate messages.  Try 
removing this and see if that helps.

I would also suggest removing the "interface" option unless you *really* need 
it.  Judging from the error message you're getting when running it from the 
command line, my guess would be that it's not doing anything for you anyway.

For what it's worth, I run fetchmail in daemon mode here, picking up mail from 
the 6 accounts I use, and have occasionally (about once a year) run into the 
"hanging" problem that someone else mentioned.  It hasn't bothered me enough 
(yet) to change it to a cron job.  <grin>

-- 
Bob Swift

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Running fetchmail in daemon mode?
  2003-04-24 23:56         ` Bob Swift
@ 2003-04-25  8:34           ` Carl
  2003-04-25 15:04             ` Bob Swift
  0 siblings, 1 reply; 8+ messages in thread
From: Carl @ 2003-04-25  8:34 UTC (permalink / raw)
  To: linux-newbie list

At 17:56 24/04/2003 -0600, Bob Swift wrote:
>On Thursday 24 April 2003 15:07, Chris Rose wrote:
>
>
>For what it's worth, I run fetchmail in daemon mode here, picking up mail from 
>the 6 accounts I use, and have occasionally (about once a year) run into the 
>"hanging" problem that someone else mentioned.  It hasn't bothered me enough 
>(yet) to change it to a cron job.  <grin>
>

I should add that the hanging problem is normally caused by an over worked pop3 server.
The ISP in question has seen it's pop3 server service drop dramatically and it gives out lots
of auth fails - server too busy messages.

Regards
Carl
--

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Running fetchmail in daemon mode?
  2003-04-25  8:34           ` Carl
@ 2003-04-25 15:04             ` Bob Swift
  0 siblings, 0 replies; 8+ messages in thread
From: Bob Swift @ 2003-04-25 15:04 UTC (permalink / raw)
  To: linux-newbie list

On Friday 25 April 2003 02:34, Carl wrote:

> I should add that the hanging problem is normally caused by an over worked
> pop3 server. The ISP in question has seen it's pop3 server service drop
> dramatically and it gives out lots of auth fails - server too busy
> messages.

And I should mention that even though I haven't run in to the problem in any 
significant fashion yet, your point is well taken and will serve to make the 
process just a little bit more "bulletproof".  It is definitely on my "to do" 
list now, just not quite at the top.  My available Linux time at the moment 
is pretty much consumed with confirming system security and putting processes 
in place with an aim to maintaining that security (reviewing all firewall 
settings, doing some portscan testing, etc.)

I'm currently looking at alternatives to Samba for being able to access files 
on the Windows machines.  Using ssh and sftp works well for getting to the 
files on the Linux boxes, but I'm still using Samba to get to the Windows 
machines' files (and some printers).
-- 
Bob Swift

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2003-04-25 15:04 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-24 14:33 Running fetchmail in daemon mode? Chris Rose
2003-04-24 16:06 ` Carl
2003-04-24 16:32   ` Chris Rose
2003-04-24 18:07     ` Haines Brown
2003-04-24 21:07       ` Chris Rose
2003-04-24 23:56         ` Bob Swift
2003-04-25  8:34           ` Carl
2003-04-25 15:04             ` Bob Swift

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox