[EXIM] mail list forwarder

Page principale
Supprimer ce message
Répondre à ce message
Auteur: David Martin
Date:  
À: 'exim-users@exim.org'
Sujet: [EXIM] mail list forwarder
Hello. I am a novice exim filter developer. I've reviewed the exim.org
documentation and the archives of this list, but cannot find an answer to
my question. I'd appreciate any help you can offer.

With the (user, not system) filter below, I'm attempting to implement a
simple mail list forwarder for my domain. It works for the "cabin" list
address, forwarding mail to all the subsequent "deliver" commands.
However, it does not work for the "testlist", "students", or "graduates"
list addresses.

Can anyone spot what I'm doing wrong? I'm sure it's quite simple, and that
I'll feel foolish when one of you points it out to me.

Thanks in advance for your help.

# Exim Filter <<== do not edit or remove this line!

# This ensures no delivery loops during testing.
if error_message then finish endif

if    $reply_address contains "@cyberpromo.com"
then    
    # if the statement above is true,
    # just send the email to a "black hole" in cyberspace
    seen finish


elif    $reply_address contains "@spamsite.com" and
    $reply_address does not contain "postmaster@"
then    
    seen finish


elif    $original_local_part contains "cabin"
then    
    deliver 76652.1662@???
    deliver awiner@???
    deliver DavidMartin@???
    deliver dray@???
    deliver edwardr@???
    deliver hchansen@???
    deliver jdijamco@???
    deliver jyu@???
    deliver KimMartin@???
    deliver rbecker@???
    deliver sanjay@???
    deliver sanjay1@???


elif    $original_local_part contains "testlist"
then    
    deliver DavidMartin@???
    deliver KimMartin@???


elif    $original_local_part contains "students"
then    
    deliver dgarcia@???
    deliver indigold@???
    deliver miller01@???


elif    $original_local_part contains "graduates"
then    
    deliver aconant@???
    deliver BakisCt@???
    deliver BanzaiSGI@???
    deliver Benting@???
    deliver BLEMLEY@???
    deliver cheryl_dietz@???
    deliver colleen@???
    deliver dalinthi@???
    deliver DavidMartin@???
    deliver dneumann@???
    deliver Dwhess3@???
    deliver fmontez@???
    deliver fourwnds@???
    deliver freda@???
    deliver freedomcall@???
    deliver Gary_Dietz@???
    deliver hirobyn@???
    deliver ibtoys@???
    deliver Imagept@???
    deliver janis@???
    deliver jcoop449@???
    deliver jenleigh26@???
    deliver jgraham@???
    deliver jtenenbaum@???
    deliver JudiKnits@???
    deliver jwebb@???
    deliver KBennett@???
    deliver KimMartin@???
    deliver LBA468@???
    deliver lorazz@???
    deliver lulabela@???
    deliver lynn.shibata@???
    deliver marion_montez@???
    deliver martinjoan@???
    deliver michael_neumann@???
    deliver mike1256@???
    deliver mikeh@???
    deliver nmcgrath@???
    deliver ojiw@???
    deliver OOOPS42@???
    deliver pcmccabe@???
    deliver pjlrgl@???
    deliver rarno@???
    deliver raykl@???
    deliver RNJANERN@???
    deliver RSSarro@???
    deliver skslynch@???
    deliver SMARTIN365@???
    deliver suds@???
    deliver tcallan@???
    deliver Terri@???
    deliver TLCMsRed@???
    deliver TommoOV@???
    deliver wileE134@???


endif


Warm regards,
David Martin


--
*** Exim information can be found at http://www.exim.org/ ***