Question about exim4 config syntax

Posted by PeterMmm on Server Fault See other posts from Server Fault or by PeterMmm
Published on 2011-01-04T10:16:49Z Indexed on 2011/01/04 10:56 UTC
Read the original article Hit count: 283

Filed under:
|

I'm trying to send a notification to the sender of a message when a message is send to exactly one address in the local domain ([email protected]).

Q1: How would be the syntax for the condition (the above don't work) ? :

notify_reply:
    driver=accept
    domains = +local_domains
    senders = ! ^.*-request@.*:\
            ! ^bounce-.*@.*:\
            ! ^.*-bounce@.*:\
            ! ^owner-.*@.*:\
            ! ^postmaster@.*:\
            ! ^webmaster@.*:\
            ! ^listmaster@.*:\
            ! ^mailer-daemon@.*:\
            ! ^root@.*:\
            ! ^noreply@.*

    condition = ${if eq {$received_for}{[email protected]}}

    no_expn
    transport=notify_transport
    unseen
    no_verify

Q2: How to write multiline string in the config file for "text" ? :

notify_transport:
    driver=autoreply
    [email protected]
    to=$sender_address
    subject=Your mail for
    text="Please resend your messasge to

[email protected]

This is a temporary modification."

© Server Fault or respective owner

Related posts about configuration

Related posts about exim4