# groupadd -g 65501 vacation |
# useradd -g vacation -u 65501 vacation -c 'Virtual Vacation' -d /nonexistent -s /sbin/nologin |
# cd /usr/local/src # wget http://downloads.sourceforge.net/postfixadmin/postfixadmin-2.1.0.tgz?modtime=1105140809&big_mirror=0&filesize=160525 # tar zxfv postfixadmin-2.1.0.tgz # wget http://www.aconus.com/~oyaji/suse9.2/postfixadmin-2.1.0-vacation_jp.patch # patch -p0 < postfixadmin-2.1.0-vacation_jp.patch |
# cd /usr/local/src/postfixadmin-2.1.0 # cp admin/backup.php /srv/www/htdocs/postfixadmin/admin/ # cp languages/ja.lang /srv/www/htdocs/postfixadmin/languages/ # cp templates/edit-vacation.tpl /srv/www/htdocs/postfixadmin/ templates/ # cp templates/users_main.tpl /srv/www/htdocs/postfixadmin/ templates/ # cp templates/users_menu.tpl /srv/www/htdocs/postfixadmin/ templates/ # cp users/edit-vacation.php /srv/www/htdocs/postfixadmin/users/ |
# mkdir -p /var/spool/vacation # cd /usr/local/src/postfixadmin-2.1.0 # cp VIRTUAL_VACATION/vacation.pl /var/spool/vacation/vacation.pl # chown -R vacation:vacation /var/spool/vacation # chmod 700 /var/spool/vacation/vacation.pl |
my $db_pass = 'new password2'; |
$CONF['vacation'] = 'YES'; $CONF['vacation_domain'] = 'autoreply.mail.aconus.com'; |
# perl -MCPAN -e shell cpan> install Jcode |
# mysql -u root -p Enter password:xxxxx[Enter] Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1661 to server version: 5.0.26 Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> use postfix[Enter] Database changed mysql> CREATE TABLE vacation_exclusion ([Enter] -> email varchar(255) NOT NULL default '',[Enter] -> exclusion text NOT NULL,[Enter] -> active tinyint(1) NOT NULL default '1',[Enter] -> PRIMARY KEY (email),[Enter] -> KEY email (email)[Enter] -> ) TYPE=MyISAM COMMENT='Postfix Admin - Virtual Vacation Exclusion';[Enter] Query OK, 0 rows affected, 1 warning (0.04 sec) mysql> flush privileges;[Enter] Query OK, 0 rows affected (0.03 sec) mysql> \q[Enter] Bye |
#/etc/postfix/master.cf: vacation unix - n n - - pipe flags=Rq user=vacation argv=/var/spool/vacation/vacation.pl -f ${sender} -- ${recipient} |
#/etc/postfix/main.cf: transport_maps = hash:/etc/postfix/transport |
# /etc/postfix/transport # ex. autoreply.mail.aconus.com vacation: autoreply.yourdomain.com vacation: |
# postmap /etc/postfix/transport |
# postfix reload |
[mysqld]
character-set-server = ujis
collation-server = ujis_japanese_ci
init-connect = SET NAMES ujis
skip-character-set-client-handshake
(snip)