{"id":39,"date":"2010-06-22T11:02:33","date_gmt":"2010-06-22T11:02:33","guid":{"rendered":""},"modified":"2012-06-08T12:42:26","modified_gmt":"2012-06-08T04:42:26","slug":"postfixadmin-autoreply-out-of-office-on-redhat-centos","status":"publish","type":"post","link":"https:\/\/matnet.my\/blog\/2010\/06\/postfixadmin-autoreply-out-of-office-on-redhat-centos\/","title":{"rendered":"Postfixadmin autoreply \/ out of office on REDHAT \/ Centos"},"content":{"rendered":"<p>Requirement : <\/p>\n<p># Requirements &#8211; the following perl modules are required:<br \/>\n# DBD::Pg or DBD::mysql<br \/>\n# Mail::Sender, Email::Valid MIME::Charset, Log::Log4perl, Log::Dispatch, MIME::EncWords and GetOpt::Std<\/p>\n<p>groupadd -r -g 65501 vacation<br \/>\nuseradd -r -u 65501 -g vacation -d \/var\/spool\/vacation -s \/sbin\/nologin vacation<br \/>\nmkdir \/var\/spool\/vacation<\/p>\n<p>cd \/var\/www\/postfixadmin\/VIRTUAL_VACATION<br \/>\ncp vacation.pl \/var\/spool\/vacation\/vacation.pl<br \/>\nchown -R vacation:vacation \/var\/spool\/vacation<br \/>\nsudo chmod -R 700 \/var\/spool\/vacation<\/p>\n<p>nano \/var\/spool\/vacation\/vacation.pl<\/p>\n<p>our $db_type = &#8216;mysql&#8217;;<br \/>\nour $db_username = &#8216;postfix&#8217;;<br \/>\nour $db_password = &#8216;yourdbpasswd&#8217;;<br \/>\nour $db_name = &#8216;postfix&#8217;;<\/p>\n<p>our $vacation_domain = &#8216;autoreply.yourdomain.com&#8217;;<\/p>\n<p>cd \/var\/www\/postfixadmin<\/p>\n<p>nano config.inc.php<\/p>\n<p>$CONF[&#8216;vacation&#8217;] = &#8216;YES&#8217;;<br \/>\n$CONF[&#8216;vacation_domain&#8217;] = &#8216;autoreply.yourdomain.com&#8217;;<\/p>\n<p>cd \/etc\/postfix<br \/>\nnano master.cf<\/p>\n<p>Add (near the end of the file):<\/p>\n<p>vacation    unix  &#8211;       n       n       &#8211;       &#8211;       pipe<br \/>\n  flags=Rq user=vacation argv=\/var\/spool\/vacation\/vacation.pl -f ${sender} &#8212; ${recipient}<\/p>\n<p>nano main.cf<\/p>\n<p>transport_maps = hash:\/etc\/postfix\/transport<\/p>\n<p>nano transport<\/p>\n<p>autoreply.yourdomain.com vacation<\/p>\n<p>postmap \/etc\/postfix\/transport<\/p>\n<p>\/etc\/init.d\/postfix reload<\/p>\n<p>Done.  B) <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Requirement : # Requirements &#8211; the following perl modules are required: # DBD::Pg or DBD::mysql # Mail::Sender, Email::Valid MIME::Charset, Log::Log4perl, &hellip; <a href=\"https:\/\/matnet.my\/blog\/2010\/06\/postfixadmin-autoreply-out-of-office-on-redhat-centos\/\" class=\"more-link\">More <span class=\"screen-reader-text\">Postfixadmin autoreply \/ out of office on REDHAT \/ Centos<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-39","post","type-post","status-publish","format-standard","hentry","category-bsd-nix","standard"],"_links":{"self":[{"href":"https:\/\/matnet.my\/blog\/wp-json\/wp\/v2\/posts\/39","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/matnet.my\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/matnet.my\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/matnet.my\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/matnet.my\/blog\/wp-json\/wp\/v2\/comments?post=39"}],"version-history":[{"count":2,"href":"https:\/\/matnet.my\/blog\/wp-json\/wp\/v2\/posts\/39\/revisions"}],"predecessor-version":[{"id":59,"href":"https:\/\/matnet.my\/blog\/wp-json\/wp\/v2\/posts\/39\/revisions\/59"}],"wp:attachment":[{"href":"https:\/\/matnet.my\/blog\/wp-json\/wp\/v2\/media?parent=39"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/matnet.my\/blog\/wp-json\/wp\/v2\/categories?post=39"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/matnet.my\/blog\/wp-json\/wp\/v2\/tags?post=39"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}