LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 04-01-2007, 03:36 PM   #1
lmcilwain
Member
 
Registered: Dec 2003
Location: Maryland
Distribution: Fedora, Ubuntu, Centos, FreeBSD
Posts: 390

Rep: Reputation: 31
Fetchmail multiple local accounts


Im running FC6 on a Toshiba laptop and Im having a bit of an issue:

Can anyone tell me how I can use fetchmail and procmail to be able to download mail from two separate accounts to two separate local accounts?

I already have a local account (user1) that is downloading mail from my gmail account. Now I am trying to setup another account (user2) to be able to download my work email (so I can keep both account emails separate).

When I attempt this I get the following error when trying to run fetchmail as user2:
===============
[user2@linux ~]$ fetchmail -c
fetchmail: can't check mail while another fetchmail to same host is running.
===============

I assume I am getting this error because the fetchmail daemon is already running on user1.

Can anyone offer an help?
 
Old 04-01-2007, 04:50 PM   #2
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
This is the .fetchmailrc that I use to download mail from my isp (for two different users) and from my university. I created a "fetchmail" user whose account I use for this purpose.

Code:
set postmaster "postmaster@mydomain.com"
set no bouncemail
set syslog

defaults
# timeout 10
 smtpaddress "mydomain.com" fetchall

poll pop.isp.net protocol pop3:
  username "ispuser1" is "localuser1" 
    password "passwd1" 
  username "ispuser2" is "localuser2"
    password "passwd2"

poll major.university.edu protocol imap:
  username "uniname" is "localuser3" 
    password "passwd3" ssl
 
Old 04-01-2007, 05:43 PM   #3
lmcilwain
Member
 
Registered: Dec 2003
Location: Maryland
Distribution: Fedora, Ubuntu, Centos, FreeBSD
Posts: 390

Original Poster
Rep: Reputation: 31
What do you mean by a fetchmail user?

You just did a useradd fetchmail?

What permissions did you give it so that it can write to all the inboxes in /var/mail?

Based on what my understanding is of your rc file, the way that you have it written, specifying the "is "localuser"" is what tells it what account inbox to write the email to?

I managed to also get fetchmail started on both accounts but on the second account I got the following error in my fetchmail log:

[user2@linux ~]$ tail -f fetchmail.log
procmail: Couldn't create "/var/mail/user2"
procmail: [17952] Sun Apr 1 17:54:43 2007
procmail: Assigning "LOGNAME=procmail.log"
procmail: Assigning "LOGFILE=procmail.log"
procmail: Opening "procmail.log"

Last edited by lmcilwain; 04-01-2007 at 05:46 PM.
 
Old 04-01-2007, 06:40 PM   #4
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
Quote:
You just did a useradd fetchmail?
Yes.
Quote:
What permissions did you give it so that it can write to all the inboxes in /var/mail?
None. The fetched mail is resubmitted by smtp to the local MTA.
Quote:
Based on what my understanding is of your rc file, the way that you have it written, specifying the "is "localuser"" is what tells it what account inbox to write the email to?
Yes. But, it's more like what to put for the envelope recipient.
Quote:
procmail: Couldn't create "/var/mail/user2"
Maybe you're using the --mda option? I don't invoke fetchmail with any other options but the ones in .fetchmailrc.

Last edited by Berhanie; 04-01-2007 at 06:45 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fetchmail with multiple mail accounts and local accounts lmcilwain Linux - Software 3 04-01-2007 02:58 PM
fetchmail freezes on accounts esteeven Linux - Networking 1 06-06-2005 06:03 AM
Fetchmail With Multiple User Accounts davidbalt Linux - Software 1 07-08-2004 12:14 PM
multiple pop3 accounts with fetchmail and pine ANU Linux - Software 1 03-15-2004 07:16 PM
Getting Fetchmail to poll multiple user accounts in daemon mode davidbalt Linux - Newbie 0 02-23-2004 05:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 05:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration