- 詳細內容
-
分類: Mail
-
發佈: 2008-11-26, 週三 18:06
-
作者 Super User
-
點擊數: 18479
cd /usr/ports/databases/p5-DBI
make install clean
cd /usr/ports/mail/p5-MIME-EncWords
make install clean
cd /usr/ports/mail/p5-Email-Valid
make install clean
cd /usr/ports/mail/p5-Mail-Sendmail
make install clean
cd /usr/ports/databases/p5-DBD-mysql50
make install clean
1. Create a local account
pw groupadd vacation -g 501
pw useradd vacation -u 501 -g 501 -s /sbin/nologin -d /nonexistent -c "Virtual Vacation"
2. Create a directory
mkdir /var/spool/vacation
3. Copy the files
cp -rp /usr/local/www/postfixadmin/VIRTUAL_VACATION/vacation.pl /var/spool/vacation
vi /var/spool/vacation/vacation.pl
my $db_type = 'mysql';
my $db_username = 'postfix';
my $db_password = 'postfix';
my $db_name = 'postfix';
chown -R vacation:vacation /var/spool/vacation
chmod -R 700 /var/spool/vacation
4. Setup the transport type
vi /usr/local/etc/postfix/master.cf
vacation unix - n n - - pipe
flags=Rq user=vacation argv=/var/spool/vacation/vacation.pl -f ${sender} -- ${recipient}
vi /usr/local/etc/postfix/main.cf
transport_maps = hash:/usr/local/etc/postfix/transport
vi /usr/local/etc/postfix/transport
autoreply.jason-tang.com vacation
postmap /usr/local/etc/postfix/transport
/usr/local/etc/rc.d/postfix restart
5. Postfixadmin Setting
vi /usr/local/www/postfixadmin/config.inc.php
$CONF['vacation'] = 'YES';
$CONF['vacation_domain'] = 'autoreply.jason-tang.com';
$CONF['vacation_control'] ='YES';
$CONF['vacation_control_admin'] = 'YES';
- 詳細內容
-
分類: Mail
-
發佈: 2008-09-22, 週一 09:52
-
作者 Super User
-
點擊數: 16841
vi /usr/local/etc/postfix/main.cf
sender_bcc_maps = hash:/usr/local/etc/postfix/sender_bcc_maps
recipient_bcc_maps = hash:/usr/local/etc/postfix/recipient_bcc_maps
vi /usr/local/etc/postfix/sender_bcc_maps
Email住址會使用灌水程式保護機制。你需要啟動Javascript才能觀看它 Email住址會使用灌水程式保護機制。你需要啟動Javascript才能觀看它
vi /usr/local/etc/postfix/recipient_bcc_maps
Email住址會使用灌水程式保護機制。你需要啟動Javascript才能觀看它 Email住址會使用灌水程式保護機制。你需要啟動Javascript才能觀看它
postmap /usr/local/etc/postfix/sender_bcc_maps
postmap /usr/local/etc/postfix/recipient_bcc_maps
/usr/local/etc/rc.d/postfix reload