From j.carter at ieee.org Sun Dec 7 03:48:02 2003 From: j.carter at ieee.org (Jeffrey Carter) Date: Sat Dec 6 19:48:04 2003 Subject: [SA-exim] Remove SA Header for non SPAM Message-ID: <1070768866.20850.9.camel@brass> > On Sat, Nov 22, 2003 at 05:47:45PM +0100, Torsten Mueller wrote: >> Hello, >> >> i run SA v 2.60, and sa-exim as >> local_scan_path = /usr/local/exim/lib/sa-exim.so >> >> i want to exclude the SA header from non SPAM mails. >> I tested some configurations, but didn't succeed. >You need to remove the headers SA puts in exim.conf >(see header remove), or in exim's system_filter > >Marc I have the same problem, and I have been trying without success to get the headers_remove option to do anything in the transport description. As you should be able to see in this e-mail, X-SA-Do-Not-Run: etc get sent in outgoing mail. I'm using sa-exim 3.1, exim 4.22. I think I've pulled the relevant bits in from the examples on the sa-exim web site, but nothing seems to have an effect. # This transport is used for delivering messages over SMTP connections. remote_smtp: driver = smtp # This is generally set on messages originating from local users and it tells # SA-Exim not to scan the message or that the message was scanned. # Let's remove these headers if the message is sent remotely headers_remove = X-SA-Do-Not-Run:X-SA-Exim-Scanned:X-SA-Exim-Rcpt-To:X-SA-Exim-Mail-From:X-SA-Exim-Version Is there an example of stripping these in exim's system filter somewhere that I've missed? Jeff Carter From sdickenson at keyschool.org Sun Dec 7 17:19:19 2003 From: sdickenson at keyschool.org (Dickenson, Steven) Date: Sun Dec 7 14:19:52 2003 Subject: [SA-exim] Remove SA Header for non SPAM Message-ID: <1DBA7B491604E94BBCCE5133069A5BB20DE2CC@mail.keyschool.org> My remote_smtp transport looks like this... remote_smtp: debug_print = "T: remote_smtp for $local_part@$domain" headers_remove = "X-SA-Do-Not-Rej:X-SA-Do-Not-Run:X-SA-Exim-Scanned" driver = smtp And works fine... Steven --- Steven Dickenson Network Administrator The Key School, Annapolis Maryland -----Original Message----- From: Jeffrey Carter [mailto:j.carter@ieee.org] Sent: Saturday, December 06, 2003 10:48 PM To: sa-exim@lists.merlins.org Subject: [SA-exim] Remove SA Header for non SPAM > On Sat, Nov 22, 2003 at 05:47:45PM +0100, Torsten Mueller wrote: >> Hello, >> >> i run SA v 2.60, and sa-exim as >> local_scan_path = /usr/local/exim/lib/sa-exim.so >> >> i want to exclude the SA header from non SPAM mails. >> I tested some configurations, but didn't succeed. >You need to remove the headers SA puts in exim.conf >(see header remove), or in exim's system_filter > >Marc I have the same problem, and I have been trying without success to get the headers_remove option to do anything in the transport description. As you should be able to see in this e-mail, X-SA-Do-Not-Run: etc get sent in outgoing mail. I'm using sa-exim 3.1, exim 4.22. I think I've pulled the relevant bits in from the examples on the sa-exim web site, but nothing seems to have an effect. # This transport is used for delivering messages over SMTP connections. remote_smtp: driver = smtp # This is generally set on messages originating from local users and it tells # SA-Exim not to scan the message or that the message was scanned. # Let's remove these headers if the message is sent remotely headers_remove = X-SA-Do-Not-Run:X-SA-Exim-Scanned:X-SA-Exim-Rcpt-To:X-SA-Exim-Mail-From:X-SA -Exim-Version Is there an example of stripping these in exim's system filter somewhere that I've missed? Jeff Carter _______________________________________________ SA-Exim mailing list SA-Exim@lists.merlins.org http://lists.merlins.org/lists/listinfo/sa-exim From rjsalts at spectralmud.bpa.nu Tue Dec 2 19:58:12 2003 From: rjsalts at spectralmud.bpa.nu (Richard Salts) Date: Mon Dec 8 15:39:40 2003 Subject: [SA-exim] spamc -U /foo/bar Message-ID: <20031202085812.GA29618@spectralmud.bpa.nu> I was wondering if it is possible to have sa-exim pass arguments to spamc. I have spamd running on a Unix socket so wanted to run spamc -U /foo/bar so I changed SAspamcpath to that. However I get this as a result: 2003-12-02 19:21:20 1AR5mR-0003nE-7g SA: Debug: SAEximRunCond expand returned: ' 1' 2003-12-02 19:21:20 1AR5mR-0003nE-7g SA: Debug: check succeeded, running spamc 2003-12-02 19:21:20 1AR5mR-0003nE-7g SA: PANIC: Unexpected error on exec /usr/bi n/spamc -U /tmp/spamd (but message was accepted), file sa-exim.c, line 848: No s uch file or directory 2003-12-02 19:21:20 1AR5mR-0003nE-7g SA: Debug: Writing message to /var/spool/sa -exim/SAerrorsave/new/1070353280_1AR5mR-0003nE-7g 2003-12-02 19:21:20 1AR5mR-0003nE-7g SA: Notice: creating maildir tree in /var/ spool/sa-exim/SAerrorsave 2003-12-02 19:21:20 1AR5mR-0003nE-7g SA: PANIC: Error in error handler while try ing to save mail to /var/spool/sa-exim/SAerrorsave/1070353280_1AR5mR-0003nE-7g, file sa-exim.c, line 1345: Illegal seek 2003-12-02 19:21:21 1AR5mR-0003nE-7g <= test@thats.prettyfar.com H=nitrous (foo) [192.168.0.64] P=esmtp S=369 2003-12-02 19:21:21 1AR5mR-0003nE-7g Spool file is locked (another process is ha ndling this message) 2003-12-02 19:21:21 1AR5mR-0003nE-7g SA: PANIC: wait on spamc child yielded, 256 (but message was accepted) 2003-12-02 19:21:21 1AR5mR-0003nE-7g SA: Debug: Writing message to /var/spool/sa -exim/SAerrorsave/new/1070353280_1AR5mR-0003nE-7g 2003-12-02 19:21:21 1AR5mR-0003nE-7g <= test@thats.prettyfar.com H=nitrous (foo) [192.168.0.64] P=esmtp S=400 Yet it works fine when using spamc with no arguments. From tsexton at SC.YoungLife.Org Mon Dec 8 16:11:54 2003 From: tsexton at SC.YoungLife.Org (Tim Sexton) Date: Mon Dec 8 15:39:41 2003 Subject: [SA-exim] Trouble with AIX & Exim 4.30 & sa-exim Message-ID: <3FD5053A.5020800@sc.younglife.org> Hello All, I'm some difficulties getting sa-exim to compile and run with Exim 4.30. First problem is: I haven't been able to get the, " localscan_dlopen_exim_4.20_or_better.patch " to work correctly. It always returns, " I cannot find a patch in there anywhere". Any ideas? Also, when I run make, I get the following errors: Building sa-exim-3.1.so gcc -I/app/exim/exim-4.30/src -I./eximinc -DDLOPEN_LOCAL_SCAN -DSPAMASSASSIN_CONF=\"/app/exim/sa-exim.conf\" -DSPAMC_LOCATION=\"/usr/bin/spamc\" -O2 -Wall -shared -o sa-exim-3.1.so sa-exim.c sa-exim.c:470: warning: #warning you should not worry about the "might be clobbered by longjmp", see source sa-exim.c: In function `local_scan': sa-exim.c:1257: warning: format not a string literal, argument types not checked ld: 0711-317 ERROR: Undefined symbol: .log_write ld: 0711-317 ERROR: Undefined symbol: .expand_string ld: 0711-317 ERROR: Undefined symbol: .string_sprintf ld: 0711-317 ERROR: Undefined symbol: sender_address ld: 0711-317 ERROR: Undefined symbol: header_list ld: 0711-317 ERROR: Undefined symbol: .header_add ld: 0711-317 ERROR: Undefined symbol: .string_copy ld: 0711-317 ERROR: Undefined symbol: .string_copyn ld: 0711-317 ERROR: Undefined symbol: message_id ld: 0711-317 ERROR: Undefined symbol: recipients_list ld: 0711-317 ERROR: Undefined symbol: recipients_count ld: 0711-317 ERROR: Undefined symbol: sender_host_address ld: 0711-317 ERROR: Undefined symbol: sender_host_name ld: 0711-317 ERROR: Undefined symbol: body_linecount ld: 0711-317 ERROR: Undefined symbol: smtp_out ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. collect2: ld returned 8 exit status make: *** [sa-exim-3.1.so] Error 1 Does this have something to do with Exim not being patched with the above file? Thanks in advance for any light you guys can shed on the subject. Sincerely, Tim Sexton From jeffc at shore.net Sat Dec 6 22:52:59 2003 From: jeffc at shore.net (Jeffrey D. Carter) Date: Mon Dec 8 15:39:43 2003 Subject: [SA-exim] Re: Remove SA Header for non SPAM In-Reply-To: Your message of "06 Dec 2003 22:47:47 EST." <1070768866.20850.9.camel@brass> Message-ID: <20914.1070769179@shore.net> Jeffrey Carter writes: >-------------------------------------------------------------------------< | > On Sat, Nov 22, 2003 at 05:47:45PM +0100, Torsten Mueller wrote: | >> Hello, | >> | >> i run SA v 2.60, and sa-exim as | >> local_scan_path = /usr/local/exim/lib/sa-exim.so | >> | >> i want to exclude the SA header from non SPAM mails. | >> I tested some configurations, but didn't succeed. | | >You need to remove the headers SA puts in exim.conf | >(see header remove), or in exim's system_filter | > | >Marc | | I have the same problem, and I have been trying without | success to get the headers_remove option to do anything | in the transport description. As you should be able to | see in this e-mail, X-SA-Do-Not-Run: etc get sent in | outgoing mail. | | I'm using sa-exim 3.1, exim 4.22. I think I've pulled | the relevant bits in from the examples on the sa-exim | web site, but nothing seems to have an effect. | | # This transport is used for delivering messages over SMTP connections. | | remote_smtp: | driver = smtp | # This is generally set on messages originating from local users and it tells | # SA-Exim not to scan the message or that the message was scanned. | # Let's remove these headers if the message is sent remotely | headers_remove = X-SA-Do-Not-Run:X-SA-Exim-Scanned:X-SA-Exim-Rcpt-To:X-SA-Exim-Mail-From:X-SA-Exim-Version | | | Is there an example of stripping these in exim's | system filter somewhere that I've missed? | | Jeff Carter >-------------------------------------------------------------------------< Ok, so I stand corrected. This outbound mail had them stripped. I think what fooled me was that I was getting them in the "outbound body" that was coming back through a bounce report generated at my exim daemon. Maybe that case is special. Jeff Carter From richard at lithvall.se Tue Dec 9 01:32:26 2003 From: richard at lithvall.se (Richard Lithvall) Date: Mon Dec 8 16:34:07 2003 Subject: [SA-exim] spamc -U /foo/bar In-Reply-To: <20031202085812.GA29618@spectralmud.bpa.nu> References: <20031202085812.GA29618@spectralmud.bpa.nu> Message-ID: <3FD5181A.9080604@lithvall.se> Richard Salts wrote: > I was wondering if it is possible to have sa-exim pass arguments to spamc. I > have spamd running on a Unix socket so wanted to run spamc -U /foo/bar so I > changed SAspamcpath to that. However I get this as a result: > > 2003-12-02 19:21:20 1AR5mR-0003nE-7g SA: PANIC: Unexpected error on exec /usr/bi > n/spamc -U /tmp/spamd (but message was accepted), file sa-exim.c, line 848: No s > uch file or directory > > Yet it works fine when using spamc with no arguments. Strange. Did you start spamd with the --socketpath option? Here's my patch (that i sent Marc a while ago in hope that he would adopt it) verified and working in my environment. /Richard diff -ur sa-exim-3.1/sa-exim.c sa-exim-3.1-rich/sa-exim.c --- sa-exim-3.1/sa-exim.c Mon Aug 18 17:34:39 2003 +++ sa-exim-3.1-rich/sa-exim.c Wed Sep 24 16:16:36 2003 @@ -505,6 +505,7 @@ /* Options we read from /etc/mail/sa-exim.conf */ static char *SAspamcpath=SPAMC_LOCATION; + static char *SAspamcSockPath=NULL; static char *SAEximRunCond="0"; static char *SAEximRejCond="1"; static int SAmaxbody=250*1024; @@ -653,6 +654,7 @@ M_CHECKFORVAR(SAEximDebug, "%d"); M_CHECKFORSTR(SAspamcpath); + M_CHECKFORSTR(SAspamcSockPath); M_CHECKFORSTR(SAEximRunCond); M_CHECKFORSTR(SAEximRejCond); M_CHECKFORVAR(SAmaxbody, "%d"); @@ -845,7 +847,11 @@ /* Ok, we cheat, spamc cares about how big the whole message is and * we only know about the body size, so I'll give an extra 16K * to account for any headers that can accompany the message */ - ret=execl(SAspamcpath, "spamc", "-s", string_sprintf("%d", SAmaxbody+16384), NULL); + if(SAspamcSockPath){ + ret=execl(SAspamcpath, "spamc", "-s", string_sprintf("%d", SAmaxbody+16384), "-U", SAspamcSockPath, NULL); + } else { + ret=execl(SAspamcpath, "spamc", "-s", string_sprintf("%d", SAmaxbody+16384), NULL); + } CHECKERR(ret,string_sprintf("exec %s", SAspamcpath),__LINE__); } diff -ur sa-exim-3.1/sa-exim.conf sa-exim-3.1-rich/sa-exim.conf --- sa-exim-3.1/sa-exim.conf Wed Aug 20 18:11:13 2003 +++ sa-exim-3.1-rich/sa-exim.conf Wed Sep 24 16:28:19 2003 @@ -25,7 +25,10 @@ # Default path is /usr/bin/spamc, but you can change it here SAspamcpath: /usr/bin/spamc - +# If SAspamcSockPath is set spamc uses socket to connect to spamd, +# use --socketpath pathname as argument to spamd (new in SA 2.60). +# Leave it unset if you want spamc to connect(AF_INET) to spamd at 127.0.0.1 (this is the default). +#SAspamcSockPath: /var/run/spamd.sock # Exim configuration string to run before running SA against the message # You should not put double quotes around the expression From wash at wananchi.com Tue Dec 9 07:44:50 2003 From: wash at wananchi.com (Odhiambo Washington) Date: Mon Dec 8 20:45:36 2003 Subject: [SA-exim] Trouble with AIX & Exim 4.30 & sa-exim In-Reply-To: <3FD5053A.5020800@sc.younglife.org> References: <3FD5053A.5020800@sc.younglife.org> Message-ID: <20031209044450.GA99445@ns2.wananchi.com> * Tim Sexton [20031209 02:40]: wrote: > Hello All, > I'm some difficulties getting sa-exim to compile and run with Exim > 4.30. First problem is: I haven't been able to get the, " > localscan_dlopen_exim_4.20_or_better.patch " to work correctly. It > always returns, " I cannot find a patch in there anywhere". Any ideas? I am here: [wash@ns2 ~/Administration/Exim/4.30/exim-4.30] I do patch -p1 < ../path/to/localscan_dlopen_exim_4.20_or_better.patch make && make install Is that what you did? > Also, when I run make, I get the following errors: > Building sa-exim-3.1.so > gcc -I/app/exim/exim-4.30/src -I./eximinc -DDLOPEN_LOCAL_SCAN > -DSPAMASSASSIN_CONF=\"/app/exim/sa-exim.conf\" > -DSPAMC_LOCATION=\"/usr/bin/spamc\" -O2 -Wall -shared -o sa-exim-3.1.so > sa-exim.c > sa-exim.c:470: warning: #warning you should not worry about the "might > be clobbered by longjmp", see source > sa-exim.c: In function `local_scan': > sa-exim.c:1257: warning: format not a string literal, argument types not > checked > ld: 0711-317 ERROR: Undefined symbol: .log_write > ld: 0711-317 ERROR: Undefined symbol: .expand_string > ld: 0711-317 ERROR: Undefined symbol: .string_sprintf > ld: 0711-317 ERROR: Undefined symbol: sender_address > ld: 0711-317 ERROR: Undefined symbol: header_list > ld: 0711-317 ERROR: Undefined symbol: .header_add > ld: 0711-317 ERROR: Undefined symbol: .string_copy > ld: 0711-317 ERROR: Undefined symbol: .string_copyn > ld: 0711-317 ERROR: Undefined symbol: message_id > ld: 0711-317 ERROR: Undefined symbol: recipients_list > ld: 0711-317 ERROR: Undefined symbol: recipients_count > ld: 0711-317 ERROR: Undefined symbol: sender_host_address > ld: 0711-317 ERROR: Undefined symbol: sender_host_name > ld: 0711-317 ERROR: Undefined symbol: body_linecount > ld: 0711-317 ERROR: Undefined symbol: smtp_out > ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more > information. > collect2: ld returned 8 exit status > make: *** [sa-exim-3.1.so] Error 1 > > Does this have something to do with Exim not being patched with the > above file? I am not sure about the cause, but you need to have patched correctly and besides, you need to have edited the Makefile (for sa-exim) to point to the correct path for exim src. -Wash http://www.netmeister.org/news/learn2quote.html -- +======================================================================+ |\ _,,,---,,_ | Odhiambo Washington Zzz /,`.-'`' -. ;-;;,_ | Wananchi Online Ltd. www.wananchi.com |,4- ) )-,_. ,\ ( `'-'| Tel: +254 20 313985-9 +254 20 313922 '---''(_/--' `-'\_) | GSM: +254 722 743223 +254 733 744121 +======================================================================+ "I have made this letter longer than usual because I lack the time to make it shorter." -- Blaise Pascal -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 2217 bytes Desc: not available Url : http://lists.merlins.org/archives/sa-exim/attachments/20031209/7605c9d6/smime.bin From marc at mclemente.net Sat Dec 13 06:18:13 2003 From: marc at mclemente.net (Marc F. Clemente) Date: Sat Dec 13 11:03:10 2003 Subject: [SA-exim] sa-exim, exim 4.30 and debian Message-ID: <3FDB0385.8000205@mclemente.net> I upgraded my debian system from exim 4.2x to exim 4.30. Debian decided to change the user/group running exim4 from "mail" to "Debian-exim". Since then sa-exim stopped working: 2003-12-13 04:22:28 1AV6ul-0006sN-SF SA: Debug: Writing message to /var/spool/sa-exim/SApermreject/new/1071310948_f6c801c3c1b2$b756a10a$c7167e04@mst.dk 2003-12-13 04:22:28 1AV6ul-0006sN-SF SA: Notice: creating maildir tree in /var/spool/sa-exim/SApermreject 2003-12-13 04:22:28 1AV6ul-0006sN-SF SA: PANIC: Unexpected error on mkdir /var/spool/sa-exim/SApermreject (but message was accepted), file sa-exim.c, line 202: Permission denied I had to chown the directories in /var/spool/sa-exim from "mail" to "Debian-exim" to make it work again. Marc From marc at merlins.org Sat Dec 13 11:05:10 2003 From: marc at merlins.org (Marc MERLIN) Date: Sat Dec 13 11:05:11 2003 Subject: [SA-exim] sa-exim, exim 4.30 and debian In-Reply-To: <3FDB0385.8000205@mclemente.net> References: <3FDB0385.8000205@mclemente.net> Message-ID: <20031213190510.GE26550@merlins.org> On Sat, Dec 13, 2003 at 06:18:13AM -0600, Marc F. Clemente wrote: > I upgraded my debian system from exim 4.2x to exim 4.30. Debian decided > to change the user/group running exim4 from "mail" to "Debian-exim". > Since then sa-exim stopped working: > > 2003-12-13 04:22:28 1AV6ul-0006sN-SF SA: Debug: Writing message to > /var/spool/sa-exim/SApermreject/new/1071310948_f6c801c3c1b2$b756a10a$c7167e04@mst.dk > 2003-12-13 04:22:28 1AV6ul-0006sN-SF SA: Notice: creating maildir tree > in /var/spool/sa-exim/SApermreject > 2003-12-13 04:22:28 1AV6ul-0006sN-SF SA: PANIC: Unexpected error on > mkdir /var/spool/sa-exim/SApermreject (but message was accepted), file > sa-exim.c, line 202: Permission denied > > I had to chown the directories in /var/spool/sa-exim from "mail" to > "Debian-exim" to make it work again. Well, that would be entirely expected :-) You can thank the sa-exim log messages for letting you know what to do :) 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@merlins.org for PGP key From marc at merlins.org Sat Dec 13 14:48:52 2003 From: marc at merlins.org (Marc MERLIN) Date: Sat Dec 13 14:48:54 2003 Subject: [SA-exim] Trouble with AIX & Exim 4.30 & sa-exim In-Reply-To: <3FD5053A.5020800@sc.younglife.org> References: <3FD5053A.5020800@sc.younglife.org> Message-ID: <20031213224852.GA32448@merlins.org> On Mon, Dec 08, 2003 at 04:11:54PM -0700, Tim Sexton wrote: > Hello All, > I'm some difficulties getting sa-exim to compile and run with Exim > 4.30. First problem is: I haven't been able to get the, " > localscan_dlopen_exim_4.20_or_better.patch " to work correctly. It > always returns, " I cannot find a patch in there anywhere". Any ideas? patch -p(0|1) -s < /path/to/localscan_dlopen_exim_4.20_or_better.patch (inside your exim source dir) > Also, when I run make, I get the following errors: > Building sa-exim-3.1.so > gcc -I/app/exim/exim-4.30/src -I./eximinc -DDLOPEN_LOCAL_SCAN > -DSPAMASSASSIN_CONF=\"/app/exim/sa-exim.conf\" > -DSPAMC_LOCATION=\"/usr/bin/spamc\" -O2 -Wall -shared -o sa-exim-3.1.so > sa-exim.c > sa-exim.c:470: warning: #warning you should not worry about the "might > be clobbered by longjmp", see source > sa-exim.c: In function `local_scan': > sa-exim.c:1257: warning: format not a string literal, argument types not > checked > ld: 0711-317 ERROR: Undefined symbol: .log_write > ld: 0711-317 ERROR: Undefined symbol: .expand_string > ld: 0711-317 ERROR: Undefined symbol: .string_sprintf > ld: 0711-317 ERROR: Undefined symbol: sender_address > ld: 0711-317 ERROR: Undefined symbol: header_list > ld: 0711-317 ERROR: Undefined symbol: .header_add > ld: 0711-317 ERROR: Undefined symbol: .string_copy > ld: 0711-317 ERROR: Undefined symbol: .string_copyn > ld: 0711-317 ERROR: Undefined symbol: message_id > ld: 0711-317 ERROR: Undefined symbol: recipients_list > ld: 0711-317 ERROR: Undefined symbol: recipients_count > ld: 0711-317 ERROR: Undefined symbol: sender_host_address > ld: 0711-317 ERROR: Undefined symbol: sender_host_name > ld: 0711-317 ERROR: Undefined symbol: body_linecount > ld: 0711-317 ERROR: Undefined symbol: smtp_out > ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more the IBM compiler seems to need something more to create a shared lib. It complains that it can't link against those symbols, but it should be able to: they're external and they only show up when exim loads the library. For help, talk to a C guy who knows the AIX compiler or try gcc 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@merlins.org for PGP key From tsexton at SC.YoungLife.Org Wed Dec 17 16:19:01 2003 From: tsexton at SC.YoungLife.Org (Tim Sexton) Date: Wed Dec 17 15:18:27 2003 Subject: [SA-exim] More problems w/SA-exim & AIX Message-ID: <3FE0E465.6020103@sc.younglife.org> Hi All, Thanks for the reply to my last e-mail. I have made some progress, I think, but I'm still running into some issues. I was finally able to get a compile of sa-exim-3.1.so by using IBM VisualAgeCompiler 6.0, GNU Patch, and GNU LD, however, I had to pass the -bI: ".imp" filename to LD to get it to quit complaining about an undefined reference to .main. Anyhow, it compiled but I'm now getting errors when I try and run it with Exim. Below is an excerpt from the exim log. > 2003-12-17 15:57:40 1AWjfo-00061g-Cv F=jellis@co26.younglife.org H=(ezra.younglife.org) [192.1.1.20] P=esmtp temporarily rejected by > local_scan(): Local configuration error - local_scan() library failure\nFunction not implemented (local_scan_version_major) Anyone know what the " local_scan() library failure\nFunction not implemented (local_scan_version_major) " might be caused by? Thanks much, Tim Sexton Exim 4.30 Spamassassin 2.60 SA-Exim 3.1 Aix 5.1 IBM VAC 6.0 GNU LD 2.14 GNU Make 3.80 From marc at merlins.org Fri Dec 19 14:13:05 2003 From: marc at merlins.org (Marc MERLIN) Date: Fri Dec 19 14:13:07 2003 Subject: [SA-exim] More problems w/SA-exim & AIX In-Reply-To: <3FE0E465.6020103@sc.younglife.org> References: <3FE0E465.6020103@sc.younglife.org> Message-ID: <20031219221305.GM27169@merlins.org> On Wed, Dec 17, 2003 at 04:19:01PM -0700, Tim Sexton wrote: > Hi All, > Thanks for the reply to my last e-mail. I have made some progress, > I think, but I'm still running into some issues. I was finally able to > get a compile of sa-exim-3.1.so by using IBM VisualAgeCompiler 6.0, GNU > Patch, and GNU LD, however, I had to pass the -bI: ".imp" filename to LD > to get it to quit complaining about an undefined reference to .main. > Anyhow, it compiled but I'm now getting errors when I try and run it > with Exim. > Below is an excerpt from the exim log. > > > 2003-12-17 15:57:40 1AWjfo-00061g-Cv F=jellis@co26.younglife.org > H=(ezra.younglife.org) [192.1.1.20] P=esmtp temporarily rejected by > > local_scan(): Local configuration error - local_scan() library > failure\nFunction not implemented (local_scan_version_major) > > Anyone know what the " local_scan() library failure\nFunction not > implemented (local_scan_version_major) " might be caused by? it looks like the dynamic linking isn't working properly. If you don't get any further, you should give up on sa-exim.so, and just replace exim's local_scan.c with sa-exim.c (2nd option in the install doc) 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@merlins.org for PGP key From marc at merlins.org Sun Dec 28 18:20:24 2003 From: marc at merlins.org (Marc MERLIN) Date: Mon Dec 29 09:22:32 2003 Subject: [SA-exim] Documentation buglet + misc In-Reply-To: <1065740055.1315.4.camel@iron.libaux.ucsf.edu> <1065654275.1446.28.camel@iron.libaux.ucsf.edu> <20031008074433.GQ2341@wheat.boylan.org> References: <1065740055.1315.4.camel@iron.libaux.ucsf.edu> <1065654275.1446.28.camel@iron.libaux.ucsf.edu> <1065235628.1137.147.camel@iron.libaux.ucsf.edu> <1065208069.1137.100.camel@iron.libaux.ucsf.edu> <3F7DD92B.3010800@billy.demon.nl> <1065208069.1137.100.camel@iron.libaux.ucsf.edu> <20031008035958.GB18677@merlins.org> <20031008074433.GQ2341@wheat.boylan.org> Message-ID: <20031228172024.GB7344@merlins.org> On Wed, Oct 08, 2003 at 12:44:33AM -0700, Ross Boylan wrote: > > > 4) In sa-exim.conf you might mention that if a value is defined > > > multiply, the last value governs. > > > > I don't understand what you mean. > > If you say > SAxxx = foo > and then later > SAxxx = bar Ah, you meant "multiple times" > the program thinks you mean bar. (exim, as I just discovered, barfs on > duplicates and tells you you have a syntax error). Documented in the new sa-exim.conf in CVS > > > 6) Perhaps mention you need to have spamd going for it to work. > > > > INSTALL:You want to run spamd as such: /usr/sbin/spamd -d -u nobody. > > Yes, I found that eventually. But I think it would be useful to put > in the readme, as I associate INSTALL files with if you're building README now says: INSTALL ------- See the file named INSTALL for installations instructions (either compiled in exim, or as a stand-alone shared library) and configuration of spamd On Wed, Oct 08, 2003 at 04:04:35PM -0700, Ross Boylan wrote: > FYI SA 2.60 deprecates an option mentioned in INSTALL for sa-exim, and > suggests an alternative: > > always_add_report { 0 | 1 } (default: 0) > When the report_safe option is turned off, mail tagged as spam will > include a report in a header named X-Spam-Report. If you set > always_add_report to 1, the report will also be included in the > X-Spam-Report header for non-spam mail. > > This option is deprecated in version 2.60 and later. It will be > removed in a future version. Please use the flexible add_header > option instead: > > add_header all Report _REPORT_ Mmmh, the thing is that sa-exim is pre-compiled with the headers that it's going to read from SA, so it's currently hard to support any random header that someone might make. For now, sa-exim will keep requiring X-Spam-Report until further notice On Thu, Oct 09, 2003 at 03:54:15PM -0700, Ross Boylan wrote: > The file refers to > http://marc.merlins.org/linux/exim/exim4-conf/exim4.conf.master, which > doesn't exist as far as I can tell. This has been fixed in CVS too Thanks, 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@merlins.org for PGP key From lkcl at lkcl.net Sat Dec 27 23:22:29 2003 From: lkcl at lkcl.net (Luke Kenneth Casson Leighton) Date: Mon Dec 29 09:28:27 2003 Subject: [SA-exim] improvements to sa-exim Message-ID: <20031227232229.GJ6222@lkcl.net> marc, hi, some recommended improvements to sa-exim particularly the SaRunCond stuff. when setting up yes i got a fake message with an SaRunCondSomething in it - within about two days. can i recommend putting in something like a digital signature or md5 hash or an MD5 hash of the MX hostname or a hash of the filename under which the message is saved into the logs, or _something_ that is unique and generated server-side that cannot be forged? so you get "X-SaRunCond = yes-5e39ac09b2f4". if nothing else, the hash should be generated from a random number that is changed every 10 minutes or so. its life expectancy is only a few seconds (from generated in exim4 to being saved in the headers to being checked in sa-exim. what you reckon? l. -- -- expecting email to be received and understood is a bit like picking up the telephone and immediately dialing without checking for a dial-tone; speaking immediately without listening for either an answer or ring-tone; hanging up immediately and then expecting someone to call you (and to be able to call you). -- lkcl.net
lkcl@lkcl.net
From lists at timj.co.uk Mon Dec 29 22:33:07 2003 From: lists at timj.co.uk (Tim Jackson) Date: Mon Dec 29 14:33:26 2003 Subject: [SA-exim] improvements to sa-exim In-Reply-To: <20031227232229.GJ6222@lkcl.net> References: <20031227232229.GJ6222@lkcl.net> Message-ID: <20031229223307.167d8ac4.lists@timj.co.uk> Hi Luke, on Sat, 27 Dec 2003 23:22:29 +0000 you wrote: > when setting up yes i got a fake message with an SaRunCondSomething > in it - within about two days. You could easily set it to use your own choice of header (e.g. "SA-Run: flurble1234") instead. You can keep this header relatively "secret" by preventing it from being passed onto remote hosts or delivered to mailboxes by using headers_remove in the SMTP transport or an Exim system filter respectively. HTH, Tim From marc at merlins.org Tue Dec 30 19:26:38 2003 From: marc at merlins.org (Marc MERLIN) Date: Wed Dec 31 07:54:44 2003 Subject: [SA-exim] improvements to sa-exim In-Reply-To: <20031227232229.GJ6222@lkcl.net> References: <20031227232229.GJ6222@lkcl.net> Message-ID: <20031230182638.GF7756@merlins.org> On Sat, Dec 27, 2003 at 11:22:29PM +0000, Luke Kenneth Casson Leighton wrote: > marc, hi, > > some recommended improvements to sa-exim particularly the SaRunCond > stuff. > > when setting up yes i got a fake message with an SaRunCondSomething > in it - within about two days. > > can i recommend putting in something like a digital signature > or md5 hash or an MD5 hash of the MX hostname or a hash of the > filename under which the message is saved into the logs, or > _something_ that is unique and generated server-side that cannot be > forged? > > so you get "X-SaRunCond = yes-5e39ac09b2f4". No need, look for this message in the sa-exim archives: Chirik Re: [SA-exim] Need setting for SAEximRunCond 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@merlins.org for PGP key