由于客户需求更改为postfix + procmail 方案
procmail 总配置文件 /etc/procmailrc
每个 :0 相当于一个else if方案之执行一个
并且每个 :0 只能执行一个命令
每个 :0 相当于一个else if方案之执行一个
并且每个 :0 只能执行一个命令
DEFAULT=$HOME/Maildir/
MAILDIR=$HOME/Maildir
MAILDIR=$HOME/Maildir
:0
* ^To: register.*
MAILDIR=/home/register/Maildir
$MAILDIR
* ^To: register.*
MAILDIR=/home/register/Maildir
$MAILDIR
:0
* ^To: unregister.*
MAILDIR=/home/unregister/Maildir
$MAILDIR
* ^To: unregister.*
MAILDIR=/home/unregister/Maildir
$MAILDIR
:0
* ^To: newsletter.*
MAILDIR=/home/newsletter/Maildir
$MAILDIR
* ^To: newsletter.*
MAILDIR=/home/newsletter/Maildir
$MAILDIR
用户配置文件
文件地址 /home/register/.procmailrc
PATH=$HOME/bin:/usr/bin:/usr/local/bin:TH=$HOME/bin:/usr/bin:/usr/local/bin:
DEFAULT=$HOME/Maildir/
MAILDIR=$HOME/Maildir
MAILDIR=$HOME/Maildir
LOGFILE=$MAILDIR/procmaillog
VERBOSE=off
:0
* ^Subject: register.*
|php /var/www/html/dev-site/bin/register_mail.php
* ^Subject: register.*
|php /var/www/html/dev-site/bin/register_mail.php
文件地址 /home/unregister/.procmailrc
PATH=$HOME/bin:/usr/bin:/usr/local/bin:TH=$HOME/bin:/usr/bin:/usr/local/bin:
DEFAULT=$HOME/Maildir/
MAILDIR=$HOME/Maildir
MAILDIR=$HOME/Maildir
LOGFILE=$MAILDIR/procmaillog
VERBOSE=off
:0
* ^Subject: register.*
{
:0c:
/home/register/Maildir/
:0
|php /var/www/html/dev-site/bin/register_mail.php }
* ^Subject: register.*
{
:0c:
/home/register/Maildir/
:0
|php /var/www/html/dev-site/bin/register_mail.php }
文件地址 /home/newsletter/.procmailrc
PATH=$HOME/bin:/usr/bin:/usr/local/bin:TH=$HOME/bin:/usr/bin:/usr/local/bin:
PATH=$HOME/bin:/usr/bin:/usr/local/bin:TH=$HOME/bin:/usr/bin:/usr/local/bin:
DEFAULT=$HOME/Maildir/
MAILDIR=$HOME/Maildir
MAILDIR=$HOME/Maildir
LOGFILE=$MAILDIR/procmaillog
VERBOSE=off
:0
* ^Subject: unregister.*
{
:0c:
/home/unregister/Maildir/
:0
|php /var/www/html/dev-site/bin/unregister_mail.php }
* ^Subject: unregister.*
{
:0c:
/home/unregister/Maildir/
:0
|php /var/www/html/dev-site/bin/unregister_mail.php }
没有评论:
发表评论