Fetchmail with multiple mail accounts and local accounts
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Fetchmail with multiple mail accounts and local accounts
Hello all,
I am trying to get fetchmail to download from two different mail accounts to two different local accounts. Does anyone know how to do this?
Basically I have one gmail account and one work account and I want to keep them separate (I don't want to combine them in the same inbox).
I created another account on my machine to be able to support separating my mail accounts but when I set up the .fetchmailrc and .procmailrc for the new account, I get the following error when I try to start it.
[user@linux ~]$ fetchmail -c
fetchmail: can't check mail while another fetchmail to same host is running.
I already have fetchmail running on my other account and its working perfectly but I don't seem to understand this message. It seems to be stating that the new fetchmail service Im trying to run is trying to contact the same mail server as my currently running one but its not based on the configuration that I have.
Is it that I can't run two separate fetchmail services? (I thought this was possible). If that is not the case, what are my other options?
all standard stuff really, just check the fetchmail manpage. you can put as many local and remote accounts as you wish....
Code:
poll pop.provider.net proto pop3
user "jsmith", with password secret1, is "jsmith" here;
poll other.provider.net proto pop2:
user "John.Smith", with password "My^Hat", is "John.Smith" here;
i'd suggest it's not really a good plan though, why not just use procmail to put all mail from one account into one folder, others in another. that way you only need one local user account.
I guess the other part of my confusion is, if Im running fetchmail from one account, will it be able to right to both mailboxes?
exampl:
If user1 is running the fetchmail services with .fetchmailrc settings for both accounts (user1 and user2) to deliver to their inbox. Will the system allow allow the services running under user1 to write to user2's mailbox?
I am also using procmail for filtering, so I am not sure how to not have it use the wrong .procmailrc file for the second account.
To answer your question: Both mail accounts have a ton of sub folders so it would be pretty confusing to try and combine the two accounts in one mail account (unless I misunderstood your question)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.