Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 28th June 2006, 03:01
webcho webcho is offline
Junior Member
Join Date: Jun 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Squirrelmail, dovecot IMAP and sendmail - how to make it work?


I hope somebody can help me with this:

My box is HSPcomplete control panel VPS.

I installed Squirrelmail and dovecot (IMAP) and can login to Squirrelmail and send emails OK with my account "username".

But no email I send from somwhere else (e.g. Yahoo Mail etc.) shows in SquirrelMail, though I can see it has been received since it is present in file /var/spool/vmail/mydomain.com/mail/username

Obviously my MX record is OK, and sendmail is delivering it to the proper virtual user mbox (status is OK in /var/log/maillog as well).

The question is how do I "link" dovecot to provide this virtual user mbox (/var/spool/vmail/mydomain.com/mail/username) as an INBOX for "username" when using Squirrelmail ?

I read for more than an hour, but coulldn't find how to do ut anywhere on the web.

I tried by setting

default_mail_env = mbox:/var/spool/vmail/%d/%n

in /etc/dovecot.conf, but ti doesn't work (ERROR: Connection dropped by IMAP server. Query: SELECT "INBOX" )

(and yes, I do restart dovecot every time I change its config).

Anybody with an idea? Thanks in advance!
Reply With Quote
Sponsored Links
Old 29th June 2006, 00:34
falko falko is offline
Super Moderator
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts

What's in /etc/dovecot.conf?
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Old 29th June 2006, 17:13
technick technick is offline
Junior Member
Join Date: May 2006
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts

With my Sendmail / Dovecot / Squirrelmail setup, I am using Procmail to distribute user mail to specific directories. It would make sense, you need to tell sendmail how to deliver the incoming mail instead of letting it sit in /var/spool/mail. You might be able to setup Dovecot to read mail out of there as well.

I highly recommend you read the Sendmail Cookbook and the Big Bat Sendmail book as well. It will enlighten you with the power of Sendmail. I wonder how long it will be before Oreilly comes out with a book on Dovecot?
Reply With Quote
Old 29th June 2006, 17:14
technick technick is offline
Junior Member
Join Date: May 2006
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts

Also forgot to mention, turn the log level up to 19 in sendmail, rebuild, restart. Watch /var/log/maillog, you can see what is happening to your mail.
Reply With Quote


Thread Tools
Display Modes

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

Forum Jump

All times are GMT +2. The time now is 00:38.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.