postfix

Setting up vacation support for the compay mail server, wasn’t as trival as i expected :( . The mail server uses postfix/courier-imap/mysql/postfix admin. For this kind of setup a good example is here I used high5 postfixadmin for simple user account setup (lazy and all that) which can be got here
Making sure that i had all my bases covered i upgraded to the latest version of postfixadmin(Backup,Backup,Backup).
Anyway reading the howto on enabling vacation support. you have to edit config-inc.php and change

$CONF['transport'] = 'YES';
$CONF['vacation'] = 'YES';
$CONF['vacation_domain'] = 'autoreply.YourDomain.tld';

Following the instruction in posfixadmin-dir/VIRTUAL_VACATION/INSTALL.TXT I configured Posftix changing master.cf and main.cf where necessary.The only mistake was in the master.cf entry:

filter unix - n n - - pipe
flags=DRhu user=vacation argv=/var/spool/vacation/vacation.pl

because /etc/postfix/transport contained this

#/etc/postfix/transport
autoreply.yourdomain.com vacation

From what I gather, filter was another delivery transport,next-hop destination for postfix to choose so any mail having autoreply.YourDomain.tld would be passed on to transport ‘vacation’ as it couldn’t find the delivery tranport ‘vacation’ in master.cf (which was filter), changing filter to vacation solved the problem. :)
Then pointing users in the direction of http://yourwebserver/postfixadmin/users/ is all that is needed.

This entry was posted in linux. Bookmark the permalink.

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>