Networking Forums

Networking Forums > Computer Networking > Linux Networking > Fetchmail - setup question

Reply
Thread Tools Display Modes

Fetchmail - setup question

 
 
Greg Gailer
Guest
Posts: n/a

 
      04-13-2004, 06:51 AM
Greetings
I have set up fetchmail to retrieve my emails from an external server and
deliver them to my small home network. I have a broadband connection and
have set fetchmail up in an hourly cron job. It works wonderfully well.
However, fetchmail sends an email to my internal user each time it is run. I
cannot find any reference to this in the manual pages and my internal
mailbox is rapidly filling up! Does anyone know of a way to turn this off? I
would be quite satisfied with it only putting an entry in the syslog (which
it is doing) and not sending the emails. Any help is greatly appreciated.

Greg Gailer
(E-Mail Removed)


 
Reply With Quote
 
 
 
 
Maurice Janssen
Guest
Posts: n/a

 
      04-13-2004, 07:00 AM
In comp.os.linux.networking, Greg Gailer wrote:
>Greetings
>I have set up fetchmail to retrieve my emails from an external server and
>deliver them to my small home network. I have a broadband connection and
>have set fetchmail up in an hourly cron job. It works wonderfully well.
>However, fetchmail sends an email to my internal user each time it is run.


It's not fetchmail that is sending those emails, but cron. Any output
from a cron job is 'captured' by cron and sent to the owner of the cron
job.
If you redirect the standard output from fetchmail to /dev/null (by
adding "> /dev/null" to the end of the fetchmail command) no output from
fetchmail is seen by cron and no email will be sent.

--
Maurice mauricej (at) xs4all (dot) nl
 
Reply With Quote
 
Gregory Toomey
Guest
Posts: n/a

 
      04-13-2004, 09:49 AM
Maurice Janssen wrote:

> adding "> /dev/null" to the end of the fetchmail command) no output from
> fetchmail is seen by cron and no email will be sent.



You can also send stderr & stdout to /dev/null by appending 2>&1 . In
addition you can set the shell, email address and default directory for
cron.


SHELL=/bin/bash
MAILTO=(E-Mail Removed)
HOME=/home/gmt/

10 * * * * fetchmail ... >/dev/null 2>&1


gtoomey
 
Reply With Quote
 
Ingo Strauch
Guest
Posts: n/a

 
      04-13-2004, 10:23 AM
On Tue, 13 Apr 2004 16:51:11 +1000, Greg Gailer wrote:
>
> I have set up fetchmail to retrieve my emails from an external server and
> deliver them to my small home network. I have a broadband connection and
> have set fetchmail up in an hourly cron job. It works wonderfully well.
> However, fetchmail sends an email to my internal user each time it is run. I
> cannot find any reference to this in the manual pages and my internal
> mailbox is rapidly filling up! Does anyone know of a way to turn this off? I
> would be quite satisfied with it only putting an entry in the syslog (which
> it is doing) and not sending the emails. Any help is greatly appreciated.


Why not start it in daemon mode via

fetchmail <otheropts> -d 3600

Cheers,
Ingo

--
Ingo Strauch ---- Registered Linux User #227900 (http://counter.li.org/)
http://www.the-one-brack.org/

 
Reply With Quote
 
Keith
Guest
Posts: n/a

 
      04-13-2004, 11:36 AM
A Thousand Penguins Assembled the Message of
(E-Mail Removed) and helped write:

> Greetings
> I have set up fetchmail to retrieve my emails from an external server and
> deliver them to my small home network. I have a broadband connection and
> have set fetchmail up in an hourly cron job. It works wonderfully well.
> However, fetchmail sends an email to my internal user each time it is run. I
> cannot find any reference to this in the manual pages and my internal
> mailbox is rapidly filling up! Does anyone know of a way to turn this off? I
> would be quite satisfied with it only putting an entry in the syslog (which
> it is doing) and not sending the emails. Any help is greatly appreciated.
>
> Greg Gailer
> (E-Mail Removed)
>
>


Cron sends you the email. If you use procmail to process mail
you can kill file the message with

:0:
* ^From:.*cron\ daemon.*
/dev/null

otherwise setup cron not to send the email or have your MUA
delete the message upon receipt.

You can also use
fetchmail -d 3600
to poll your mail provider every 60 minutes.


--
Best Regards, Keith
NW Oregon Radio http://kilowatt-radio.org/
Pax melior est quam iustissimum bellum.
Replace spam.e12b5bf2 with wvi dot com & del _
 
Reply With Quote
 
Antoine EMERIT
Guest
Posts: n/a

 
      04-13-2004, 09:31 PM
Ingo Strauch <(E-Mail Removed)> wrote
news:(E-Mail Removed):
>> wonderfully well. However, fetchmail sends an email to my internal
>> user each time it is run. I cannot find any reference to this in the


I think the mail is comming from the cron daemon.

Trah the output of your cron command :

0 * * * * * root fetchmail .... 2&>1 /dev/null

or set the MAILTO cron parameter to nothing :

MAILTO=
0 * * * * * root fetchmail .... 2&>1 /dev/null

But fetchmail is supposed to run in background without the help of cron :

fetchmail -d <sleep time>

or 'set daemon 300' dans le fichier fetchmailrc.


Regards
 
Reply With Quote
 
Phill Edwards
Guest
Posts: n/a

 
      05-10-2004, 04:37 AM
"Greg Gailer" <(E-Mail Removed)> wrote in message
news:407b8bf2$0$27649$(E-Mail Removed) om.au...
> Greetings
> I have set up fetchmail to retrieve my emails from an external server and
> deliver them to my small home network. I have a broadband connection and
> have set fetchmail up in an hourly cron job. It works wonderfully well.
> However, fetchmail sends an email to my internal user each time it is run.

I
> cannot find any reference to this in the manual pages and my internal
> mailbox is rapidly filling up! Does anyone know of a way to turn this off?

I
> would be quite satisfied with it only putting an entry in the syslog

(which
> it is doing) and not sending the emails. Any help is greatly appreciated.
>
> Greg Gailer
> (E-Mail Removed)


You don't have to run fetchmail form cron. In the fetchmailrc file you can
make it run in daemon mode and tell it how often to poll the mail servers.
Eg:

set daemon 300

makes it run in daemon mode and poll every 5 minutes. No cron required.

Regards,
Phill


 
Reply With Quote
 
Martin
Guest
Posts: n/a

 
      05-12-2004, 01:31 AM
Phill Edwards wrote:
[...]
> You don't have to run fetchmail form cron. In the fetchmailrc file you can
> make it run in daemon mode and tell it how often to poll the mail servers.
> Eg:
>
> set daemon 300
>
> makes it run in daemon mode and poll every 5 minutes. No cron required.



If you run fetchmail as a service, eg: "service fetchmail start", then
you must also edit the /etc/rc.d/init.d/fetchmail script to delete the
"-d nn" on the command line there.

See "man fetchmail" about "-d".

Good luck,
Martin

--
---------- Give a man a fish and you have fed him for today.
- Martin - Teach him how to fish and he won't bother you for weeks!
- 53N 1W - - Anon
----------
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
IP setup question Karl Prust Network Routers 0 11-26-2007 10:02 AM
IP setup question Karl Prust Network Routers 0 11-26-2007 10:00 AM
VPN setup question Mauro Windows Networking 2 11-28-2006 11:47 PM
VPN setup question for XP. Freewheeling Network Routers 7 08-31-2006 02:54 PM
FTP setup question gjb Windows Networking 2 01-20-2004 01:10 AM



1 2 3 4 5 6 7 8 9 10 11