From jon at sd-6.org Wed Mar 1 19:42:25 2006 From: jon at sd-6.org (Jon Ferguson) Date: Wed, 1 Mar 2006 21:42:25 -0600 Subject: [SA-exim] Strange header problem. Message-ID: Messages rejected by sa-exim produce headers similar to this >From CSanchez5 at btcentralplus.com Thu Jan 1 00:00:01 1970 Received: from ****************** ([***********] helo=********************) By mail2 with esmtp (Exim 4.60) (envelope-from ) id 1F2LxA-0005ne-M2 for ****@*****.org; Thu, 26 Jan 2006 23:15:20 -0600 The top header of every message in SApermpreject and SAtempreject is a From header but a date is appended, on top of that the date is incorrect. I assume that violates some RFC standard. I can't figure why it is doing this. I am trying to build a web interface to delete or release rejected messages but the date in the From header is causing problems. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.merlins.org/archives/sa-exim/attachments/20060301/9712b6b6/attachment.htm From chris at northfolk.ca Thu Mar 2 19:49:26 2006 From: chris at northfolk.ca (Chris Purves) Date: Fri, 03 Mar 2006 11:49:26 +0800 Subject: [SA-exim] test subscription Message-ID: <4407BCC6.7020007@northfolk.ca> Sorry to send a test e-mail to the list, but I have been having problems receiving mailings. -- Good day, eh. Chris From joh_walt at yahoo.de Mon Mar 6 14:42:19 2006 From: joh_walt at yahoo.de (Johannes Walther) Date: Mon, 6 Mar 2006 23:42:19 +0100 (CET) Subject: [SA-exim] SA-Exim does only temprejects Message-ID: <20060306224219.46858.qmail@web26910.mail.ukl.yahoo.com> Hello, today I activated SA-Exim within my Exim installation. But though it rejects spam, it doesn't really work. Versions are SA-Exim 4.2, SA 3.0.3 If I get spam, it's only temporarily rejected, e.g. with Action: temporarily rejected message: score=17.5 required=5.0 trigger=7.0 while it should get devnulled. Debug log says SA: Debug3: expanded SAteergrube = 25.00 SA: Debug3: expanded SAdevnull = 15.00 SA: Debug3: expanded SApermreject = 9.00 SA: Debug3: expanded SAtempreject = 7.00 SA: Debug: SAEximRunCond expand returned: '1' SA: Debug3: did not find read GREYLIST_ISWHITE string in X-Spam-Status The other problem is if I get mail to postmaster it gets rejected although SAEximRejCond: ${if !eq {$h_X-SA-Do-Not-Rej:}{Yes} {1}{0}} is in sa-exim.conf and X-SA-Do-Not-Rej: Yes was set by Exim (checked by looking at the mail saved into SAtempreject/). I must have missed something, but what? Regards, Johannes ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de From joh_walt at yahoo.de Tue Mar 7 05:55:19 2006 From: joh_walt at yahoo.de (Johannes Walther) Date: Tue, 7 Mar 2006 14:55:19 +0100 (CET) Subject: [SA-exim] SA-Exim does only temprejects In-Reply-To: <20060306224219.46858.qmail@web26910.mail.ukl.yahoo.com> Message-ID: <20060307135519.46647.qmail@web26902.mail.ukl.yahoo.com> --- Johannes Walther schrieb: > The other problem is if I get mail to postmaster it > gets rejected although > SAEximRejCond: ${if !eq {$h_X-SA-Do-Not-Rej:}{Yes} > {1}{0}} > is in sa-exim.conf > and > X-SA-Do-Not-Rej: Yes > was set by Exim (checked by looking at the mail > saved > into SAtempreject/). Just tested it with SAEximRejCond: 0 in sa-exim.conf. Simply doesn't affect anything. It still temprejects. Johannes ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de From joh_walt at yahoo.de Tue Mar 7 07:13:06 2006 From: joh_walt at yahoo.de (Johannes Walther) Date: Tue, 7 Mar 2006 16:13:06 +0100 (CET) Subject: [SA-exim] SA-Exim does only temprejects In-Reply-To: <20060306224219.46858.qmail@web26910.mail.ukl.yahoo.com> Message-ID: <20060307151306.33901.qmail@web26904.mail.ukl.yahoo.com> --- Johannes Walther wrote: > The other problem is if I get mail to postmaster it > gets rejected although > SAEximRejCond: ${if !eq {$h_X-SA-Do-Not-Rej:}{Yes} > {1}{0}} > is in sa-exim.conf > and > X-SA-Do-Not-Rej: Yes > was set by Exim (checked by looking at the mail > saved > into SAtempreject/). Just tested it with SAEximRejCond: 0 in sa-exim.conf. Simply doesn't affect anything. It still temprejects. Johannes ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de From brian at brie.com Tue Mar 7 20:57:54 2006 From: brian at brie.com (Brian Lavender) Date: Tue, 7 Mar 2006 20:57:54 -0800 Subject: [SA-exim] SA-Exim does only temprejects In-Reply-To: <20060306224219.46858.qmail@web26910.mail.ukl.yahoo.com> References: <20060306224219.46858.qmail@web26910.mail.ukl.yahoo.com> Message-ID: <20060308045754.GB11511@brie.com> On Mon, Mar 06, 2006 at 11:42:19PM +0100, Johannes Walther wrote: > Hello, > [snip] > > The other problem is if I get mail to postmaster it > gets rejected although > SAEximRejCond: ${if !eq {$h_X-SA-Do-Not-Rej:}{Yes} > {1}{0}} > is in sa-exim.conf > and > X-SA-Do-Not-Rej: Yes > was set by Exim (checked by looking at the mail saved > into SAtempreject/). > > I must have missed something, but what? Try adding the following to your config area for acl. /etc/exim4/conf.d/acl/20_check_rcpt_base warn message = X-SA-Do-Not-Rej: Yes local_parts = +nosarej:postmaster:abuse brian -- Brian Lavender http://www.brie.com/brian/ From joh_walt at yahoo.de Fri Mar 10 06:20:14 2006 From: joh_walt at yahoo.de (Johannes Walther) Date: Fri, 10 Mar 2006 15:20:14 +0100 (CET) Subject: [SA-exim] SA-Exim does only temprejects In-Reply-To: <20060308045754.GB11511@brie.com> Message-ID: <20060310142014.49541.qmail@web26909.mail.ukl.yahoo.com> --- Brian Lavender schrieb: > > X-SA-Do-Not-Rej: Yes > > was set by Exim (checked by looking at the mail > saved > > into SAtempreject/). > > > > I must have missed something, but what? > > Try adding the following to your config area for > acl. > > /etc/exim4/conf.d/acl/20_check_rcpt_base > > warn message = X-SA-Do-Not-Rej: Yes > local_parts = +nosarej:postmaster:abuse Err sorry? Did you read my postings? The header IS set by exim already but it doesn't help. Even SAEximRejCond: 0 in sa-exim.conf doesn't prevent SA-Exim from rejecting. Johannes ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de From joh_walt at yahoo.de Sun Mar 12 08:21:21 2006 From: joh_walt at yahoo.de (Johannes Walther) Date: Sun, 12 Mar 2006 17:21:21 +0100 (CET) Subject: [SA-exim] SA-Exim does only temprejects In-Reply-To: <20060306224219.46858.qmail@web26910.mail.ukl.yahoo.com> Message-ID: <20060312162121.33178.qmail@web26915.mail.ukl.yahoo.com> --- Johannes Walther wrote: > today I activated SA-Exim within my Exim > installation. > But though it rejects spam, it doesn't really work. > > Versions are SA-Exim 4.2, SA 3.0.3 > > If I get spam, it's only temporarily rejected, > [..] > > The other problem is if I get mail to postmaster it > gets rejected The problem was that I accidentally deactivated X-Spam-Flag when installing SpamAssassin. I deactivated all via clear_headers and readded only the headers I thought are necessary (for me and SA-Exim). I thought the Yes in X-Spam-Status would be the flag used to detect spam by SA-Exim. So I'm sorry for the false alarm. But I think you should make clear what's needed by SA-Exim to work on the Website/README. Johannes ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de From brian at brie.com Tue Mar 14 23:10:12 2006 From: brian at brie.com (Brian Lavender) Date: Tue, 14 Mar 2006 23:10:12 -0800 Subject: [SA-exim] SA-Exim does only temprejects In-Reply-To: <20060310142014.49541.qmail@web26909.mail.ukl.yahoo.com> References: <20060308045754.GB11511@brie.com> <20060310142014.49541.qmail@web26909.mail.ukl.yahoo.com> Message-ID: <20060315071012.GA27990@brie.com> On Fri, Mar 10, 2006 at 03:20:14PM +0100, Johannes Walther wrote: > --- Brian Lavender schrieb: > > > > X-SA-Do-Not-Rej: Yes > > > was set by Exim (checked by looking at the mail > > saved > > > into SAtempreject/). > > > > > > I must have missed something, but what? > > > > Try adding the following to your config area for > > acl. > > > > /etc/exim4/conf.d/acl/20_check_rcpt_base > > > > warn message = X-SA-Do-Not-Rej: Yes > > local_parts = +nosarej:postmaster:abuse > > Err sorry? Did you read my postings? > The header IS set by exim already but it doesn't help. > Even SAEximRejCond: 0 in sa-exim.conf doesn't prevent > SA-Exim from rejecting. And you had this rule as well? SAEximRejCond: ${if !eq {$h_X-SA-Do-Not-Rej:}{Yes} {1}{0}} -- Brian Lavender http://www.brie.com/brian/ From brian at brie.com Tue Mar 14 23:27:04 2006 From: brian at brie.com (Brian Lavender) Date: Tue, 14 Mar 2006 23:27:04 -0800 Subject: [SA-exim] SA-Exim does only temprejects In-Reply-To: <20060306224219.46858.qmail@web26910.mail.ukl.yahoo.com> References: <20060306224219.46858.qmail@web26910.mail.ukl.yahoo.com> Message-ID: <20060315072704.GB27990@brie.com> On Mon, Mar 06, 2006 at 11:42:19PM +0100, Johannes Walther wrote: > Hello, > > today I activated SA-Exim within my Exim installation. > But though it rejects spam, it doesn't really work. > > Versions are SA-Exim 4.2, SA 3.0.3 > > If I get spam, it's only temporarily rejected, e.g. > with > Action: temporarily rejected message: score=17.5 > required=5.0 trigger=7.0 > while it should get devnulled. Debug log says > SA: Debug3: expanded SAteergrube = 25.00 > SA: Debug3: expanded SAdevnull = 15.00 > SA: Debug3: expanded SApermreject = 9.00 > SA: Debug3: expanded SAtempreject = 7.00 > SA: Debug: SAEximRunCond expand returned: '1' > SA: Debug3: did not find read GREYLIST_ISWHITE string > in X-Spam-Status > > > The other problem is if I get mail to postmaster it > gets rejected although > SAEximRejCond: ${if !eq {$h_X-SA-Do-Not-Rej:}{Yes} > {1}{0}} Is the above rule all on one line? > is in sa-exim.conf > and > X-SA-Do-Not-Rej: Yes > was set by Exim (checked by looking at the mail saved > into SAtempreject/). > > I must have missed something, but what? Hmm, it works for me in a slightly different situation. I am doing the same for emails coming from a certain IP Address. I am setting the header which comes out to be (copy and pasted from a resulting incoming email). X-SA-Do-Not-Rej: Yes I have the rule in the file /etc/exim4/conf.d/acl/20_exim4-config_whitelist_local_deny ### acl/20_exim4-config_whitelist_local_deny ################################# [snip] acl_whitelist_local_deny: accept hosts = ${if exists{CONFDIR/local_host_whitelist}\ {CONFDIR/local_host_whitelist}\ {}} accept senders = ${if exists{CONFDIR/local_sender_whitelist}\ {CONFDIR/local_sender_whitelist}\ {}} warn message = X-SA-Do-Not-Rej: Yes hosts = 199.237.6.86 In the file /etc/exim4/sa-exim.conf SAEximRejCond: ${if !eq {$h_X-SA-Do-Not-Rej:}{Yes} {1}{0}} And no rejects.... -- Brian Lavender http://www.brie.com/brian/ From brian at brie.com Tue Mar 14 23:32:09 2006 From: brian at brie.com (Brian Lavender) Date: Tue, 14 Mar 2006 23:32:09 -0800 Subject: [SA-exim] SA-Exim does only temprejects In-Reply-To: <20060312162121.33178.qmail@web26915.mail.ukl.yahoo.com> References: <20060306224219.46858.qmail@web26910.mail.ukl.yahoo.com> <20060312162121.33178.qmail@web26915.mail.ukl.yahoo.com> Message-ID: <20060315073209.GC27990@brie.com> On Sun, Mar 12, 2006 at 05:21:21PM +0100, Johannes Walther wrote: > --- Johannes Walther wrote: > > today I activated SA-Exim within my Exim > > installation. > > But though it rejects spam, it doesn't really work. > > > > Versions are SA-Exim 4.2, SA 3.0.3 > > > > If I get spam, it's only temporarily rejected, > > [..] > > > > The other problem is if I get mail to postmaster it > > gets rejected > > The problem was that I accidentally deactivated > X-Spam-Flag when installing SpamAssassin. > I deactivated all via clear_headers and readded only > the headers I thought are necessary (for me and > SA-Exim). > I thought the Yes in X-Spam-Status would be the flag > used to detect spam by SA-Exim. > > So I'm sorry for the false alarm. But I think you > should make clear what's needed by SA-Exim to work on > the Website/README. Oh, you got it! Good. It appears I was shooting off in a different direction. My experience has been mostly through trial and error. I was quite excited to stop rejects from a mail server that has my address under one of its aliases. brian -- Brian Lavender http://www.brie.com/brian/ From j__blake at hotmail.com Tue Mar 21 12:27:20 2006 From: j__blake at hotmail.com (Jim Blake) Date: Tue, 21 Mar 2006 20:27:20 +0000 Subject: [SA-exim] What to do with SApermreject/SAtempreject Message-ID: Well, the good news is that SA-Exim is installed on my Debian (2.6 Kernel) mail server, is doing what it was designed to do, and "parking" my spam in the SApermreject directory. Now I want to automate things a bit more, and include some automated means to alert the system manager (me) when new spam arrives, and when I have been alterted, to give me a way to read it, rather than just "more"ing the files. Has anyone any recommendations for ways that they have done these tasks, or is everyone doing it "longhand" and inspecting the SApermreject directory? Alternatively, have I missed something really obvious?? ;) Thanks Jim From gregh at hillnet.us Tue Mar 21 12:59:24 2006 From: gregh at hillnet.us (Greg Hill) Date: Tue, 21 Mar 2006 13:59:24 -0700 (MST) Subject: [SA-exim] What to do with SApermreject/SAtempreject In-Reply-To: References: Message-ID: I must confess... at first I intended to scan through the SApermreject folder to be sure that nothing was there incorrectly. But I've ended up using the 'rm -rf' utility instead.. ;-) Greg On Tue, 21 Mar 2006, Jim Blake wrote: > Well, the good news is that SA-Exim is installed on my Debian (2.6 Kernel) > mail server, is doing what it was designed to do, and "parking" my spam in > the SApermreject directory. > > Now I want to automate things a bit more, and include some automated means > to alert the system manager (me) when new spam arrives, and when I have been > alterted, to give me a way to read it, rather than just "more"ing the files. > > Has anyone any recommendations for ways that they have done these tasks, or > is everyone doing it "longhand" and inspecting the SApermreject directory? > > Alternatively, have I missed something really obvious?? ;) > > Thanks > Jim > > > > _______________________________________________ > SA-Exim mailing list > SA-Exim at lists.merlins.org > http://lists.merlins.org/lists/listinfo/sa-exim > From marc at merlins.org Tue Mar 21 23:11:25 2006 From: marc at merlins.org (Marc MERLIN) Date: Tue, 21 Mar 2006 23:11:25 -0800 Subject: [SA-exim] List issues Message-ID: <20060322071125.GD3761@merlins.org> There are indeed a few problems with mailman on this list. My apologies for this, I'm working on fixing the problem 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/ | Finger marc_f at merlins.org for PGP key From marc at merlins.org Wed Mar 22 08:12:48 2006 From: marc at merlins.org (Marc MERLIN) Date: Wed, 22 Mar 2006 08:12:48 -0800 Subject: [SA-exim] Problems with the list Message-ID: <20060322161248.GE3761@merlins.org> There were some problems with the mails sent to this list recently, apparently a weird bug with mailman that I couldn't track. Eventually, I upgraded mailman, which will hopefully take care of it. Sorry about the delay in taking care of this 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/ | Finger marc_f at merlins.org for PGP key From chris at northfolk.ca Wed Mar 22 08:54:32 2006 From: chris at northfolk.ca (Chris Purves) Date: Wed, 22 Mar 2006 08:54:32 -0800 Subject: [SA-exim] return path not passed to spamassassin Message-ID: <20060322165432.GC11996@valinux.com> I have had the problem that SPF checking does not work when spamassassin is called from exim. It works fine when running spamc after a message has been delivered. I believe that I have tracked the problem down to the return path not being added to the headers by exim until after spamassassin is finished. It seems to me that this is something sa-exim should have configured automatically...of course it's just as likely something I should have configured but didn't. I found this thread that discusses the same problem. http://www.nabble.com/Availability-of-return-path-to-Exiscan-t49803.html Please provide suggestions as to the best way to solve this. Thanks. -- Good day, eh. Chris From kristopher.austin at oc.edu Wed Mar 22 09:15:20 2006 From: kristopher.austin at oc.edu (Kristopher Austin) Date: Wed, 22 Mar 2006 11:15:20 -0600 Subject: [SA-exim] return path not passed to spamassassin Message-ID: <0B91381A437EEF49AA5ED37EC5EDD55502DBBD3B@fsmail.oc.edu> Chris, I had this same problem and then noticed that SA-Exim adds X-SA-Exim-Mail-From header before SA sees it. All I had to do was add envelope_sender_header X-SA-Exim-Mail-From to my SA config file and everything started working as expected. SPF works perfectly after adding that line to SA. I hope that helps. Kris > -----Original Message----- > From: sa-exim-bounces+kristopher.austin=oc.edu at lists.merlins.org > [mailto:sa-exim-bounces+kristopher.austin=oc.edu at lists.merlins.org] On > Behalf Of Chris Purves > Sent: Wednesday, March 22, 2006 10:55 AM > To: sa-exim at lists.merlins.org > Subject: [SA-exim] return path not passed to spamassassin > > I have had the problem that SPF checking does not work when spamassassin > is called from exim. It works fine when running spamc after a message > has been delivered. I believe that I have tracked the problem down to > the return path not being added to the headers by exim until after > spamassassin is finished. > > It seems to me that this is something sa-exim should have configured > automatically...of course it's just as likely something I should have > configured but didn't. > > I found this thread that discusses the same problem. > > http://www.nabble.com/Availability-of-return-path-to-Exiscan-t49803.html > > Please provide suggestions as to the best way to solve this. > > Thanks. > > -- > Good day, eh. > Chris > > _______________________________________________ > SA-Exim mailing list > SA-Exim at lists.merlins.org > http://lists.merlins.org/lists/listinfo/sa-exim From jon at sd-6.org Wed Mar 22 09:17:39 2006 From: jon at sd-6.org (Jon Ferguson) Date: Wed, 22 Mar 2006 09:17:39 -0800 Subject: [SA-exim] Strange header problem. Message-ID: <20060322171739.GA16834@merlins.org> Messages rejected by sa-exim produce headers similar to this >From CSanchez5 at btcentralplus.com Thu Jan 1 00:00:01 1970 Received: from ****************** ([***********] helo=********************) By mail2 with esmtp (Exim 4.60) (envelope-from ) id 1F2LxA-0005ne-M2 for ****@*****.org; Thu, 26 Jan 2006 23:15:20 -0600 The top header of every message in SApermpreject and SAtempreject is a From header but a date is appended, on top of that the date is incorrect. I assume that violates some RFC standard. I can't figure why it is doing this. I am trying to build a web interface to delete or release rejected messages but the date in the From header is causing problems. ----- End forwarded message ----- From marc at merlins.org Wed Mar 22 09:28:22 2006 From: marc at merlins.org (Marc MERLIN) Date: Wed, 22 Mar 2006 09:28:22 -0800 Subject: [SA-exim] return path not passed to spamassassin In-Reply-To: <20060322165432.GC11996@valinux.com> References: <20060322165432.GC11996@valinux.com> Message-ID: <20060322172822.GG3761@merlins.org> On Wed, Mar 22, 2006 at 08:54:32AM -0800, Chris Purves wrote: > I have had the problem that SPF checking does not work when spamassassin > is called from exim. It works fine when running spamc after a message > has been delivered. I believe that I have tracked the problem down to > the return path not being added to the headers by exim until after > spamassassin is finished. Yes, that would make sense. > It seems to me that this is something sa-exim should have configured > automatically...of course it's just as likely something I should have > configured but didn't. SA-Exim can only work with what it receives from exim. If Exim hasn't added the header yet, SA-Exim won't see it and pass it on to SA > I found this thread that discusses the same problem. > > http://www.nabble.com/Availability-of-return-path-to-Exiscan-t49803.html > > Please provide suggestions as to the best way to solve this. SA-Exim already puts the sender_address in X-SA-Exim-Mail-From: You could slightly modify SA to read that header instead of the non existent Return-Path Marc PS: Sorry again about the delay, I've had little extra time recently -- "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/ | Finger marc_f at merlins.org for PGP key From marc at merlins.org Wed Mar 22 09:41:02 2006 From: marc at merlins.org (Marc MERLIN) Date: Wed, 22 Mar 2006 09:41:02 -0800 Subject: [SA-exim] Strange header problem. In-Reply-To: <20060322171739.GA16834@merlins.org> References: <20060322171739.GA16834@merlins.org> Message-ID: <20060322174102.GI3761@merlins.org> On Wed, Mar 22, 2006 at 09:17:39AM -0800, Jon Ferguson wrote: > Messages rejected by sa-exim produce headers similar to this > > >From CSanchez5 at btcentralplus.com Thu Jan 1 00:00:01 1970 > > Received: from ****************** ([***********] helo=********************) > > By mail2 with esmtp (Exim 4.60) > > (envelope-from ) > > id 1F2LxA-0005ne-M2 > > for ****@*****.org; Thu, 26 Jan 2006 23:15:20 -0600 > > The top header of every message in SApermpreject and SAtempreject is a From > header but a date is appended, on top of that the date is incorrect. I > assume that violates some RFC standard. I can't figure why it is doing > this. I am trying to build a web interface to delete or release rejected > messages but the date in the From header is causing problems. SA-Exim adds that fake line at the top to make the message look like an mbox message in addition to being in a maildir folder. If you read the maildir folder as maildir, that From line should not be used, but I can see that some tool would be upset by that. Ultimately, this line is fake and it's added by SA-Exim only so that you can do cat new/* > mbox; mutt -f mbox The date should have a correct format though. If you think it upsets your tool, you can edit it in the sa-exim source or binary and change it to whatever you'd like 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/ | Finger marc_f at merlins.org for PGP key From jon at sd-6.org Wed Mar 22 10:09:11 2006 From: jon at sd-6.org (Jon Ferguson) Date: Wed, 22 Mar 2006 12:09:11 -0600 Subject: [SA-exim] Strange header problem. In-Reply-To: <20060322174102.GI3761@merlins.org> Message-ID: Thanks for the reply. Shortly after sending the request, I found "SAPrependArchiveWithFrom" in the config. Setting this to false prevented the line from being prepended. I have no need for mbox, so there should not be any adverse affects, correct? Just to clarify, the date is intentionally not correct? -----Original Message----- From: Marc MERLIN [mailto:marc at merlins.org] Sent: Wednesday, March 22, 2006 11:41 AM To: Jon Ferguson Cc: sa-exim at lists.merlins.org Subject: Re: [SA-exim] Strange header problem. On Wed, Mar 22, 2006 at 09:17:39AM -0800, Jon Ferguson wrote: > Messages rejected by sa-exim produce headers similar to this > > >From CSanchez5 at btcentralplus.com Thu Jan 1 00:00:01 1970 > > Received: from ****************** ([***********] helo=********************) > > By mail2 with esmtp (Exim 4.60) > > (envelope-from ) > > id 1F2LxA-0005ne-M2 > > for ****@*****.org; Thu, 26 Jan 2006 23:15:20 -0600 > > The top header of every message in SApermpreject and SAtempreject is a From > header but a date is appended, on top of that the date is incorrect. I > assume that violates some RFC standard. I can't figure why it is doing > this. I am trying to build a web interface to delete or release rejected > messages but the date in the From header is causing problems. SA-Exim adds that fake line at the top to make the message look like an mbox message in addition to being in a maildir folder. If you read the maildir folder as maildir, that From line should not be used, but I can see that some tool would be upset by that. Ultimately, this line is fake and it's added by SA-Exim only so that you can do cat new/* > mbox; mutt -f mbox The date should have a correct format though. If you think it upsets your tool, you can edit it in the sa-exim source or binary and change it to whatever you'd like 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/ | Finger marc_f at merlins.org for PGP key From marc at merlins.org Wed Mar 22 10:25:46 2006 From: marc at merlins.org (Marc MERLIN) Date: Wed, 22 Mar 2006 10:25:46 -0800 Subject: [SA-exim] Strange header problem. In-Reply-To: References: <20060322174102.GI3761@merlins.org> Message-ID: <20060322182546.GK3761@merlins.org> On Wed, Mar 22, 2006 at 12:09:11PM -0600, Jon Ferguson wrote: > > Thanks for the reply. Shortly after sending the request, I found > "SAPrependArchiveWithFrom" in the config. Setting this to false prevented > the line from being prepended. I have no need for mbox, so there should not > be any adverse affects, correct? Just to clarify, the date is > intentionally not correct? Yes, yes, and yes :) The header line is really just there to make mbox parsing happy. The date is hardcoded because I was too lazy to try and parse the Date: header for all its possible values and mis-values to generate a correct From_ with a real date. That date is not really important anyway. 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/ | Finger marc_f at merlins.org for PGP key From chris at northfolk.ca Wed Mar 22 18:02:31 2006 From: chris at northfolk.ca (Chris Purves) Date: Thu, 23 Mar 2006 10:02:31 +0800 Subject: [SA-exim] return path not passed to spamassassin In-Reply-To: <0B91381A437EEF49AA5ED37EC5EDD55502DBBD3B@fsmail.oc.edu> References: <0B91381A437EEF49AA5ED37EC5EDD55502DBBD3B@fsmail.oc.edu> Message-ID: <442201B7.5050301@northfolk.ca> Kristopher Austin wrote: >>Behalf Of Chris Purves >>I have had the problem that SPF checking does not work when >>spamassassin >>is called from exim. It works fine when running spamc after a message >>has been delivered. I believe that I have tracked the problem down to >>the return path not being added to the headers by exim until after >>spamassassin is finished. >> >>It seems to me that this is something sa-exim should have configured >>automatically...of course it's just as likely something I should have >>configured but didn't. >> >>Please provide suggestions as to the best way to solve this. >> > Chris, > > I had this same problem and then noticed that SA-Exim adds > X-SA-Exim-Mail-From header before SA sees it. > > All I had to do was add > > envelope_sender_header X-SA-Exim-Mail-From > > to my SA config file and everything started working as expected. SPF > works perfectly after adding that line to SA. > > I hope that helps. > That's it! Thanks a lot, Kris. -- Good day, eh. Chris From chris at northfolk.ca Wed Mar 22 18:39:20 2006 From: chris at northfolk.ca (Chris Purves) Date: Thu, 23 Mar 2006 10:39:20 +0800 Subject: [SA-exim] return path not passed to spamassassin In-Reply-To: <20060322172822.GG3761@merlins.org> References: <20060322165432.GC11996@valinux.com> <20060322172822.GG3761@merlins.org> Message-ID: <44220A58.8050109@northfolk.ca> Marc MERLIN wrote: > On Wed, Mar 22, 2006 at 08:54:32AM -0800, Chris Purves wrote: > >>I have had the problem that SPF checking does not work when spamassassin >>is called from exim. It works fine when running spamc after a message >>has been delivered. I believe that I have tracked the problem down to >>the return path not being added to the headers by exim until after >>spamassassin is finished. > > SA-Exim already puts the sender_address in X-SA-Exim-Mail-From: > You could slightly modify SA to read that header instead of the non existent > Return-Path Kristopher Austin's suggestion easily solved the problem. Perhaps you could add this to the sa-exim documentation. > > PS: Sorry again about the delay, I've had little extra time recently No worries. :) -- Good day, eh. Chris From marc at merlins.org Wed Mar 22 21:06:32 2006 From: marc at merlins.org (Marc MERLIN) Date: Wed, 22 Mar 2006 21:06:32 -0800 Subject: [SA-exim] return path not passed to spamassassin In-Reply-To: <44220A58.8050109@northfolk.ca> References: <20060322165432.GC11996@valinux.com> <20060322172822.GG3761@merlins.org> <44220A58.8050109@northfolk.ca> Message-ID: <20060323050632.GL3761@merlins.org> On Thu, Mar 23, 2006 at 10:39:20AM +0800, Chris Purves wrote: > Marc MERLIN wrote: > > On Wed, Mar 22, 2006 at 08:54:32AM -0800, Chris Purves wrote: > > > >>I have had the problem that SPF checking does not work when spamassassin > >>is called from exim. It works fine when running spamc after a message > >>has been delivered. I believe that I have tracked the problem down to > >>the return path not being added to the headers by exim until after > >>spamassassin is finished. > > > > > SA-Exim already puts the sender_address in X-SA-Exim-Mail-From: > > You could slightly modify SA to read that header instead of the non existent > > Return-Path > > Kristopher Austin's suggestion easily solved the problem. Perhaps you > could add this to the sa-exim documentation. I've already added to CVS :) Cheers, 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/ | Finger marc_f at merlins.org for PGP key From chris at northfolk.ca Fri Mar 31 21:40:07 2006 From: chris at northfolk.ca (Chris Purves) Date: Sat, 1 Apr 2006 13:40:07 +0800 Subject: [SA-exim] Cannot send message to self using external smtp server Message-ID: <200604011340.07170.chris@northfolk.ca> If I send a message to myself using a 3rd party SMTP server, sa-exim rejects the message and I receive the following message in the returned mail: : host mail.northfolk.ca[220.234.29.148] said: 500 error ? ? (in reply to MAIL FROM command) There is no record of the mail in either mainlog, rejectlog, or paniclog. If I set SAEximRunCond: 0 in sa-exim.conf and restart exim the same message gets through. I can send to myself with sa-exim enabled if I use my own server for SMTP. Below are the headers from the offending mail with sa-exim is disabled: Return-path: Envelope-to: chris at northfolk.ca Delivery-date: Sat, 01 Apr 2006 13:22:59 +0800 Received: from out1.smtp.messagingengine.com ([66.111.4.25]) by aurora.northfolk.ca with esmtp (Exim 4.50) id 1FPYZe-00034Z-Kp for chris at northfolk.ca; Sat, 01 Apr 2006 13:22:59 +0800 Received: from frontend2.internal (frontend2.internal [10.202.2.151]) by frontend1.messagingengine.com (Postfix) with ESMTP id 16ED7D4393B for ; Sat, 1 Apr 2006 00:22:56 -0500 (EST) Received: from frontend3.messagingengine.com ([10.202.2.152]) by frontend2.internal (MEProxy); Sat, 01 Apr 2006 00:22:54 -0500 X-Sasl-enc: ZMawXja4OsHHA9/ENyIWuLKmYLn8MLp42vtoCtiIvi01 1143868973 Received: from king-graham (unknown [220.234.29.148]) by frontend3.messagingengine.com (Postfix) with ESMTP id 622E3B45 for ; Sat, 1 Apr 2006 00:22:53 -0500 (EST) From: Chris Purves To: chris at northfolk.ca Subject: test Date: Sat, 1 Apr 2006 13:25:29 +0800 User-Agent: KMail/1.8.3 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200604011325.29759.chris at northfolk.ca> X-SA-Exim-Connect-IP: 66.111.4.25 X-SA-Exim-Mail-From: chris at northfolk.ca X-SA-Exim-Scanned: No (on aurora.northfolk.ca); SAEximRunCond expanded to false X-UID: 2898 X-Length: 1426 test -- Good day, eh. Chris -- Good day, eh. Chris