Cory PetkovsekThu Jul 22 16:54:20 PDT 2004
On Thu, Jul 22, 2004 at 04:50:21PM -0700, Jason Van Cleve wrote: > There's a ton of Web pages on installing/configuring these app's for > specific purposes, but none explains the basic relationships between > them, which I consider preliminary knowledge. Just read the fetchmail man page. > Question 1: How do fetchmail, my local spool file, and procmail all > relate? Fetchmail checks mail on the pop server like an MUA. It then sends that mail to your local MTA, like an MTA. Your local mta then delivers to your local spool file or mail dir. If you've configured the local mta to deliver with procmail, then it will check for a .procmailrc filter file before writing the email to the final destination. > Question 2: Do I need sendmail? I've heard it's only required if I > want cron jobs and such to be able to email things. Otherwise, I can > just use my remote SMTP server, yes? Depends on your mua. With the above setup you'll need an MTA like sendmail or postfix. I recommend postfix. Your distribution should make it easy to install and configure. > Question 3: I have my saved mail in a strange place, not ~/.mail, or > whatever the standard location is. There's a directory for each mail > folder, and each message is a separate file, which I believe is the mbox > format, yes? Will procmail conform to this? Sounds like maildir, which procmail can write to. > Question 4: After installing fetchmail on Gentoo, I tried running the > start script in /etc/init.d, but it couldn't find /etc/fetchmailrc. > What needs to go into that file? This is the system wide fetchmail configuration. You have to make that file according to the man page specifications. Then it will run like a daemon, if that's what you tell it to do. > Will it effectively replace my > ~/.fetchmailrc file, since I'm running it as root at bootup? If yes, > then I presume the contents would be the same as that dot file in my > home. Yes, pretty close if not identical. > Am I only dreaming? No, set it up as I described. It will run without maintenance and you'll learn something too. > Would that I could find a simple diagram of how these pieces fit > together. But perhaps one of you system admin types could wax eloquent > on the matter. .===========. v || POP3 ---> fetchmail ---> postfix ---> procmail ---> maildir inet local/root local/root local/user ~/maildir ---> email flow ===> initiated by fetchmail Cory -- Cory Petkovsek Adapting Information Adaptable IT Consulting Technology to Your (858) 705-1655 Business cory at AdaptableIT.com www.AdaptableIT.com