Re: Mailserver wie?

From: Christoph Sold <cs(at)cheasy.de>
Date: Thu, 25 Dec 2003 21:47:03 +0100

On Tuesday 23 December 2003 01:15, Peter Ross wrote:
> On Mon, 22 Dec 2003, Carsten Jambroszyk wrote:
> > Hi Leute,
> > wie lässt sich das realisieren das mein Gateway meine Mails von
> > meinem Internetanbieter permanent abholt, sodass ich die Mails
> > dann lokal vom Gateway abholen und
>
> meinrechner > crontab -l
> 0,5,10,15,20,25,30,35,40,45,50,55 * * * * \
> /usr/local/bin/fetchmail -a -u meinname mainserver 1>/dev/null 2>&1
>
> holt alle fuenf Minuten Mail. Wenn das Modem aus ist, geht's schief -
> keine Mail. Ist auch okay.

Das kann fetchmail selbst:
(besser, da es dann nicht doppelt gestartet wird -- die Schlafperiode
beginnt mit dem Ende des Mailabrufs)

<file fetchmailrec>
# File: .fetchmailrc
# fetchmail run control file
# This file must not have more than 0600 (u=rw,g=,o=) permissions

# Daemon mode (after retrieving mail, sleep for 15 Minutes)
set daemon 900

# Give the name of the last-resort mail recipient
set postmaster postmaster(at)kistchen.local
# Do error logging through syslog(3)
set syslog
# alternatively:
#set logfile /var/log/fetchmail.log
### S E R V E R S E C T I O N ###
poll my.first.server.de protocol pop3 username "uName" password "pwd" is
me here
poll another.server.com protocol pop3 username "anotherName" password
"pwd" is me here
</fetchmailrc>

und fetchmail einmal starten. Läuft und läuft und läuft...
...ich hab einen kleines Startscript in /usr/local/etc/rc.d/, der
fetchmail nach reboots anwirft.

man fetchmail

ist Dein Freund.
HTH

--
Christoph Sold
To Unsubscribe: send mail to majordomo.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Thu 25 Dec 2003 - 21:48:35 CET

search this site