Postfixadmin autoreply / out of office on REDHAT / Centos

Requirement :

# Requirements – the following perl modules are required:
# DBD::Pg or DBD::mysql
# Mail::Sender, Email::Valid MIME::Charset, Log::Log4perl, Log::Dispatch, MIME::EncWords and GetOpt::Std

groupadd -r -g 65501 vacation
useradd -r -u 65501 -g vacation -d /var/spool/vacation -s /sbin/nologin vacation
mkdir /var/spool/vacation

cd /var/www/postfixadmin/VIRTUAL_VACATION
cp /var/spool/vacation/
chown -R vacation:vacation /var/spool/vacation
sudo chmod -R 700 /var/spool/vacation

nano /var/spool/vacation/

our $db_type = ‘mysql’;
our $db_username = ‘postfix’;
our $db_password = ‘yourdbpasswd’;
our $db_name = ‘postfix’;

our $vacation_domain = ‘’;

cd /var/www/postfixadmin


$CONF[‘vacation’] = ‘YES’;
$CONF[‘vacation_domain’] = ‘’;

cd /etc/postfix

Add (near the end of the file):

vacation unix – n n – – pipe
flags=Rq user=vacation argv=/var/spool/vacation/ -f ${sender} — ${recipient}


transport_maps = hash:/etc/postfix/transport

nano transport vacation

postmap /etc/postfix/transport

/etc/init.d/postfix reload

Done. B)

This article was written by matn0t.