[exim] exim script

Top Page
Delete this message
Reply to this message
Author: Emmanuel Salinas
Date:  
To: exim-users
Subject: [exim] exim script
Hi there.. I'm still can't startup my exim..

I found this script and I have some question about it...

source /etc/init.d/functions
on slackware.. Which is my "source"???

#!/bin/sh
# Begin /etc/init.d/exim

#
# Include the functions declared in the /etc/init.d/functions file
#

source /etc/init.d/functions

case "$1" in
        start)
                echo -n "Starting SMTP daemon: Exim"
                loadproc /usr/local/bin/exim -bd
                ;;


        stop)
                echo -n "Stopping SMTP daemon: Exim"
                killproc /usr/local/bin/exim
                ;;


        reload)
                echo -n "Reloading SMTP daemon: Exim"
                reloadproc /usr/local/bin/exim -HUD
               ;;


        restart)
                $0 stop
                /usr/bin/sleep 1
                $0 start
                ;;


        status)
                statusproc /usr/local/bin/exim
                ;;


        *)
                echo "Usage: $0 {start|stop|reload|restart|status}"
                exit 1
        ;;


esac

# End /etc/init.d/eximFrom Dan_Mitton@??? Fri Oct 05 17:25:06 2007
Envelope-to: exim-users@???
Received: from smtp3.ymp.gov ([198.147.246.55]:45106)
    by tahini.csx.cam.ac.uk with esmtp (Exim 4.67)
    (envelope-from <Dan_Mitton@???>) id 1Idpz1-00085G-Sk
    for exim-users@???; Fri, 05 Oct 2007 17:25:06 +0100
Received: from ymln11.ymp.gov ([192.12.95.129]:4603)
    by smtp3.ymp.gov with esmtps (SSLv3:RC4-MD5:128) (Exim 4.67)
    (envelope-from <Dan_Mitton@???>)
    id 1Idpyx-0002UB-Bh; Fri, 05 Oct 2007 09:24:55 -0700
Received: from YDLN1.ymp.gov ([192.12.95.52])
    by YMLN11.YMP.GOV (Lotus Domino Release 6.5.4FP1)
    with ESMTP id 2007100509245468-221546 ;
    Fri, 5 Oct 2007 09:24:54 -0700
In-Reply-To: <1191599628.467.51.camel@???>
MIME-Version: 1.0
Sensitivity:
To: Graeme Fowler <graeme@???>
Message-ID: <OF339A96BC.BE349F5D-ON8825736B.0059F653-8825736B.005A2BB0@???>
From: Dan_Mitton@???
Date: Fri, 5 Oct 2007 09:24:39 -0700
Content-Type: text/plain; charsetuS-ASCII"
X-Spam-Score: -0.9 (/)
X-Spam-Status: No, scoreÐ.9 required~0 tests÷LÐ.399, BAYES_00Ñ.5,
    NO_REAL_NAME.961 autolearnO version^1.8
Cc: exim-users@???
Subject: Re: [exim] match_domain question
X-BeenThere: exim-users@???
X-Mailman-Version: 2.1.7
Precedence: list
List-Id: A user list for the exim MTA <exim-users.exim.org>
List-Unsubscribe: <http://lists.exim.org/mailman/listinfo/exim-users>,
    <mailto:exim-users-request@exim.org?subject¾subscribe>
List-Archive: <http://lists.exim.org/lurker/list/exim-users.html>
List-Post: <mailto:exim-users@exim.org>
List-Help: <mailto:exim-users-request@exim.org?subjectŽlp>
List-Subscribe: <http://lists.exim.org/mailman/listinfo/exim-users>,
    <mailto:exim-users-request@exim.org?subject¥bscribe>
X-List-Received-Date: Fri, 05 Oct 2007 16:25:06 -0000


It also looks like I can use:

bash-2.03# exim -be '${if
match_domain{foo.abc.com}{abc.com:*.abc.com}{true}{false}}'
true
bash-2.03# exim -be '${if
match_domain{abc.com}{abc.com:*.abc.com}{true}{false}}'
true




To:     Dan_Mitton@???
cc:
Subject:        Re: [exim] match_domain question
LSN: Not Relevant
User Filed as: Not a Record


On Fri, 2007-10-05 at 08:38 -0700, Dan_Mitton@??? wrote:
> Why does:
>
> exim -be '${if match_domain{foo.abc.com}{abc.com}{true}{false}}'
>
> return:
>
> false


The short answer is because foo.abc.com isn't the same as abc.com - but
that isn't as obvious as it looks.

match_domain doesn't do anything clever to the search term, it simply
allows the search to use named domain lists (localdomains,
relay_to_domains) in the same way as you might use them elsewhere.

If you had

domainlist check_domains ?oo.com:bar.com:abc.com:foo.abc.com

and you did this within your config somewhere

${if match_domain{foo.abc.com}{+check_domains}{true}{false}}

you should get "true". To test this use:

exim -be '${if
match_domain{foo.abc.com}{foo.com:bar.com:foo.abc.com}{true}{false}}'

and to see where it's doing stuff, use -d+expand or -d+lists

Graeme