Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Im working on a Postfix-Procmail-Fetchmail-Courier IMAP server.... Outgoing mail works fine.
But incoming mail is not being going to my squirrelmail inbox. Although I can check this via evolution. It looks like mail is being delivered to /usr/bin/procmail via this file in the logs:
Oct 19 20:04:08 www postfix/local[16005]: F398A4EED1: to=<username@domain.com>, relay=local, delay=1, status=sent (delivered to command: /usr/bin/procmail)
My postfix main.cf file has these two lines
mailbox_command = /usr/bin/procmail
home_mailbox = Maildir/
So I guess my question is... hmm what the hell is my question?...
Is IMAP receiving my emails?
Why are they being sent into /usr/bin/procmail and not Maildir/ ?
How can I get these emails sent into my ~/Maildir?
I believe the mailbox_command is what you use when you have procmail deliver mail to the appropriate folder within your Maildir. The procmail portion is setup in a .procmailrc (IIRC) in each users homedir. If you don't have this file, or have not setup procmail at all yet, then either read up on it quickly and institute it accordingly, OR comment out the line for mailbox_command and restart postfix. From there, your IMAP server, courier, should be setup to deliver the mail into your Maildir.
Check your /etc/courier-imap/imapd file to ensure your have:
MAILDIR=Maildir
setup correctly.
A follow up:
Procmail is an excellent powerful tool for mail sorting. Should you need this, and your client side filters aren't sufficient, certainly read up on the usage of procmail.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.