Posts Tagged postfix
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
auxpropfunc error no mechanism availabl …..
裝好mail server 後
一切正常運作…
不過在message 卻出現下面這些訊息
Oct 8 04:07:54 mail saslpasswd2: sql_select option missing
Oct 8 04:07:54 mail saslpasswd2: auxpropfunc error no mechanism available
Oct 8 04:07:54 mail sasldblistusers2: sql_select option missing
Oct 8 04:07:54 mail sasldblistusers2: auxpropfunc error no mechanism availabl
e
找了一下google
看到下面是這樣說的..
auxpropfunc error
是說裝了多裝的…cyrus-sasl 的plugin
接著就看了一下…
/usr/ports/security/cyrus-sasl2
make config
default 裝了
OPTIONS= BDB “Use Berkeley DB” off \
MYSQL “Use MySQL” off \
PGSQL “Use PostgreSQL” off \
SQLITE “Use SQLite” off \
DEV_URANDOM “Use /dev/urandom” off \
ALWAYSTRUE “Enable the alwaystrue password verifier” off \
KEEP_DB_OPEN “Keep handle to Berkeley DB open” off \
AUTHDAEMOND “Enable use of authdaemon” on \
LOGIN “Enable LOGIN authentication” on \
PLAIN “Enable PLAIN authentication” on \
CRAM “Enable CRAM-MD5 authentication” on \
DIGEST “Enable DIGEST-MD5 authentication” on \
OTP “Enable OTP authentication” on \
NTLM “Enable NTLM authentication” on
發現是因為我手賤多勾了…..MYSQL
所以出現這個error msg
…..
我沒用到MYSQL 而是透過authdaemond 來做db 的認証
所以不用手賤勾….MYSQL
Orz
::(: