From erwin.ambrosch at xhostplus.at Wed Dec 26 15:51:16 2007 From: erwin.ambrosch at xhostplus.at (Erwin Ambrosch|XHOSTPLUS) Date: Thu, 27 Dec 2007 00:51:16 +0100 Subject: [SA-exim] SAEximRunCond question Message-ID: <4772E8F4.3090905@xhostplus.at> Hi, is it possible that SAEximRunCond is getting a value of '0' for mails where the From field is as follows: From <> I got some Mails with "From <>" and for all of them the mainlog keeps lines like the following: Debug: SAEximRunCond expand returned: '0' Not running SA because SAEximRunCond expanded to false (Message-Id: 1J6NYu-0004mr-2j). From <> (host=NULL [82.150.180.249]) for . . . . . . Regards Erwin From marc at merlins.org Fri Dec 28 08:30:52 2007 From: marc at merlins.org (Marc MERLIN) Date: Fri, 28 Dec 2007 08:30:52 -0800 Subject: [SA-exim] SAEximRunCond question In-Reply-To: <4772E8F4.3090905@xhostplus.at> References: <4772E8F4.3090905@xhostplus.at> Message-ID: <20071228163052.GE16791@merlins.org> On Thu, Dec 27, 2007 at 12:51:16AM +0100, Erwin Ambrosch|XHOSTPLUS wrote: > Hi, > > is it possible that SAEximRunCond is getting a value of '0' for mails > where the From field is as follows: > > From <> > > I got some Mails with "From <>" and for all of them the mainlog keeps > lines like the following: > > Debug: SAEximRunCond expand returned: '0' > Not running SA because SAEximRunCond expanded to false (Message-Id: > 1J6NYu-0004mr-2j). From <> (host=NULL [82.150.180.249]) for . . . . . . Well, the first obvious question is what do you have SAEximRunCond set to in your config file? Marc -- "A mouse is a device used to point at the xterm you want to type in" - A.S.R. Microsoft is to operating systems & security .... .... what McDonalds is to gourmet cooking Home page: http://marc.merlins.org/ From marc at merlins.org Sat Dec 29 09:08:29 2007 From: marc at merlins.org (Marc MERLIN) Date: Sat, 29 Dec 2007 09:08:29 -0800 Subject: [SA-exim] SAEximRunCond question In-Reply-To: <4776576E.4030005@xhostplus.at> References: <4772E8F4.3090905@xhostplus.at> <20071228163052.GE16791@merlins.org> <4776576E.4030005@xhostplus.at> Message-ID: <20071229170829.GD24679@merlins.org> On Sat, Dec 29, 2007 at 03:19:26PM +0100, Erwin Ambrosch|XHOSTPLUS wrote: > Marc MERLIN schrieb: >> On Thu, Dec 27, 2007 at 12:51:16AM +0100, Erwin Ambrosch|XHOSTPLUS wrote: >> >>> Hi, >>> >>> is it possible that SAEximRunCond is getting a value of '0' for mails >>> where the From field is as follows: >>> >>> From <> >>> >>> I got some Mails with "From <>" and for all of them the mainlog keeps >>> lines like the following: >>> >>> Debug: SAEximRunCond expand returned: '0' >>> Not running SA because SAEximRunCond expanded to false (Message-Id: >>> 1J6NYu-0004mr-2j). From <> (host=NULL [82.150.180.249]) for . . . . . . >>> >> Well, the first obvious question is what do you have SAEximRunCond set >> to in your config file? >> > This is my setting for SAEximRunCond: > > SAEximRunCond: ${if and { {def:sender_host_address} {!eq > {$sender_host_address}{127.0.0.1}} {!eq > {$sender_host_address}{192.168.1.10}} {!eq > {$sender_host_address}{192.168.1.11}} {!eq > {$sender_host_address}{192.168.1.12}} {!eq > {$sender_address_domain}{${lookup pgsql {SELECT DISTINCT email_domain FROM > xhost_email_domain WHERE email_domain='$sender_address_domain'}}}} {!eq > {$h_X-SA-Do-Not-Run:}{Yes}} } {1}{0}} Well, it does look like your problem is in the mysql expression here. If $sender_address_domain, you're querying your xhost_email_domain for an empty string when you get "mail from: <>" I'm going to guess that your SQL expression matches there. Marc -- "A mouse is a device used to point at the xterm you want to type in" - A.S.R. Microsoft is to operating systems & security .... .... what McDonalds is to gourmet cooking Home page: http://marc.merlins.org/