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.
I have installed fetchmail and cyrus imap rpms on my machine in the hopes to be able to configure them so that I can run a local imap server that downloads my remote e mail and then serves it via IMAP on my local machine.
But I can't seem to be able to figure out how to configure them so they work together. I have been trying to do this for months and have not had any success. Can anyone help me configure these to work together?
Having just spent the weekend setting up something similar to this, my suspicion is that you would simply point fetchmail to send to the same mailbox/account your imap server is using? I would think they would be completely independent of one another. Understand that I'm just guessing here - I've not yet set up a fetchmail system, but I have my ISP currently auto-forwarding all my POP3 mail to the account my imap server uses on my machine, and it's working just fine.
I would agree with you there. I am right now trying to connect to my IMAP server through my mail client. Right now I am using cyrus IMAP. When I setup my client to connect and try to log in it tells me my connection has failed. The weired part is, I am getting the log in prompt which I don't think I would have gotten if it could connect. When I try to telnet to the IMAP server I get:
[lmcilwain@localhost ~]$ telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
* OK localhost.localdomain Cyrus IMAP4 v2.2.12-Invoca-RPM-2.2.12-6.fc4 server ready
But I am not asked for a username or log in. I think I need to get this problem solved before I can do any debugging with fetchmail or procmail. Can anyone give any ideas?
So I ran some test examples. One was the capability test which seems to have been ok. Response as follows:
[lmcilwain@localhost etc]$ telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
* OK localhost.localdomain Cyrus IMAP4 v2.2.12-Invoca-RPM-2.2.12-6.fc4 server ready
a001 CAPABILITY
* CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE IDLE STARTTLS LISTEXT LIST-SUBSCRIBED X-NETSCAPE
a001 OK Completed
So then I tried loggin in with my local username and password and that failed. Response below:
[lmcilwain@localhost etc]$ telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
* OK localhost.localdomain Cyrus IMAP4 v2.2.12-Invoca-RPM-2.2.12-6.fc4 server ready
a01 login lmcilwain secret
a01 NO Login failed: generic failure
This is the problem I had when trying to log in with my client, it just failed to log in. Any way around it?
This is one problem I didn't really run into during my adventures this weekend - I was able to at least get the imap server running, and to connect to it locally from my email client (Slackware's pretty good about that sort of thing )
hmmm this looks like its telling compile cyrus with --with-login=unix_pwcheck but I actually installed this from an rpm. So I am not sure where to check what my authenticate method is. I want this to be able to authentice using my passwd or shadow file if possible.
Well I checked my imapd.conf file and found that I have that option. Here is all I have in my imapd.conf file. I am wondering if my authenticate method is wrong where the password check is specified.
One final thing if changing the auth method doesn't work - do you have a POP3 server installed? You might want to at least see if you can login to that to rule out something at a higher level than imap - try the following:
telnet localhost 110
-- stuff here --
USER youruser
-- should see "+OK" --
PASS yourpass
-- should see "+OK" --
LIST
-- a list of all emails ids in your inbox should appear --
If that works, then I'd suspect it's something specific to your imap configuration..
Good Luck! Gotta get to bed now, but maybe some other kind soul with ALOT more experience with this than I have will jump in
well cyrus is also a pop3 server. So I tried that and got the following:
[lmcilwain@localhost etc]$ telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
+OK localhost.localdomain Cyrus POP3 v2.2.12-Invoca-RPM-2.2.12-6.fc4 server ready <3826758048.1125287946@localhost.localdomain>
USER lmcilwain
+OK Name is a valid mailbox
PASS secret
-ERR [AUTH] Invalid login
It looks like my sasl service was not running. Once I started that I was able to log in to the IMAP server using my local username and password via telnet and my mail client. Now I just need see how I can get fetchmail to drop the email that it finds to my mail directory in my ~/ .
Just wanted to checkup on your luck w/ fetchmail - I just setup fetchmail on my system to get the mail from an external POP3 account and drop it in a particular mailbox on the server. If you still need any help with this, let me know. (I must say Slackware makes this EASY! Took me all of 20 minutes, most of that downloading/installing the TCL/TK packages needed to use /usr/bin/fetchmailconf...)
Sorry I didn't post my results. I ended up not going with this process because it seemed a bit much for me. I struggled with it for days and days and still with no luck. I ended up using my OS X server for this same process. I used a tool called postfix enabler to enable all of my options via point and click. The sad part is, I don't get the experience of this proces but the good part is, I got what I wanted. I may revisit this sometime in the future since I don't know how long my ancient mac has in terms of life but for the moment I am happy. Thanks for checking up on me.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.