On Tuesday 17 October 2006 12:59, Tony Heal wrote:
> I am looking for an easy, user controlled, way to implement auto-replies
> for vacations and such. I would also like to add a user controlled forward
> ability if possible. A web based program would work best, but I can have
> that created if needed to work with a CLI option.

Some examples to consider...I have the following routers for alias domain 
forwarding, postmaster/abuse-->primary account forwarding, custom alias 
forwarding, and vacation autoresponses based on a PostgreSQL database, it's 
then easy to interface with the database using a CLI/web script...

alias_domain:
        driver                  = redirect
        domains                 = +alias_domains
        data                    = [EMAIL PROTECTED] 
pgsql{select "real_domain" from "alias_domains" where "alias_domain" 
= '${quote_pgsql:$domain}'}}
rfc_forward:
        driver                  = redirect
        domains                 = +local_domains
        local_parts             = postmaster : abuse
        data                    = ${lookup pgsql{select "primary_account" 
from "hosted_domains" where "domain" = '${quote_pgsql:$domain}'}}
forward:
        driver                  = redirect
        domains                 = +local_domains
        data                    = ${lookup pgsql{select "destination_address" 
from "forwards" where "email_address" = '${quote_pgsql:
[EMAIL PROTECTED]:$domain}'}}
uservacation:
        driver                  = accept
        domains                 = +local_domains
        condition               = ${if and { \
                                        {match_address 
[EMAIL PROTECTED] {${lookup pgsql{select "email_address" 
from "vacations" where "email_address" = '${quote_pgsql:
[EMAIL PROTECTED]:$domain}' and now () between "start_time" 
and "end_time"}}}} \
                                        {!match {$h_precedence:} {(?i)junk|
bulk|list}} \
                                        {!eq {$sender_address} {}} \
                                } {yes} {no} }
        senders                 = ! [EMAIL PROTECTED]      : \
                                  ! [EMAIL PROTECTED]       : \
                                  ! [EMAIL PROTECTED]       : \
                                  ! [EMAIL PROTECTED]        : \
                                  ! [EMAIL PROTECTED]      : \
                                  ! [EMAIL PROTECTED]       : \
                                  ! [EMAIL PROTECTED]      : \
                                  ! [EMAIL PROTECTED]   : \
                                  ! [EMAIL PROTECTED]
        transport               = vacation_autoresponse
        unseen
        no_verify
        no_expn

Cheers,
-- 
SeattleServer.com Mailing Lists - Casey Allen Shobe
[EMAIL PROTECTED] - http://seattleserver.com

-- 
## List details at http://www.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/

Reply via email to