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

在〈postfixadmin virtual vacation筆記〉中有 1 則留言

發佈留言

這個網站採用 Akismet 服務減少垃圾留言。進一步了解 Akismet 如何處理網站訪客的留言資料