postfixadmin virtual vacation 筆記

看postfixadmin 下的VIRTUAL_VACATION 這個folder 下的INSTALL.txt
從cpan 裝這幾個module
Mail::Sendmail
p5-DBI-mysql
Email:Valid
MIME::EncWords

建vacation user
改變權限
[cc lang="bash" tab_size="2" lines="40"]chown -R vacation:vacation /var/spool/vacation[/cc]

設定vacation.pl
[cc lang="perl" tab_size="2" lines="40"]# db_type – uncomment one of these
my $db_type = ‘mysql’;

# leave empty for connection via UNIX socket
my $db_host = ”;

# connection details
my $db_username = ‘postfix_user’;
my $db_password = ‘postfix_password’;
my $db_name     = ‘postfix_db’;

# smtp server used to send vacation e-mails
my $smtp_server = ‘localhost’;

my $syslog = 1;

# path to logfile, when empty logging is supressed
my $logfile = “/var/log/vacation/vacation.log”;
# path to file for debugging, debug supressed when empty
my $debugfile = “/var/log/vacation/vacation.debug”;[/cc]

#config.inc.php
[cc lang="php" tab_size="2" lines="40"]$CONF['vacation'] = ‘YES’;
$CONF['vacation_domain'] = ‘autoreply.johnpupu.tw’;
$CONF['vacation_control'] =’YES’;
$CONF['vacation_control_admin'] = ‘YES’;[/cc]

建/var/log/vacation
改變/var/log/vacation 權限
[cc lang="bash" tab_size="2" lines="40"]chown -R vacation:vacation /var/log/vacation[/cc]

去postfixadmin 後台啟用vacation

最後
check
table alias 的autoreply 的格式是否如下
johnpupu#johnpupu.tw@autoreply.johnpupu.tw

About johnpupu

..........
This entry was posted in 有的沒的 and tagged . Bookmark the permalink.

One Response to postfixadmin virtual vacation 筆記

  1. Pingback: User links about "dbi" on iLinkShare

Leave a Reply

Your email address will not be published. Required fields are marked *

*

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>

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word