From owner-freebsd-questions@FreeBSD.ORG Mon Jun 4 21:00:11 2007 Return-Path: X-Original-To: freebsd-questions@FreeBSD.org Delivered-To: freebsd-questions@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 63AC116A469 for ; Mon, 4 Jun 2007 21:00:11 +0000 (UTC) (envelope-from yahoo@pcbsd.homeunix.com) Received: from outgoing.holservices.gr (outgoing.holservices.gr [62.38.2.44]) by mx1.freebsd.org (Postfix) with SMTP id 8A2D113C48A for ; Mon, 4 Jun 2007 21:00:10 +0000 (UTC) (envelope-from yahoo@pcbsd.homeunix.com) Received: (qmail 21583 invoked from network); 4 Jun 2007 20:29:43 -0000 Received: from unknown (HELO deliver.mail.dc.hol.net) (192.168.20.70) by arete.mail.dc.hol.net with SMTP; 4 Jun 2007 20:29:43 -0000 Received: from auth-smtp.hol.gr (takeit01.mail.dc.hol.net [192.168.20.71]) by deliver.hol.gr (8.12.11/8.11.6) with ESMTP id l54KXPxG011096 (using TLSv1/SSLv3 with cipher DHE-RSA-AES256-SHA (256 bits) verified OK); Mon, 4 Jun 2007 23:33:25 +0300 Received: from [192.168.2.20] (ppp155-152.dsl.hol.gr [89.210.155.152]) (authenticated bits=0) by auth-smtp.hol.gr (8.13.1/8.12.11) with ESMTP id l54KXOi7005772; Mon, 4 Jun 2007 23:33:25 +0300 Message-ID: <4664771D.5020408@pcbsd.homeunix.com> Date: Mon, 04 Jun 2007 23:33:33 +0300 From: Thanos Rizoulis User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) MIME-Version: 1.0 To: Simon Barner References: <20070602092916.GA1231@dose.local.invalid> In-Reply-To: <20070602092916.GA1231@dose.local.invalid> Content-Type: text/plain; charset=ISO-8859-7; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: ClamAV 0.90/3349/Mon Jun 4 17:32:21 2007 on takeit01.mail.dc.hol.net X-Virus-Status: Clean Cc: freebsd-questions@FreeBSD.org Subject: Re: enable fetchmail system-wide mode X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: apatewna@hol.gr List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jun 2007 21:00:11 -0000 O/H Simon Barner έγραψε: > Hello Gerard, > > >> I had to slightly modify it to work the way I wanted on my system. I >> would suggest that you do that 'AFTER' you have gotten it to relatively >> the way you want it to. >> > > Are these changes useful for other users, too? If so, please send me > a diff, so I can modify the port. > > This is a little guide to setting up fetchmail 6.3.8 cd /usr/ports/mail/fetchmail make install clean echo 'fetchmail_enable="YES"'>>/etc/rc.conf echo 'fetchmail_polling_interval="60"'>>/etc/rc.conf The above two are mentioned in /usr/local/etc/rc.d/fetchmail ee /usr/local/etc/fetchmailrc (initially it is nearly empty) set invisible set no bouncemail set no spambounce set postmaster postmaster@yourdomain.xyz set syslog poll pop.mail.yahoo.com timeout 40 proto pop3 user "username" pass "password" is user@yourdomain.xyz fastuidl 1 fetchlimit 0 limit 0 keep forcecr The above options are for a client who wishes to keep messages stored in remote POP3 mailboxes. *man fetchmail* for specifics, especially at the end where it gives a nice table of availiable commands and fetchmailrc options. The MTA handling the local domain is qmail, hence the required "forcecr" option. The timings (60sec per POP3 access) may seem agressive but I contacted the ISP and they have no problem with that and the client is happy to have nearly "email-chat" sessions. Users or abusers, as long as they pay the bucks.... chmod 0700 /usr/local/etc/fetchmailrc chown fetchmail:fetchmail /usr/local/etc/fetchmailrc (the permissions are already set anyway) /usr/local/etc/rc.d/fetchmail start Also there is a new option I haven't seen before. Suppose that fetchmail is sleeping and you want to wake it up *right now* to receive new messages: /usr/local/etc/rc.d/fetchmail awaken Watch /var/log/maillog for fetchmail activity. -- RTFM and STFW before anything bad happens _________________________________________ Thanos Rizoulis Electronic Computing Systems Engineer Larissa, Greece FreeBSD/PCBSD user