Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm attempting to set up a mailserver for a small office. FYI, we're replacing Kerio Mailserver on OS X with Postfix, Dovecot, postfixadmin, and Squirrelmail on Ubuntu Jaunty (9.04.)

I installed the "dovecot-postfix" package, and configured them, and my test server is now accepting and sending messages via SMTP, and I can connect with POP/IMAP clients and receive email. I can log into postfixadmin over the web and add users. I followed this (excellent) walkthrough:

The main feature I'm lacking now is the ability for users to set vacation/away messages. The squirrelmail plugins don't seem well-suited to the setup I have (where user info is stored in MySQL).

This: seems like my best bet, but I can't really fit my head around how all this stuff is supposed to work together to provide a web interface to set vacation/away messages. I'm looking for the best solution for getting vacation messages up and running with my current setup, or a suggestion for an alternate setup. (So far this is just a test server, with production still running on Kerio, so starting over IS an option.)

share|improve this question
up vote 3 down vote accepted

Glad the walkthrough was helpful. While not a perfect solution, (considering you're using Squirrelmail) I did just post a followup on implementing postfixadmin's virtual vacation plugin. It should at least give you an option if you haven't found a solution yet. I'm currently writing a plugin for roundcube's webmail app that will give users access to the autoresponder functionality from inside their webmail. Hopefully the first build of that isn't too far out.

share|improve this answer
Thanks, Craig! Although I don't have this completely working yet, it's been tremendously helpful. I'll keep my eyes open for your roundcube plugin too -- I'm certainly not married to Squirrelmail. – Schof Aug 11 '09 at 23:05
And when I redid both walkthroughs from scratch, I've got everything working! (All hail VMWare's "Revert To Snapshot" functionality for getting me back to a blank slate.) Also, all hail Craig! Both excellent walkthroughs got me where I need to go. (And I'm not at all concerned that users need to go to postfixadmin to set their vacation stuff.) Thanks again, Craig! – Schof Aug 13 '09 at 1:32

I used a modified version of the "Virtual Vacation" script from Postfixadmin to do this. Modifying the vacation manager squirrelmail plugin to use the DB instead of files was a piece of cake from there.

share|improve this answer

Create a /var/vmail/globalsieverc file

require ["fileinto"];
# Move spam to spam folder
if header :contains "X-Spam-Flag" ["YES"] {
  fileinto "spam";

chown vmail /var/vmail/globalsieverc

in the plugin {} Section define:

sieve_global_path = /var/vmail/globalsieverc

In your /etc/dovecot/dovecot.conf file add managesieve to your protocols:

protocols = imap imaps pop3 pop3s managesieve

apt-get install avelsieve

know you can you use the "filters" link in squirrelmail

have fun

share|improve this answer

You might want to have a look at for a vacation autoresponder designed for virtual users (works fine with other lookup table types). It stores vacation config and -messages in MySQL or PostgreSQL. All SQL queries can be customized.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.