fetchmail

David Richards davidr at eurosoft-uk.com
Mon Mar 6 10:55:42 GMT 2000


ok thanks for the help with fetchamil. Now all my mail is down. But not in
any mail boxes. is it  to do with sendmail ?? and how would i fix it ?



-----Original Message-----
From: Mark Ovens [mailto:mark at ukug.uk.freebsd.org]
Sent: 05 March 2000 17:52
To: David Richards
Cc: 'freebsd-users at ukug.uk.freebsd.org'
Subject: Re: fetchmail


On Sun, Mar 05, 2000 at 05:19:34PM +0000, Mark Ovens wrote:
> On Sun, Mar 05, 2000 at 05:11:38PM -0000, David Richards wrote:
> > hello,
> >        please could some one send me a .fetchmailrc that will collect my
> > mail from a pop3 server and inject it in to sendmail, so sendmail will
send
> > it to the correct users ?.
> > 
> 
> This is mine:
> 
> 
> # Configuration created Sat Sep 18 16:14:37 1999 by fetchmailconf
> set postmaster "postmaster"
> set daemon 2
> poll ukug.uk.freebsd.org with proto POP3
>        user "mark" there with password "not_telling" is mark here warnings
3600
> 
> As you can see from the comment, it was created with fetchmailconf
> which, IIRC, is installed when you install fetchmail. It provides
> a GUI front-end to configuring fetchmail. Give it a try. There's
> a manpage for it.
> 

Hmm, I didn't read your message properly. The .fetchmailrc will get the
messages from the server but to route than to mailboxes I use procmail(1).
Put this line in ~/.forward:


"|exec /usr/local/bin/procmail"

and then construct a ~/.procmailrc to route them. This is mine,
primarily for routing mail from the FreeBSD lists into individual
mailboxes (current, stable, questions etc.). You should use the
To: field (e,g, the ``* ^TO_.*mark'' entry) if you want to sort by
user:


# .procmailrc
# routes incoming mail to appropriate mailboxes

	PATH=/usr/bin:/usr/local/bin
	MAILDIR=$HOME/Mail
	DEFAULT=$HOME/Mail/Inbox
	LOGFILE=$HOME/procmail.log
	SHELL=/bin/sh
	LOCKFILE=$HOME/.lockmail

	:0
	* ^Sender:.owner-freebsd-\/[^@]+ at FreeBSD.ORG
	{
		LISTNAME=${MATCH}
		:0
		* LISTNAME??^\/[^@]+
		${MATCH}
	}

	:0:
	* ^Sender:.freebsd-users-admin
	ukusers

	:0:
	* ^TO_.*mark
	mark

	:0:
	* ^TO_.*codeforge
	cforge

	scrap


> HTH
> 
> 
> > thanks
> > david
> > 
> > 
> > ------ FreeBSD UK User's Group  -  Mailing List ------
> > http://listserver.uk.freebsd.org/mailman/listinfo/freebsd-users
> 
> -- 
> 	Microsoft: Where do you want to go today?
> 	Linux:     Where do you want to go tomorrow?
> 	BSD:       Are you guys coming, or what?
> 			              -Poster at LinuxWorld 2000
> ________________________________________________________________
>       FreeBSD - The Power To Serve http://www.freebsd.org
>       My Webpage http://ukug.uk.freebsd.org/~mark/
> mailto:mark at ukug.uk.freebsd.org             http://www.radan.com
> 
> 
> 
> ------ FreeBSD UK User's Group  -  Mailing List ------
> http://listserver.uk.freebsd.org/mailman/listinfo/freebsd-users

-- 
	Microsoft: Where do you want to go today?
	Linux:     Where do you want to go tomorrow?
	BSD:       Are you guys coming, or what?
			              -Poster at LinuxWorld 2000
________________________________________________________________
      FreeBSD - The Power To Serve http://www.freebsd.org
      My Webpage http://ukug.uk.freebsd.org/~mark/
mailto:mark at ukug.uk.freebsd.org             http://www.radan.com





More information about the Ukfreebsd mailing list