[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

exim4 vacation message issues



Hi,

I am wanting to NOT send vacation messages for some emails that have particular text in the subject header line, but I can't get it to work as desired.

Here is my router configuration attempt, which doesn't work.

<quote>
VACATION_CONDTION = ${if $h_Subject: contains "do not send vacation message" {no}{yes}}

uservacation:

    debug_print = "R: uservacation for $local_part@$domain"
    check_local_user
    driver = accept
    domains = +local_domains
    require_files = $local_part:$home/.vacation

    condition = VACATION_CONDITION

    # do not reply to errors or bounces or lists
    senders = ! ^.*-request@.*:\
        ! ^bounce-.*@.*:\
        ! ^.*-bounce@.*:\
        ! ^owner-.*@.*:\
        ! ^postmaster@.*:\
        ! ^webmaster@.*:\
        ! ^listmaster@.*:\
        ! ^mailer-daemon@.*:\
        ! ^root@.*

    no_expn
    transport = uservacation_transport
    unseen
    no_verify
</quote>

How can I fix this?

--
Kind Regards
Andrew McGlashan


Reply to: