From tonni at billy.demon.nl Thu May 1 09:58:07 2003 From: tonni at billy.demon.nl (Tony Earnshaw) Date: Thu May 1 01:58:09 2003 Subject: [SA-exim] Happy with Exim 4.14 / SA-Exim 3.0/dlopen :-) Message-ID: <1051775108.18345.24.camel@localhost> Thanks Marc and others for all the work put into SA-Exim 3.0 - I'm as pleased as punch. I include som install notes as an attachment. Best, Tony -- Tony Earnshaw Do not come to visit me with both arms the same length. e-post: tonni@billy.demon.nl www: http://www.billy.demon.nl Tony Earnshaw -------------- next part -------------- Compiled, configured, installed per instructions, tested with debug on, (worked perfectly), switched debug off, altered report code in sa-exim.c slightly, so that I get "SA: EximRunCond expanded to false" for local mail. Switched debug off, altered reject message slightly so that postmaster could be informed of mistakes. Because my compile, install and config paths etc. are different from Marc's I made the following notes of changes in the make procedure: # Aim: To use Exim 4.14 with the dlopen patch, cos that's what I had # with 2.2 # # Present install workdir sa-exim-workdir # Directory structure of sa-exim-workdir: ./sa-exim-3.0 ./exim-4.14 # # There's already the old SA-Exim 2.2 Exim 4.14 install directory mv ./exim-4.14 ./exim-4.14.old bzcat exim-4.14.tar.bz2 | tar -xvf - # cp ./sa-exim-3.0/localscan_dlopen.patch ./exim-4.14 cd ./exim-4.14 patch -p1 < localscan_dlopen.patch # I have so much Exim-specific stuff in Makefile, that I want to use the # old one. # Check to confirm that that the old Exim Makefile hasn't been changed by the dlopen patch # cp ../exim-4.14.old/Local/* ./Local make cd ../sa-exim-3.0 # vi Makefile to reflect Exim location (I use /usr/local/exim4 and # /var/mail/exim # also I have the dlopen patch in /usr/local/lib/exim4, spamc in /usr/local/bin) # make # I already had the dummy accept.so in /usr/local/lib/exim4 # Make backups of *all* the old stuff in each directory # Copy new stuff to each directory. # Stop exim, install new exim, edit spamassassin.conf, start exim, test # with local mail, test with Internet mail - spam rejected in first 30 messages :->> From rob+sa-exim at nephelococcygia.dyndns.org Sat May 3 20:27:38 2003 From: rob+sa-exim at nephelococcygia.dyndns.org (Rob Skedgell) Date: Sat May 3 11:33:15 2003 Subject: [SA-exim] SuSE 8.1 RPM specfile Message-ID: <200305031927.39075.rob+sa-exim@nephelococcygia.dyndns.org> I have attached an RPM .spec file for Exim 4.14/sa-exim 3.0 which seems to be working happily for me so far. Since this is based on the file from the SuSE 8.1 distribution, it will 'probably' need a bit of editing to work on other Linux versions. Hopefully more generic RPMs could be made available for download if anypne has the time or inclination. I hope that this is of some use to someone, even if only as an example of how not to do specfiles. Any comments/criticism to the address below if they do not relate specifically to sa-exim. -- Rob Skedgell Everything should be built top-down, except this time. -------------- next part -------------- # # spec file for package exim (Version 4.14) # # Copyright (c) 2002 SuSE Linux AG, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # Updated to 4.14, exim-doc and sa-exim added by Rob Skedgell. # Don't blame SuSE for any problems with my modifications. # # please send bugfixes or comments to rob@nephelococcygia.dyndns.org # # neededforbuild db-devel openssl-devel tcpd xdevel xf86 # usedforbuild aaa_base aaa_version acl attr bash bind9-utils bison cpio cpp cyrus-sasl db devs diffutils e2fsprogs file filesystem fileutils fillup findutils flex gawk gdbm-devel glibc glibc-devel glibc-locale gpm grep groff gzip kbd less libgcc libstdc++ libxcrypt m4 make man mktemp modutils ncurses ncurses-devel net-tools netcfg pam pam-devel pam-modules patch permissions ps rcs readline sed sendmail sh-utils shadow strace syslogd sysvinit tar texinfo textutils timezone unzip util-linux vim zlib-devel autoconf automake binutils bzip2 cracklib db-devel gcc gdbm gettext libtool openssl-devel perl rpm tcpd xdevel xf86 xshared zlib %define exim_version 4.14 %define exim_doc_version 4.10 %define sa_exim_version 3.0 Name: exim Conflicts: sendmail sendmail-tls postfix License: GPL Group: Productivity/Networking/Email/Servers Autoreqprov: on Provides: smtp_daemon Provides: exim_localscan_dlopen %if %suse_version > 800 Requires: logrotate PreReq: %insserv_prereq %fillup_prereq /usr/sbin/useradd fileutils textutils %endif Version: %{exim_version} Release: 6 Summary: The Exim mail transfer agent, a replacement for sendmail URL: http://www.exim.org/ Packager: Rob Skedgell BuildRoot: %{_tmppath}/%{name}-%{exim_version}-build Source: ftp://ftp.csx.cam.ac.uk/pub/software/email/exim/exim4/exim-%{exim_version}.tar.bz2 # These are from the SuSE 8.1 SRPM ftp://ftp.suse.com/pub/suse/i386/8.1/suse/src/exim-4.10-37.src.rpm Source1: sysconfig.exim Source2: exim.logrotate Source11: exim.rc Source12: permissions.exim # Used for the exim-doc package Source30: ftp://ftp.csx.cam.ac.uk/pub/software/email/exim/exim4/exim-html-%{exim_doc_version}.tar.bz2 Source31: ftp://ftp.csx.cam.ac.uk/pub/software/email/exim/exim4/exim-pdf-%{exim_doc_version}.tar.bz2 Source32: ftp://ftp.csx.cam.ac.uk/pub/software/email/exim/exim4/exim-postscript-%{exim_doc_version}.tar.bz2 Source33: ftp://ftp.csx.cam.ac.uk/pub/software/email/exim/exim4/exim-texinfo-%{exim_doc_version}.tar.bz2 # Essential :-) Source50: http://marc.merlins.org/linux/exim/files/sa-exim-%{sa_exim_version}.tar.gz %package -n eximon Summary: Eximon, an graphical frontend to administer Exim's mail queue Group: Productivity/Networking/Email/Servers URL: http://www.exim.org/ %package -n exim-doc Summary: Documentation for Exim in HTML, PDF, postscript and texinfo formats Version: %{exim_doc_version} #Release: 1 Requires: exim >= %{exim_doc_version} Group: Documentation URL: http://www.exim.org/ %package -n sa-exim Summary: Exim local_scan to use Spamassassin Version: %{sa_exim_version} #Release: 1 Group: Productivity/Networking/Email/Servers Requires: exim_localscan_dlopen Requires: spamassassin URL: http://marc.merlins.org/linux/exim/sa.html %description Exim is a mail transport agent (MTA) developed at the University of Cambridge for use on Unix systems connected to the Internet. It is freely available under the terms of the GNU General Public Licence. In style it is similar to Smail 3, but its facilities are more extensive, and in particular it has options for verifying incoming sender and recipient addresses, for refusing mail from specified hosts, networks, or senders, and for controlling mail relaying. Authors: -------- Philip Hazel %description -n eximon This allows administrators to view the exim agent's mail queue and logs, and perform a variety of actions on queued messages, such as freezing, bouncing and thawing messages, and even editing body and header of mails. Authors: -------- Philip Hazel %description -n exim-doc Documentation for Exim in HTML, PDF, postscript and texinfo formats Authors: -------- Philip Hazel %description -n sa-exim Exim local_scan to use Spamassassin. Insert the following line into your exim.conf local_scan_path = /usr/lib/exim4/local_scan/sa-exim.so Authors: -------- Marc MERLIN %prep %setup cat <<-EOF > Local/Makefile # see src/EDITME for comments. BIN_DIRECTORY=/usr/sbin CONFIGURE_FILE=/etc/exim/exim.conf EXIM_USER=mail EXIM_GROUP=mail SPOOL_DIRECTORY=/var/spool/exim ROUTER_ACCEPT=yes ROUTER_DNSLOOKUP=yes ROUTER_IPLITERAL=yes ROUTER_MANUALROUTE=yes ROUTER_QUERYPROGRAM=yes ROUTER_REDIRECT=yes # ROUTER_IPLOOKUP=yes TRANSPORT_APPENDFILE=yes TRANSPORT_AUTOREPLY=yes TRANSPORT_PIPE=yes TRANSPORT_SMTP=yes TRANSPORT_LMTP=yes SUPPORT_MAILDIR=yes # SUPPORT_MAILSTORE=yes # SUPPORT_MBX=yes LOOKUP_DBM=yes LOOKUP_LSEARCH=yes # LOOKUP_CDB=yes LOOKUP_DNSDB=yes LOOKUP_DSEARCH=yes # LOOKUP_MYSQL=yes # LOOKUP_NIS=yes # LOOKUP_NISPLUS=yes # LOOKUP_ORACLE=yes # LOOKUP_PGSQL=yes # LOOKUP_WHOSON=yes LOOKUP_LDAP=yes # LDAP_LIB_TYPE=OPENLDAP1 LDAP_LIB_TYPE=OPENLDAP2 # LDAP_LIB_TYPE=NETSCAPE # LDAP_LIB_TYPE=SOLARIS LOOKUP_INCLUDE= #-I /usr/local/mysql/include -I /usr/local/pgsql/include LOOKUP_LIBS=-lldap -llber #-lmysqlclient -lpq EXIM_MONITOR=eximon.bin AUTH_CRAM_MD5=yes AUTH_PLAINTEXT=yes # AUTH_SPA=yes SUPPORT_TLS=yes TLS_LIBS=-lssl -lcrypto INFO_DIRECTORY=%{_infodir} LOG_FILE_PATH="syslog:/var/log/exim/%%s.log" EXICYCLOG_MAX=10 COMPRESS_COMMAND=/bin/gzip COMPRESS_SUFFIX=gz ZCAT_COMMAND=/usr/bin/zcat SUPPORT_PAM=yes # You probably need to add -lpam to EXTRALIBS # RADIUS_CONFIG_FILE=/etc/radiusclient/radiusclient.conf # CYRUS_PWCHECK_SOCKET=/var/pwcheck/pwcheck USE_TCP_WRAPPERS=yes NO_SYMLINK=yes CHOWN_COMMAND=/bin/chown CHGRP_COMMAND=/bin/chgrp MV_COMMAND=/bin/mv RM_COMMAND=/bin/rm PERL_COMMAND=/usr/bin/perl # APPENDFILE_MODE=0600 # APPENDFILE_DIRECTORY_MODE=0700 # APPENDFILE_LOCKFILE_MODE=0600 # CONFIGURE_FILE_USE_NODE=yes # CONFIGURE_FILE_USE_EUID=yes # DELIVER_BUFFER_SIZE=8192 # EXIMDB_DIRECTORY_MODE=0750 # EXIMDB_MODE=0640 # EXIMDB_LOCKFILE_MODE=0640 # HEADER_MAXSIZE="(1024*1024)" # INPUT_DIRECTORY_MODE=0750 # LOG_DIRECTORY_MODE=0750 # LOG_MODE=0640 # LOOKUP_TESTDB=yes MAKE_SHELL=/bin/bash # MAX_NAMED_LIST=16 # MAXINTERFACES=250 # MSGLOG_DIRECTORY_MODE=0750 EXIM_PERL = perl.o # PERL_CC= # PERL_CCOPTS= # PERL_LIBS= PID_FILE_PATH=/var/run/exim%%s.pid # SPOOL_DIRECTORY_MODE=0750 # SPOOL_MODE=0640 SUPPORT_MOVE_FROZEN_MESSAGES=yes HAVE_IPV6=YES # Note that localscan_dlopen.patch modifies src/EDITME, so # for the SuSE 8.1 exim.spec these are also needed here. DLOPEN_LOCAL_SCAN=yes LFLAGS=-rdynamic CFLAGS=$RPM_OPT_FLAGS EXTRALIBS=-ldl -lpam -lwrap -L/usr/X11R6/%{_lib} EOF touch Local/eximon.conf # Unpack and move the documentation # TODO: this _should_ be another package tar xjvf %{SOURCE30} tar xjvf %{SOURCE31} tar xjvf %{SOURCE32} tar xjvf %{SOURCE33} mv -f ./exim-{html,pdf,postscript,texinfo}-%{exim_doc_version}/doc/* ./doc rm -rf ./exim-{html,pdf,postscript,texinfo}-%{exim_doc_version} # Unpack the sa-exim sources tar xzvf %{SOURCE50} # Apply the localscan_dlopen patch patch -p1 <./sa-exim-%{sa_exim_version}/localscan_dlopen.patch %build %if %suse_version <= 800 /usr/sbin/useradd -o -g mail -u 8 -s /bin/false -c "Mailer daemon" -d /var/spool/clientmqueue mail 2> /dev/null || : %endif # Build Exim4 make # Build sa-exim cd ./sa-exim-%{sa_exim_version} make SACONF=/etc/exim/spamassassin.conf EXIM_SRC=../src cd .. %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/etc/init.d mkdir -p $RPM_BUILD_ROOT/etc/logrotate.d mkdir -p $RPM_BUILD_ROOT/usr/{bin,sbin} mkdir -p $RPM_BUILD_ROOT/var/log/exim mkdir -p $RPM_BUILD_ROOT/var/spool/mail/ mkdir -p $RPM_BUILD_ROOT/var/adm/fillup-templates mkdir -p $RPM_BUILD_ROOT%{_mandir}/{man5,man8} mkdir -p $RPM_BUILD_ROOT/usr/X11R6/bin make inst_dest=$RPM_BUILD_ROOT/usr/sbin \ inst_conf=$RPM_BUILD_ROOT/etc/exim/exim.conf \ inst_info=$RPM_BUILD_ROOT/%{_infodir} install mv $RPM_BUILD_ROOT/usr/sbin/exim-%{exim_version}* $RPM_BUILD_ROOT/usr/sbin/exim install -m 755 %{S:11} $RPM_BUILD_ROOT/etc/init.d/exim ln -sv /usr/sbin/exim $RPM_BUILD_ROOT/usr/bin/mailq ln -sv /usr/sbin/exim $RPM_BUILD_ROOT/usr/bin/runq ln -sv /usr/sbin/exim $RPM_BUILD_ROOT/usr/bin/newaliases ln -sv /usr/sbin/exim $RPM_BUILD_ROOT/usr/sbin/sendmail ln -sv ../../etc/init.d/exim $RPM_BUILD_ROOT/usr/sbin/rcexim mv $RPM_BUILD_ROOT/usr/sbin/eximon* $RPM_BUILD_ROOT/usr/X11R6/bin/ cp -p %{S:1} $RPM_BUILD_ROOT/var/adm/fillup-templates/sysconfig.exim install -m 644 %{S:2} $RPM_BUILD_ROOT/etc/logrotate.d/exim mv doc/exim.8 $RPM_BUILD_ROOT/%{_mandir}/man8/ gzip -9 doc/*.txt for i in main panic reject; do touch $RPM_BUILD_ROOT/var/log/exim/${i}.log done install -o root -g root -m 0755 -d $RPM_BUILD_ROOT/etc/permissions.d install -o root -g root -m 0644 $RPM_SOURCE_DIR/permissions.exim $RPM_BUILD_ROOT/etc/permissions.d/exim # Install sa-exim install -o root -g root -m 0755 -d $RPM_BUILD_ROOT/usr/lib/exim4 install -o root -g root -m 0755 -d $RPM_BUILD_ROOT/usr/lib/exim4/local_scan install -o root -g root -m 0755 ./sa-exim-%{sa_exim_version}/accept.so \ $RPM_BUILD_ROOT/usr/lib/exim4/local_scan/accept.so install -o root -g root -m 0755 ./sa-exim-%{sa_exim_version}/sa-exim-%{sa_exim_version}.so \ $RPM_BUILD_ROOT/usr/lib/exim4/local_scan/sa-exim-%{sa_exim_version}.so ln -sv /usr/lib/exim4/local_scan/sa-exim-%{sa_exim_version}.so \ $RPM_BUILD_ROOT/usr/lib/exim4/local_scan/sa-exim.so install -o root -g root -m 0644 ./sa-exim-%{sa_exim_version}/spamassassin.conf \ $RPM_BUILD_ROOT/etc/exim/spamassassin.conf install -o root -g root -m 0644 ./sa-exim-%{sa_exim_version}/spamassassin_short.conf \ $RPM_BUILD_ROOT/etc/exim/spamassassin_short.conf %pre %if %suse_version <= 800 /usr/sbin/useradd -o -g mail -u 8 -s /bin/false -c "Mailer daemon" -d /var/spool/clientmqueue mail 2> /dev/null || : %endif %post if ! test -s etc/exim/exim.conf; then if test -s etc/exim.conf; then mv etc/exim.conf etc/exim/ echo moving exim.conf to /etc/exim/ else cp -p usr/share/doc/packages/exim/configure.default etc/exim/exim.conf echo copying default config file to /etc/exim/exim.conf fi fi %if %suse_version < 800 echo "Updating /etc/rc.config..." bin/cat > var/adm/fillup-templates/rc.config.exim <<-EOF # # Start the exim mail transfer agent? (yes|no) # START_EXIM=yes EOF bin/fillup -q etc/rc.config var/adm/fillup-templates/rc.config.exim bin/rm var/adm/fillup-templates/rc.config.exim bin/fillup -q etc/rc.config var/adm/fillup-templates/sysconfig.exim sbin/insserv etc/init.d/exim %else %{fillup_and_insserv exim} %endif exit 0 %postun sbin/insserv etc/init.d/ %files %defattr(-,root,root) %doc doc/README %doc doc/ChangeLog %doc doc/Exim*.upgrade %doc doc/*.txt.gz %doc doc/NewStuff %doc src/configure.default %doc build-Linux-*/convert4r{3,4} %doc %{_mandir}/man8/* /usr/sbin/exicyclog /usr/sbin/exigrep /usr/sbin/exim /usr/sbin/exim_* /usr/sbin/eximstats /usr/sbin/exinext /usr/sbin/exiqsumm /usr/sbin/exiwhat %dir /usr/lib/exim4 %dir /usr/lib/exim4/local_scan %dir /etc/exim %config /etc/init.d/exim %config(noreplace) /etc/logrotate.d/exim %config(noreplace) /etc/permissions.d/exim /usr/sbin/rcexim /usr/bin/mailq /usr/bin/runq /usr/bin/newaliases /usr/sbin/sendmail /var/adm/fillup-templates/sysconfig.exim %dir /var/log/exim %files -n eximon %defattr(-,root,root) /usr/X11R6/bin/eximon /usr/X11R6/bin/eximon.bin %files -n exim-doc %defattr(-,root,root) %doc doc/html/ %doc doc/*.pdf %doc doc/*.ps %doc doc/*.texinfo %files -n sa-exim %defattr(-,root,root) %doc sa-exim-%{sa_exim_version}/README %doc sa-exim-%{sa_exim_version}/INSTALL %doc sa-exim-%{sa_exim_version}/TODO %doc sa-exim-%{sa_exim_version}/LICENSE %doc sa-exim-%{sa_exim_version}/ACKNOWLEDGEMENTS %doc sa-exim-%{sa_exim_version}/CHANGELOG /usr/lib/exim4/local_scan/accept.so /usr/lib/exim4/local_scan/sa-exim-%{sa_exim_version}.so /usr/lib/exim4/local_scan/sa-exim.so %config(noreplace) /etc/exim/spamassassin.conf %config(noreplace) /etc/exim/spamassassin_short.conf %changelog -n exim * Sat May 03 2003 - Rob Skedgell -6 - add 'DLOPEN_LOCAL_SCAN=yes' to text cat'ed >Local/Makefile (d'oh) * Thu May 01 2003 - Rob Skedgell -5 - new package: sa-exim version 3.0 (puts .so's in /usr/lib/exim4/local_scan) - apply localfilter_dlopen patch from sa-exim 3.0 to main package - new package: exim-doc version 4.10 (HTML, PDF, postscript, texinfo) * Sat Mar 22 2003 - Rob Skedgell -4 - replace src/local_scan.c with sa-exim.c from sa-exim-2.2 * Sun Mar 16 2003 - Rob Skedgell -2 - include embedded perl support - add DNSDB lookup - add syslog to LOG_FILE_PATH * Fri Mar 14 2003 - Rob Skedgell 4.14-0 - update to version 4.14 * Sat Mar 08 2003 - Rob Skedgell 4.12-0 - update to version 4.12 - disable MySQL and postgresql lookups * Tue Aug 13 2002 - poeml@suse.de - remove stupid arch-dependant path from filelist * Tue Aug 13 2002 - poeml@suse.de - mv exim.conf to /etc/exim/ - add scripts for conversion of 3.xx config files - add symbolic link "runq" (same as exim -q) - use %%defattr * Mon Aug 12 2002 - poeml@suse.de - improve logrotate configuration - fix PreReq - install exim.8 manpage and gzip the remaining documentation - Moved log file creation from %%post to rcexim * Tue Aug 06 2002 - draht@suse.de - added /etc/permissions.d/exim for setuid /usr/sbin/exim * Fri Aug 02 2002 - poeml@suse.de - package created (4.10) -------------- next part -------------- A non-text attachment was scrubbed... Name: exim.spec.asc Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.merlins.org/archives/sa-exim/attachments/20030503/3d6fe527/exim.spec-0001.bin From mboyd at cirilium.com Mon May 5 16:36:48 2003 From: mboyd at cirilium.com (Mark Boyd) Date: Mon May 5 15:36:50 2003 Subject: [SA-exim] Which version(s) of spamassassin? Message-ID: <551810A11AE6DD4B81B4EE2C0E131CB0638FB6@typhoon.cirilium.com> I'm currently running spamassassin v2.43, but would like to upgrade. If memory serves me correctly there was some issue a while ago with sa-exim v2.2 working with spamassassin v2.50+. What's the current status of sa-exim v3.0, does it work properly with spamassassin v2.50+? Or is my already frail memory just completely failing and this is a non-issue? Thanks, Mark From brian at enchanter.net Mon May 5 19:40:47 2003 From: brian at enchanter.net (Brian Kendig) Date: Mon May 5 15:41:55 2003 Subject: [SA-exim] Which version(s) of spamassassin? In-Reply-To: <551810A11AE6DD4B81B4EE2C0E131CB0638FB6@typhoon.cirilium.com> Message-ID: <9D26F62E-7F4A-11D7-9786-003065546CF4@enchanter.net> > What's the current status of sa-exim v3.0, does it work properly with > spamassassin v2.50+? I'm running SA 2.53, and it works just great here! No compatibility issues that I've found yet. ____ |\/| Brian Kendig Set your priorities right. \ /\ / ..__. brian at enchanter net No one ever said on his \/ \__\ _/ http://www.enchanter.net/ death bed, "Gee, if I'd \__ __ \_ Be insatiably curious. only spent more time at \____\___\ Ask "why" a lot. the office." From tonni at billy.demon.nl Tue May 6 12:55:34 2003 From: tonni at billy.demon.nl (Tony Earnshaw) Date: Tue May 6 04:55:35 2003 Subject: [SA-exim] Which version(s) of spamassassin? In-Reply-To: <551810A11AE6DD4B81B4EE2C0E131CB0638FB6@typhoon.cirilium.com> References: <551810A11AE6DD4B81B4EE2C0E131CB0638FB6@typhoon.cirilium.com> Message-ID: <1052200997.8682.3.camel@localhost> P? ty , 06/05/2003 klokka 00:36, skreiv Mark Boyd: > I'm currently running spamassassin v2.43, but would like to upgrade. If > memory serves me correctly there was some issue a while ago with sa-exim > v2.2 working with spamassassin v2.50+. > > What's the current status of sa-exim v3.0, does it work properly with > spamassassin v2.50+? Or is my already frail memory just completely > failing and this is a non-issue? Non-issue. I ran 2.50-CVS and 2.60-CVS with Exim 4.14/SA-Exim 2.2, now 2.60-CVS with SA-Exim 3.0 (all SA-Exim apart from in the beginning with the dlopen patch) and it's always worked perfectly. Best, Tony -- Tony Earnshaw Do not come to visit me with both arms the same length. e-post: tonni@billy.demon.nl www: http://www.billy.demon.nl Tony Earnshaw From sdickenson at keyschool.org Tue May 6 09:59:02 2003 From: sdickenson at keyschool.org (Dickenson, Steven) Date: Tue May 6 06:00:39 2003 Subject: [SA-exim] Which version(s) of spamassassin? Message-ID: <1DBA7B491604E94BBCCE5133069A5BB248CE39@ringo.internal.keyschool.org> I'm also running SpamAssassin v2.53 w/ SA-Exim 2.2. I haven't yet upgraded to v3. The only thing I remember about v2.2 compatibility was to disable report_safe in the local.cf file for SpamAssassin. Does this still hold true for SA-Exim v3? Steven --- Steven Dickenson Network Administrator The Key School, Annapolis Maryland From rich at rd.bergmair.cjb.net Tue May 6 17:46:10 2003 From: rich at rd.bergmair.cjb.net (Richard Bergmair) Date: Tue May 6 07:46:40 2003 Subject: [SA-exim] Again sa-exim and fetchmail Message-ID: <200305061646.10500.rich@rd.bergmair.cjb.net> Can't anybody give me a hint? I can't believe I'm the first one, trying to do this! ---------- Forwarded Message ---------- Subject: sa-exim and fetchmail Date: Sat, 26 Apr 2003 15:40:02 +0200 From: Richard Bergmair To: sa-exim@lists.merlins.org Hi! I've just set up my new mail-environment using exim 4.14, SpamAssassin-2.53 and sa-exim 2.2. I receive both mail sent directly to my MTA, and mail sent to my provider's mail-account. I use fetchmail 5.6.5 in deamon-mode to poll my provider's POP3-server for new mail, and now I want to get rid of spam sent directly to my MTA, as well as spam lying around in my providers mailbox. Filtering seems to work perfectly. I don't *receive* any more spam that spamassassin can identify as such, but it's not deleted from the POP3-account. I assume that this is due to fetchmail: Fetchmail gets all mail from the POP3-account and opens an SMTP-connection to the localhost, simply forwarding mail to exim. Before exim gets to see it sa-exim runs spamassassin to check, whether it's spam, and rejects it. (I've set "SAEximRunCond: 1" in spamassassin.conf, since the normal check for local deliveries would prevent SpamAssassin to be run on mail coming from fetchmail) That's why fetchmail can't deliver that mail, so it doesn't delete it from the mailbox. In fetchmail(1) I read, that fetchmail deletes mail only if the delivery was either successful, or it receives one of the error-codes [571, 550, 501, 554] which usually indicate that mail was rejected due to spam-checking. Doesn't sa-exim send one of these error-codes, or what could be the reason, that spam remains in the mailbox, after running fetchmail on a spammed mailbox? Thanks a lot! Richard ------------------------------------------------------- From marc at merlins.org Tue May 6 08:57:11 2003 From: marc at merlins.org (Marc MERLIN) Date: Tue May 6 07:57:13 2003 Subject: [SA-exim] Re: sa-exim.c not building In-Reply-To: <20030503154204.GC9736@nuit.ca> <20030503132231.GA9736@nuit.ca> References: <20030503154204.GC9736@nuit.ca> <20030503132231.GA9736@nuit.ca> Message-ID: <20030506145711.GF1960@merlins.org> On Sat, May 03, 2003 at 01:22:32PM +0000, simon raven wrote: > Building accept.so > gcc -I../../src -I./eximinc -DDLOPEN_LOCAL_SCAN -DSPAMASSASSIN_CONF=\"/etc/exim4/spamassassin.conf\" -DSPAMC_LOCATION=\"/usr/bin/spamc\" -O2 -Wall -shared -o accept.so accept.c > accept.c: In function `local_scan_version_major': > accept.c:20: `LOCAL_SCAN_ABI_VERSION_MAJOR' undeclared (first use in this function) > accept.c:20: (Each undeclared identifier is reported only once > accept.c:20: for each function it appears in.) > accept.c: In function `local_scan_version_minor': > accept.c:25: `LOCAL_SCAN_ABI_VERSION_MINOR' undeclared (first use in this function) I don't quite understand, accept.c has #include "local_scan.h" and the include path has "-I./eximinc", which defines the two above macros is ../../src picking up a different local_scan.h which wasn't patched for dlopen (i.e. which doesn't have the macros)? Do you mind investigating why you're seeing this? (I got a couple of similar reports, and it's not making sense to me) On Sat, May 03, 2003 at 03:42:05PM +0000, simon raven wrote: > well, i cheated, and removed the version checking. i have no idea if it > will puke all over the place in production or not, but i didn't see any > other way around the problem. As long as your exim is 4.11 or better, you'll be fine. I'd love to figure the above out though. 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 sdickenson at keyschool.org Tue May 6 13:49:02 2003 From: sdickenson at keyschool.org (Dickenson, Steven) Date: Tue May 6 09:49:08 2003 Subject: [SA-exim] Again sa-exim and fetchmail Message-ID: <1DBA7B491604E94BBCCE5133069A5BB248CE3B@ringo.internal.keyschool.org> Richard, Check your fetchmail configuration for a "no bouncemail" or "antispam -1" setting. These settings will cause fetchmail to save mail in your POP mailbox if they're rejected by your MTA. Steven --- Steven Dickenson Network Administrator The Key School, Annapolis Maryland From marc at merlins.org Tue May 6 11:03:46 2003 From: marc at merlins.org (Marc MERLIN) Date: Tue May 6 10:03:48 2003 Subject: [SA-exim] Again sa-exim and fetchmail In-Reply-To: <200305061646.10500.rich@rd.bergmair.cjb.net> References: <200305061646.10500.rich@rd.bergmair.cjb.net> Message-ID: <20030506170346.GA17418@merlins.org> On Tue, May 06, 2003 at 04:46:10PM +0200, Richard Bergmair wrote: > Can't anybody give me a hint? > I can't believe I'm the first one, trying to do this! No, I just answered that mail and I thought you were asking again, but it turns out it was someone else who was asking But no, pretty much no-one is doing that, fetchmail is a bastard setup and not exactly what sa-exim was designed for. > I receive both mail sent directly to my MTA, and mail sent to my provider's > mail-account. I use fetchmail 5.6.5 in deamon-mode to poll my provider's > POP3-server for new mail, and now I want to get rid of spam sent directly > to my MTA, as well as spam lying around in my providers mailbox. > > Filtering seems to work perfectly. I don't *receive* any more spam that > spamassassin can identify as such, but it's not deleted from the > POP3-account. sa-exim is not going to be very useful with fetchmail. > In fetchmail(1) I read, that fetchmail deletes mail only if the delivery was > either successful, or it receives one of the error-codes > [571, 550, 501, 554] which usually indicate that mail was rejected due to > spam-checking. Doesn't sa-exim send one of these error-codes, or what could It does, or it sends 4xx depending on the configuration. > be the reason, that spam remains in the mailbox, after running fetchmail on a > spammed mailbox? This is really a fetchmail problem, you should log your fetchmail smtp connection and ask on a fetchmail list. 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 jth at scibuzz.com Tue May 6 12:11:09 2003 From: jth at scibuzz.com (Torin Huzil) Date: Tue May 6 10:06:04 2003 Subject: [SA-exim] whitelist Message-ID: <2147483647.1052219469@biochem146.biochem.ualberta.ca> Is it possible to whitelist only a specific email address from a domain when using sa-exim. I want to allow a user to whitelist an email that is getting rejected by exim (not spamassassin). Thanks Torin. From tonni at billy.demon.nl Tue May 6 18:06:59 2003 From: tonni at billy.demon.nl (Tony Earnshaw) Date: Tue May 6 10:07:00 2003 Subject: [SA-exim] Which version(s) of spamassassin? In-Reply-To: <1DBA7B491604E94BBCCE5133069A5BB248CE39@ringo.internal.keyschool.org> References: <1DBA7B491604E94BBCCE5133069A5BB248CE39@ringo.internal.keyschool.org> Message-ID: <1052232856.21185.28.camel@localhost> P? ty , 06/05/2003 klokka 14:59, skreiv Dickenson, Steven: > I'm also running SpamAssassin v2.53 w/ SA-Exim 2.2. I haven't yet upgraded > to v3. The only thing I remember about v2.2 compatibility was to disable > report_safe in the local.cf file for SpamAssassin. Does this still hold > true for SA-Exim v3? All I can say, is that I've had report_safe on and off in both and everything has always worked perfectly normally, as per the SA docs. I've just 'grep -r'ed in both the SA-Exim 2.2 and 3.0 install directories and nothing. Where did you get this from? Tony -- Tony Earnshaw Do not come to visit me with both arms the same length. e-post: tonni@billy.demon.nl www: http://www.billy.demon.nl Tony Earnshaw From marc at merlins.org Tue May 6 11:09:10 2003 From: marc at merlins.org (Marc MERLIN) Date: Tue May 6 10:09:11 2003 Subject: [SA-exim] whitelist In-Reply-To: <2147483647.1052219469@biochem146.biochem.ualberta.ca> References: <2147483647.1052219469@biochem146.biochem.ualberta.ca> Message-ID: <20030506170910.GC17418@merlins.org> On Tue, May 06, 2003 at 11:11:09AM -0600, Torin Huzil wrote: > Is it possible to whitelist only a specific email address from a domain > when using sa-exim. I want to allow a user to whitelist an email that is > getting rejected by exim (not spamassassin). If exim is rejecting the mail, the whitelisting should be done in the exim ACLS, not in sa-exim. So, this would be a question for exim-users, along with your acl config and the reject error you're getting That is unless, I misunderstand something... 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 sdickenson at keyschool.org Tue May 6 14:12:10 2003 From: sdickenson at keyschool.org (Dickenson, Steven) Date: Tue May 6 10:12:16 2003 Subject: [SA-exim] Which version(s) of spamassassin? Message-ID: <1DBA7B491604E94BBCCE5133069A5BB248CE3C@ringo.internal.keyschool.org> It's something that came up on the mailing list about a month ago. I remember Marc's answer being "SA-Exim doesn't support that", or something to that effect. So I just disabled that feature when I upgraded to v2.53. I do use it on my home box, but I don't use SA-Exim there, as it runs fetchmail. Steven --- Steven Dickenson Network Administrator The Key School, Annapolis Maryland -----Original Message----- From: Tony Earnshaw [mailto:tonni@billy.demon.nl] Sent: Tuesday, May 06, 2003 10:54 AM To: 'sa-exim@lists.merlins.org' Subject: RE: [SA-exim] Which version(s) of spamassassin? P? ty , 06/05/2003 klokka 14:59, skreiv Dickenson, Steven: > I'm also running SpamAssassin v2.53 w/ SA-Exim 2.2. I haven't yet upgraded > to v3. The only thing I remember about v2.2 compatibility was to disable > report_safe in the local.cf file for SpamAssassin. Does this still hold > true for SA-Exim v3? All I can say, is that I've had report_safe on and off in both and everything has always worked perfectly normally, as per the SA docs. I've just 'grep -r'ed in both the SA-Exim 2.2 and 3.0 install directories and nothing. Where did you get this from? Tony -- Tony Earnshaw Do not come to visit me with both arms the same length. e-post: tonni@billy.demon.nl www: http://www.billy.demon.nl Tony Earnshaw _______________________________________________ SA-Exim mailing list SA-Exim@lists.merlins.org http://lists.merlins.org/lists/listinfo/sa-exim From marc at merlins.org Tue May 6 11:16:42 2003 From: marc at merlins.org (Marc MERLIN) Date: Tue May 6 10:16:44 2003 Subject: [SA-exim] Which version(s) of spamassassin? In-Reply-To: <1DBA7B491604E94BBCCE5133069A5BB248CE3C@ringo.internal.keyschool.org> References: <1DBA7B491604E94BBCCE5133069A5BB248CE3C@ringo.internal.keyschool.org> Message-ID: <20030506171642.GD17418@merlins.org> > I've just 'grep -r'ed in both the SA-Exim 2.2 and 3.0 install > directories and nothing. Where did you get this from? magic:~/public_html/linux/exim/files/sa-exim-3.0$ grep -3 report_safe * INSTALL- INSTALL- INSTALL-If you are using SA 2.50 or better, you should instead set INSTALL:report_safe 0 INSTALL- INSTALL- INSTALL-Important: I haven't upgraded to SA 2.5+ yet, so I haven't looked at it in more details. 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 tonni at billy.demon.nl Wed May 7 01:48:15 2003 From: tonni at billy.demon.nl (Tony Earnshaw) Date: Tue May 6 17:48:16 2003 Subject: [SA-exim] Which version(s) of spamassassin? In-Reply-To: <20030506171642.GD17418@merlins.org> References: <1DBA7B491604E94BBCCE5133069A5BB248CE3C@ringo.internal.keyschool.org> <20030506171642.GD17418@merlins.org> Message-ID: <1052266530.21185.89.camel@localhost> P? ty , 06/05/2003 klokka 19:16, skreiv Marc MERLIN: > > I've just 'grep -r'ed in both the SA-Exim 2.2 and 3.0 install > > directories and nothing. Where did you get this from? > > magic:~/public_html/linux/exim/files/sa-exim-3.0$ grep -3 report_safe * > INSTALL- > INSTALL- > INSTALL-If you are using SA 2.50 or better, you should instead set > INSTALL:report_safe 0 > INSTALL- > INSTALL- > INSTALL-Important: It's there indeed and my grep suddenly found it ;) However, what you are quoting in INSTALL, is simply verbatim from the SA 'man Mail::SpamAssassin::Conf', which detail how to maintain the 2.40 header spam reporting style, from which 2.50 differs. This has nothing to do with SA-Exim - whether 2.2 or 3.0 - it's purely a SpamAssassin affair. Best, Tony -- Tony Earnshaw Do not come to visit me with both arms the same length. e-post: tonni@billy.demon.nl www: http://www.billy.demon.nl Tony Earnshaw From thomask at mtnns.net Fri May 9 15:51:01 2003 From: thomask at mtnns.net (Thomas Kinghorn) Date: Fri May 9 05:51:30 2003 Subject: [SA-exim] need to upgrade Message-ID: <4625C59C329BC447AFFB52E7F8BFF27504FF980D@protea.int.citec.net> Hi Guys. I am currently using 4.10 BUT planning to upgrade. My platform is RH8, using SpamAssassin 2.53 and SA-exim-2.2 I will need to upgrade SA-exim too. Does anyone know of any serious implications? Regards, Tom Kinghorn -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.merlins.org/archives/sa-exim/attachments/20030509/55d1d3c2/attachment.html From marc_news at merlins.org Fri May 9 07:20:15 2003 From: marc_news at merlins.org (Marc MERLIN) Date: Fri May 9 06:20:17 2003 Subject: [SA-exim] need to upgrade In-Reply-To: <4625C59C329BC447AFFB52E7F8BFF27504FF980D@protea.int.citec.net> References: <4625C59C329BC447AFFB52E7F8BFF27504FF980D@protea.int.citec.net> Message-ID: <20030509132015.GF9891@merlins.org> [Reply-To: sa-exim] On Fri, May 09, 2003 at 02:51:01PM +0200, Thomas Kinghorn wrote: > Hi Guys. > > I am currently using 4.10 BUT planning to upgrade. > > My platform is RH8, using SpamAssassin 2.53 and SA-exim-2.2 > I will need to upgrade SA-exim too. > > Does anyone know of any serious implications? You'll be fine as long as you upgrade exim first. SA-Exim 3.0 requires exim 4.11 or better (new local_scan API) and if you patch exim with dlopen_localscan, you need to apply the new patch included with SA-Exim 3.0 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_news at merlins.org Fri May 9 07:20:15 2003 From: marc_news at merlins.org (Marc MERLIN) Date: Sun May 11 11:41:22 2003 Subject: [Exim] Re: [SA-exim] need to upgrade In-Reply-To: <4625C59C329BC447AFFB52E7F8BFF27504FF980D@protea.int.citec.net> References: <4625C59C329BC447AFFB52E7F8BFF27504FF980D@protea.int.citec.net> Message-ID: <20030509132015.GF9891@merlins.org> [Reply-To: sa-exim] On Fri, May 09, 2003 at 02:51:01PM +0200, Thomas Kinghorn wrote: > Hi Guys. > > I am currently using 4.10 BUT planning to upgrade. > > My platform is RH8, using SpamAssassin 2.53 and SA-exim-2.2 > I will need to upgrade SA-exim too. > > Does anyone know of any serious implications? You'll be fine as long as you upgrade exim first. SA-Exim 3.0 requires exim 4.11 or better (new local_scan API) and if you patch exim with dlopen_localscan, you need to apply the new patch included with SA-Exim 3.0 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 -- ## List details at http://www.exim.org/mailman/listinfo/exim-users Exim details at http://www.exim.org/ ## From thomask at mtnns.net Tue May 13 17:39:37 2003 From: thomask at mtnns.net (Thomas Kinghorn) Date: Tue May 13 07:40:05 2003 Subject: [SA-exim] help please...i am lost Message-ID: <4625C59C329BC447AFFB52E7F8BFF27504FF984A@protea.int.citec.net> Good afternoon. i upgraded exim to 4.14 and spamassassin to 2.54 today Now nothing works....... I am trying to install sa-exim-3.0 but cannot figure out how to patch. Please assist if you can find the time. here are the errors: gcc -c -O -I. -o local_scan.o ../src/local_scan.c ../src/local_scan.c:29:21: sa-exim.h: No such file or directory ../src/local_scan.c:427:2: warning: #warning you should not worry about the "might be clobbered by longjmp", see source ../src/local_scan.c: In function `local_scan': ../src/local_scan.c:1065: `version' undeclared (first use in this function) ../src/local_scan.c:1065: (Each undeclared identifier is reported only once ../src/local_scan.c:1065: for each function it appears in.) make[1]: *** [local_scan.o] Error 1 make[1]: Leaving directory `/downloads/new sa-exim and spamassassin/exim-4.14/build-Linux-i386' make: *** [go] Error 2 thank you all Tom -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.merlins.org/archives/sa-exim/attachments/20030513/125b128b/attachment.html From tony at sagabg.net Tue May 13 18:43:13 2003 From: tony at sagabg.net (Anton Emilov) Date: Tue May 13 07:43:32 2003 Subject: [SA-exim] wont compile exim4.14/sa-exim/dlopen 3.0 ? Message-ID: <14919933382.20030513174313@sagabg.net> Sorry If I am asking stupid question but I am new to sa-exim. I followed strictly the build instructions but it appears I have missed something. I am trying to build exim 4.14 with sa-exim 3.0 and dlopen patch on Debian box Though I applied the patch patch -p1 < ../sa-exim-3.0/localscan_dlopen.patch I am getting gcc -o exim -rdynamic acl.o child.o crypt16.o daemon.o dbfn.o debug.o deliver.o directory.o dns.o drtables.o enq.o exim.o expand.o filter.o globals.o header.o host.o ip.o log.o lss.o match.o moan.o os.o parse.o queue.o rda.o readconf.o receive.o retry.o rewrite.o route.o search.o smtp_in.o smtp_out.o spool_in.o spool_out.o store.o string.o tls.o tod.o transport.o tree.o verify.o local_scan.o version.o \ pcre/libpcre.a \ routers/routers.a transports/transports.a lookups/lookups.a \ auths/auths.a \ -lresolv -lnsl -lcrypt \ -ldb local_scan.o: In function `local_scan': local_scan.o(.text+0x3c): undefined reference to `dlerror' local_scan.o: In function `load_local_scan_library': local_scan.o(.text+0xc9): undefined reference to `dlopen' local_scan.o(.text+0xed): undefined reference to `dlsym' local_scan.o(.text+0xfd): undefined reference to `dlclose' local_scan.o(.text+0x11e): undefined reference to `dlsym' local_scan.o(.text+0x12e): undefined reference to `dlclose' local_scan.o(.text+0x14e): undefined reference to `dlclose' local_scan.o(.text+0x179): undefined reference to `dlclose' local_scan.o(.text+0x1a0): undefined reference to `dlsym' local_scan.o(.text+0x1bc): undefined reference to `dlclose' collect2: ld returned 1 exit status make[1]: *** [exim] Error 1 make[1]: Leaving directory `/root/exim-4.14/build-Linux-i386' make: *** [go] Error 2 I had similiar problem with exim 4.12 If someone can tell me what I have missed thanks in advance -- Best, Anton From marc at merlins.org Tue May 13 09:04:27 2003 From: marc at merlins.org (Marc MERLIN) Date: Tue May 13 08:04:29 2003 Subject: [SA-exim] help please...i am lost In-Reply-To: <4625C59C329BC447AFFB52E7F8BFF27504FF984A@protea.int.citec.net> References: <4625C59C329BC447AFFB52E7F8BFF27504FF984A@protea.int.citec.net> Message-ID: <20030513150427.GA6077@merlins.org> On Tue, May 13, 2003 at 04:39:37PM +0200, Thomas Kinghorn wrote: > Good afternoon. > > i upgraded exim to 4.14 and spamassassin to 2.54 today > Now nothing works....... > > I am trying to install sa-exim-3.0 but cannot figure out how to patch. > > Please assist if you can find the time. > > here are the errors: > > gcc -c -O -I. -o local_scan.o ../src/local_scan.c > ../src/local_scan.c:29:21: sa-exim.h: No such file or directory Type make sa-exim.h in the sa-exim source directory and copy the file where you copied local_scan.c I forgot to include that in the documentation for that release, sorry (honestly, I thought pretty much everyone would patch exim with the dlopen_localscan patch 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 christian_stuellenberg at web.de Tue May 13 18:01:15 2003 From: christian_stuellenberg at web.de (Christian Stuellenberg) Date: Tue May 13 08:06:25 2003 Subject: [SA-exim] Re: wont compile exim4.14/sa-exim/dlopen 3.0 ? In-Reply-To: <14919933382.20030513174313@sagabg.net> References: <14919933382.20030513174313@sagabg.net> Message-ID: <16065.2235.282261.606173@tower.cgs.condor.local> >>>>> "Anton" == Anton Emilov writes: Hello Anton, Anton> Sorry If I am asking stupid question but I am new to Anton> sa-exim. Anton> I followed strictly the build instructions but it Anton> appears I have missed something. I am trying to build exim Anton> 4.14 with sa-exim 3.0 and dlopen patch on Debian box Anton> Though I applied the patch Anton> patch -p1 < ../sa-exim-3.0/localscan_dlopen.patch Anton> I am getting Anton> gcc -o exim -rdynamic acl.o child.o crypt16.o daemon.o Anton> dbfn.o debug.o deliver.o directory.o dns.o drtables.o enq.o Anton> exim.o expand.o filter.o globals.o header.o host.o ip.o Anton> log.o lss.o match.o moan.o os.o parse.o queue.o rda.o Anton> readconf.o receive.o retry.o rewrite.o route.o search.o Anton> smtp_in.o smtp_out.o spool_in.o spool_out.o store.o Anton> string.o tls.o tod.o transport.o tree.o verify.o Anton> local_scan.o version.o \ pcre/libpcre.a \ routers/routers.a Anton> transports/transports.a lookups/lookups.a \ auths/auths.a \ Anton> -lresolv -lnsl -lcrypt \ -ldb local_scan.o: In function Anton> `local_scan': local_scan.o(.text+0x3c): undefined reference Anton> to `dlerror' local_scan.o: In function Anton> `load_local_scan_library': local_scan.o(.text+0xc9): Anton> undefined reference to `dlopen' local_scan.o(.text+0xed): Anton> undefined reference to `dlsym' local_scan.o(.text+0xfd): Anton> undefined reference to `dlclose' local_scan.o(.text+0x11e): Anton> undefined reference to `dlsym' local_scan.o(.text+0x12e): Anton> undefined reference to `dlclose' local_scan.o(.text+0x14e): Anton> undefined reference to `dlclose' local_scan.o(.text+0x179): Anton> undefined reference to `dlclose' local_scan.o(.text+0x1a0): Anton> undefined reference to `dlsym' local_scan.o(.text+0x1bc): Anton> undefined reference to `dlclose' collect2: ld returned 1 Anton> exit status make[1]: *** [exim] Error 1 make[1]: Leaving Anton> directory `/root/exim-4.14/build-Linux-i386' make: *** [go] Anton> Error 2 These errors indicate, that the library dl could not be linked against. Anton> I had similiar problem with exim 4.12 Anton> If someone can tell me what I have missed thanks in advance Quite easy to fix this. Look into your Local/Makefile in the exim-tree. Adjust the variable LFLAGS (which is new with SA-EXIM in src/EDITME) from LFLAGS=-rdynamic to LFLAGS=-rdynamic -ldl and call make makefile && make to rebuild. Then everything should work, if you have installed your [g]libc-development package. Regards, Christian From marc at merlins.org Tue May 13 09:44:28 2003 From: marc at merlins.org (Marc MERLIN) Date: Tue May 13 08:44:30 2003 Subject: [SA-exim] wont compile exim4.14/sa-exim/dlopen 3.0 ? In-Reply-To: <14919933382.20030513174313@sagabg.net> References: <14919933382.20030513174313@sagabg.net> Message-ID: <20030513154428.GB6077@merlins.org> On Tue, May 13, 2003 at 05:43:13PM +0300, Anton Emilov wrote: > I followed strictly the build instructions but it appears I have > missed something. I am trying to build exim 4.14 with sa-exim > 3.0 and dlopen patch on Debian box On which architecture? > Though I applied the patch > > gcc -o exim -rdynamic acl.o child.o crypt16.o daemon.o dbfn.o debug.o deliver.o directory.o dns.o drtables.o enq.o exim.o expand.o filter.o globals.o header.o host.o ip.o log.o lss.o match.o moan.o os.o parse.o queue.o rda.o readconf.o receive.o retry.o rewrite.o route.o search.o smtp_in.o smtp_out.o spool_in.o spool_out.o store.o string.o tls.o tod.o transport.o tree.o verify.o local_scan.o version.o \ > pcre/libpcre.a \ > routers/routers.a transports/transports.a lookups/lookups.a \ > auths/auths.a \ > -lresolv -lnsl -lcrypt \ > -ldb > local_scan.o: In function `local_scan': > local_scan.o(.text+0x3c): undefined reference to `dlerror' > local_scan.o: In function `load_local_scan_library': > local_scan.o(.text+0xc9): undefined reference to `dlopen' > local_scan.o(.text+0xed): undefined reference to `dlsym' > local_scan.o(.text+0xfd): undefined reference to `dlclose' > local_scan.o(.text+0x11e): undefined reference to `dlsym' > local_scan.o(.text+0x12e): undefined reference to `dlclose' > local_scan.o(.text+0x14e): undefined reference to `dlclose' > local_scan.o(.text+0x179): undefined reference to `dlclose' > local_scan.o(.text+0x1a0): undefined reference to `dlsym' > local_scan.o(.text+0x1bc): undefined reference to `dlclose' > collect2: ld returned 1 exit status > make[1]: *** [exim] Error 1 > make[1]: Leaving directory `/root/exim-4.14/build-Linux-i386' > make: *** [go] Error 2 Right, you are missing -ldl, which prevents dynamic symbols from working. On my system, it builts as such: gcc -o exim -rdynamic acl.o child.o crypt16.o daemon.o dbfn.o debug.o deliver.o directory.o dns.o drtables.o enq.o exim.o expand.o filter.o globals.o header.o host.o ip.o log.o lss.o match.o moan.o os.o parse.o queue.o rda.o readconf.o receive.o retry.o rewrite.o route.o search.o smtp_in.o smtp_out.o spool_in.o spool_out.o store.o string.o tls.o tod.o transport.o tree.o verify.o local_scan.o perl.o version.o \ -lpcre \ routers/routers.a transports/transports.a lookups/lookups.a \ auths/auths.a \ -lresolv -lnsl -lcrypt -lpam \ -ldb -lldap -llber -lmysqlclient -lpq -rdynamic -L/usr/local/lib /usr/lib/perl/5.6.1/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl/5.6.1/CORE -lperl -ldl -lm -lc -lcrypt -lgnutls -ltasn1 -lgcrypt When you build exim, try setting EXTRALIBS_EXIM=-ldl in the Makefile (exim's EDITME file) I don't have to add -ldl, it gets added by itself. I looked while, and it seems to be becuase of perl on my system, which also sets -ldl. I have a hard time to believe that the dlopen patch is missing -ldl from it, but it seems to be the case. I'll add it to the patch after you confirm that adding -ldl fixed it for you 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 simon at nuit.ca Tue May 13 17:51:20 2003 From: simon at nuit.ca (simon raven) Date: Tue May 13 09:52:33 2003 Subject: [SA-exim] sam-exim compilation In-Reply-To: References: Message-ID: <20030513165120.GD12394@nuit.ca> greetings list, hi i'm new to the list, just to introduce myself :). well i was having trouble compiling sa-exim module with the exim4 in debian's experimental, and the local_scan patch included with experimental, isn't the same as the one that marc merlins did up.. well, i removed the experimental patch, put in marc's patch, and modifying it slightly to have the same directories in the 'diff /foo /bar /baz' entries to point to the right dirs, and it worked like a charm. seems that the debian maintainer changed a few things in that patch, that didn't compile the modules at all - it would just abort at that point. i don't kow whether or not it's an issue with the patch, or with exim, or sa-exim per se. just to let folks know eric -- UNIX is user friendly, it's just picky about who its friends are. ------------------------------------------------------------------- ,''`. http://www.debian.org/ | http://www.nuit.ca/ : :' : Debian GNU/Linux | http://simonraven.nuit.ca/ `. `' | PGP key ID: 6169 BE0C 0891 A038 `- | From simon at nuit.ca Tue May 13 17:55:38 2003 From: simon at nuit.ca (simon raven) Date: Tue May 13 09:56:44 2003 Subject: [SA-exim] Re: sa-exim compilation In-Reply-To: References: Message-ID: <20030513165538.GE12394@nuit.ca> oops, forgot a couple of things: sa-exim 3.0; exim 4.14; sa 2.53 in debian sid cheers, eric -- UNIX is user friendly, it's just picky about who its friends are. ------------------------------------------------------------------- ,''`. http://www.debian.org/ | http://www.nuit.ca/ : :' : Debian GNU/Linux | http://simonraven.nuit.ca/ `. `' | PGP key ID: 6169 BE0C 0891 A038 `- | From tom.rowden at nomos.com Tue May 13 16:12:08 2003 From: tom.rowden at nomos.com (Tom Rowden) Date: Tue May 13 12:14:02 2003 Subject: [SA-exim] wont compile exim4.14/sa-exim/dlopen 3.0 ? Message-ID: <265C171B97EE1C47B2DD855915993CE31C@hq1.nomos.com> The -ldl is indeed your problem... I just re-compiled today and had that problem. I added it real quick and dirty to the LIBS and everything is fine. I am running a RedHat 8.0 system with Exim 4.14 and sa-exim 3.0 -Tom -----Original Message----- From: Marc MERLIN [mailto:marc@merlins.org] Sent: Tuesday, May 13, 2003 11:44 AM To: Anton Emilov Cc: sa-exim@lists.merlins.org Subject: Re: [SA-exim] wont compile exim4.14/sa-exim/dlopen 3.0 ? On Tue, May 13, 2003 at 05:43:13PM +0300, Anton Emilov wrote: > I followed strictly the build instructions but it appears I have > missed something. I am trying to build exim 4.14 with sa-exim > 3.0 and dlopen patch on Debian box On which architecture? > Though I applied the patch > > gcc -o exim -rdynamic acl.o child.o crypt16.o daemon.o dbfn.o debug.o deliver.o directory.o dns.o drtables.o enq.o exim.o expand.o filter.o globals.o header.o host.o ip.o log.o lss.o match.o moan.o os.o parse.o queue.o rda.o readconf.o receive.o retry.o rewrite.o route.o search.o smtp_in.o smtp_out.o spool_in.o spool_out.o store.o string.o tls.o tod.o transport.o tree.o verify.o local_scan.o version.o \ > pcre/libpcre.a \ > routers/routers.a transports/transports.a lookups/lookups.a \ > auths/auths.a \ > -lresolv -lnsl -lcrypt \ > -ldb > local_scan.o: In function `local_scan': > local_scan.o(.text+0x3c): undefined reference to `dlerror' > local_scan.o: In function `load_local_scan_library': > local_scan.o(.text+0xc9): undefined reference to `dlopen' > local_scan.o(.text+0xed): undefined reference to `dlsym' > local_scan.o(.text+0xfd): undefined reference to `dlclose' > local_scan.o(.text+0x11e): undefined reference to `dlsym' > local_scan.o(.text+0x12e): undefined reference to `dlclose' > local_scan.o(.text+0x14e): undefined reference to `dlclose' > local_scan.o(.text+0x179): undefined reference to `dlclose' > local_scan.o(.text+0x1a0): undefined reference to `dlsym' > local_scan.o(.text+0x1bc): undefined reference to `dlclose' > collect2: ld returned 1 exit status > make[1]: *** [exim] Error 1 > make[1]: Leaving directory `/root/exim-4.14/build-Linux-i386' > make: *** [go] Error 2 Right, you are missing -ldl, which prevents dynamic symbols from working. On my system, it builts as such: gcc -o exim -rdynamic acl.o child.o crypt16.o daemon.o dbfn.o debug.o deliver.o directory.o dns.o drtables.o enq.o exim.o expand.o filter.o globals.o header.o host.o ip.o log.o lss.o match.o moan.o os.o parse.o queue.o rda.o readconf.o receive.o retry.o rewrite.o route.o search.o smtp_in.o smtp_out.o spool_in.o spool_out.o store.o string.o tls.o tod.o transport.o tree.o verify.o local_scan.o perl.o version.o \ -lpcre \ routers/routers.a transports/transports.a lookups/lookups.a \ auths/auths.a \ -lresolv -lnsl -lcrypt -lpam \ -ldb -lldap -llber -lmysqlclient -lpq -rdynamic -L/usr/local/lib /usr/lib/perl/5.6.1/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl/5.6.1/CORE -lperl -ldl -lm -lc -lcrypt -lgnutls -ltasn1 -lgcrypt When you build exim, try setting EXTRALIBS_EXIM=-ldl in the Makefile (exim's EDITME file) I don't have to add -ldl, it gets added by itself. I looked while, and it seems to be becuase of perl on my system, which also sets -ldl. I have a hard time to believe that the dlopen patch is missing -ldl from it, but it seems to be the case. I'll add it to the patch after you confirm that adding -ldl fixed it for you 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 _______________________________________________ SA-Exim mailing list SA-Exim@lists.merlins.org http://lists.merlins.org/lists/listinfo/sa-exim From richard at lithvall.se Tue May 13 22:23:06 2003 From: richard at lithvall.se (Richard Lithvall) Date: Tue May 13 12:26:15 2003 Subject: [SA-exim] sam-exim compilation In-Reply-To: <20030513165120.GD12394@nuit.ca> References: <20030513165120.GD12394@nuit.ca> Message-ID: <3EC1461A.2060801@lithvall.se> simon raven wrote: > seems that the debian maintainer changed a few things in that patch, > that didn't compile the modules at all - it would just abort at that > point. i don't kow whether or not it's an issue with the patch, or with > exim, or sa-exim per se. At first i was going to argue with that, but then i did realize that i didn't know because i downloaded exim 4.14 src from ftp://ftp.csx.cam.ac.uk/pub/software/email/exim/ and applied Merlins dlopen-patch to the src and complied sa-exim with that source. The result however (sa-exim-3.0.so) works like a charm with debians experimental exim4 package (backported to woody) Just to let folks know :) /Richard - still waiting for Merlins sa-exim.deb From thomask at mtnns.net Wed May 14 08:12:12 2003 From: thomask at mtnns.net (Thomas Kinghorn) Date: Tue May 13 22:12:32 2003 Subject: [SA-exim] help please...i am lost Message-ID: <4625C59C329BC447AFFB52E7F8BFF27504FF984B@protea.int.citec.net> Thank you Marc. Just a matter of interest, how do you apply the patch. I was thrown in the deep end to get SA-Exim up and running. Sorry for this trivial question. Regards Tom -----Original Message----- From: Marc MERLIN [mailto:marc@merlins.org] Sent: 13 May 2003 05:04 To: Thomas Kinghorn Cc: Sa-Exim@Lists. Merlins. Org (E-mail) Subject: Re: [SA-exim] help please...i am lost On Tue, May 13, 2003 at 04:39:37PM +0200, Thomas Kinghorn wrote: > Good afternoon. > > i upgraded exim to 4.14 and spamassassin to 2.54 today > Now nothing works....... > > I am trying to install sa-exim-3.0 but cannot figure out how to patch. > > Please assist if you can find the time. > > here are the errors: > > gcc -c -O -I. -o local_scan.o ../src/local_scan.c > ../src/local_scan.c:29:21: sa-exim.h: No such file or directory Type make sa-exim.h in the sa-exim source directory and copy the file where you copied local_scan.c I forgot to include that in the documentation for that release, sorry (honestly, I thought pretty much everyone would patch exim with the dlopen_localscan patch 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 thomask at mtnns.net Wed May 14 14:17:49 2003 From: thomask at mtnns.net (Thomas Kinghorn) Date: Wed May 14 04:18:00 2003 Subject: [SA-exim] having a real bad day building Message-ID: <4625C59C329BC447AFFB52E7F8BFF27504FF9858@protea.int.citec.net> Hi all. I have patched the localscan_dlopen.patch but cannot for the life of me remember to build sa-exim-4.14.so ?? Today there is a grey cloud hanging over my head. Can anyone assist this senile man? Regards, Tom Kinghorn From thomask at mtnns.net Wed May 14 14:53:30 2003 From: thomask at mtnns.net (Thomas Kinghorn) Date: Wed May 14 04:53:41 2003 Subject: [SA-exim] local_scan_path Message-ID: <4625C59C329BC447AFFB52E7F8BFF27504FF985D@protea.int.citec.net> Hi Guys I have read the install file and followed the patch route. everything looks good up until i place local_scan_path in the exim configuration file. i keep getting the error below: Starting exim: 2003-05-14 13:56:14 Exim configuration error in line 142: main option "local_scan_path" unknown [FAILED] any ideas where i must look? please advise Thanks Tom -----Original Message----- From: Thomas Kinghorn Sent: 14 May 2003 01:18 To: Sa-Exim@Lists. Merlins. Org (E-mail) Subject: [SA-exim] having a real bad day building Hi all. I have patched the localscan_dlopen.patch but cannot for the life of me remember to build sa-exim-4.14.so ?? Today there is a grey cloud hanging over my head. Can anyone assist this senile man? Regards, Tom Kinghorn _______________________________________________ SA-Exim mailing list SA-Exim@lists.merlins.org http://lists.merlins.org/lists/listinfo/sa-exim From thomask at mtnns.net Wed May 14 15:29:45 2003 From: thomask at mtnns.net (Thomas Kinghorn) Date: Wed May 14 05:29:53 2003 Subject: [SA-exim] sa-exim-3 not working Message-ID: <4625C59C329BC447AFFB52E7F8BFF27504FF985E@protea.int.citec.net> Hi All. I have installed Exim 4.14. it has been built and is working. I then installed SpamAssassin 2.54 via CPAN. All compiled 100% I then built sa-exim-3.0 and applied the patch. Now nothing is working. When I add the line #local_scan_path = /usr/exim/local_scan/accept.so local_scan_path = /usr/exim/local_scan/sa-exim-3.0.so i get the following error: Starting exim: 2003-05-14 14:35:35 Exim configuration error in line 141: main option "local_scan_path" unknown [FAILED] Any pointers in the right direction would be appreciated. Regards, Tom Kinghorn PS..sorry about all the postings today....its been rough From tom.rowden at nomos.com Wed May 14 09:33:31 2003 From: tom.rowden at nomos.com (Tom Rowden) Date: Wed May 14 05:35:24 2003 Subject: [SA-exim] sa-exim-3 not working Message-ID: <265C171B97EE1C47B2DD855915993CE31E@hq1.nomos.com> So you built Exim... Then built SA.... Then applied the patch to the exim source code? Did you re-compile and then re-install the binaries? Did you copy the sa-exim-3.0.so file into /usr/exim/local_scan ? Something doesn't sound right about the order of events. -Tom -----Original Message----- From: Thomas Kinghorn [mailto:thomask@mtnns.net] Sent: Wednesday, May 14, 2003 8:30 AM To: Sa-Exim@Lists. Merlins. Org (E-mail) Subject: [SA-exim] sa-exim-3 not working Hi All. I have installed Exim 4.14. it has been built and is working. I then installed SpamAssassin 2.54 via CPAN. All compiled 100% I then built sa-exim-3.0 and applied the patch. Now nothing is working. When I add the line #local_scan_path = /usr/exim/local_scan/accept.so local_scan_path = /usr/exim/local_scan/sa-exim-3.0.so i get the following error: Starting exim: 2003-05-14 14:35:35 Exim configuration error in line 141: main option "local_scan_path" unknown [FAILED] Any pointers in the right direction would be appreciated. Regards, Tom Kinghorn PS..sorry about all the postings today....its been rough _______________________________________________ SA-Exim mailing list SA-Exim@lists.merlins.org http://lists.merlins.org/lists/listinfo/sa-exim From marc at merlins.org Wed May 14 07:49:26 2003 From: marc at merlins.org (Marc MERLIN) Date: Wed May 14 06:49:30 2003 Subject: [SA-exim] sa-exim-3 not working In-Reply-To: <4625C59C329BC447AFFB52E7F8BFF27504FF985E@protea.int.citec.net> References: <4625C59C329BC447AFFB52E7F8BFF27504FF985E@protea.int.citec.net> Message-ID: <20030514134926.GG6077@merlins.org> On Wed, May 14, 2003 at 02:29:45PM +0200, Thomas Kinghorn wrote: > Starting exim: 2003-05-14 14:35:35 Exim configuration error in line 141: > main option "local_scan_path" unknown You didn't patch exim with the dlopen_localscan patch (distributed with sa-exim) 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 sdickenson at keyschool.org Wed May 14 10:51:40 2003 From: sdickenson at keyschool.org (Dickenson, Steven) Date: Wed May 14 06:53:21 2003 Subject: [SA-exim] SA-Exim v3 Debian package? Message-ID: <1DBA7B491604E94BBCCE5133069A5BB248CE85@ringo.internal.keyschool.org> Marc, Any word on when an SA-Exim .deb is going to be available, assuming you're working on one? If you are, will it work with the Exim v4 .deb in experimental? Steven --- Steven Dickenson Network Administrator The Key School, Annapolis Maryland From thomask at mtnns.net Wed May 14 16:59:36 2003 From: thomask at mtnns.net (Thomas Kinghorn) Date: Wed May 14 06:59:51 2003 Subject: [SA-exim] sa-exim-3 not working Message-ID: <4625C59C329BC447AFFB52E7F8BFF27504FF9863@protea.int.citec.net> I did..... [root@mogwai src]# patch < ../../sa-exim-3.0/localscan_dlopen.patch patching file EDITME patching file config.h.defaults patching file globals.c patching file globals.h patching file local_scan.c patching file local_scan.h patching file readconf.c still gives the same error. :'o( -----Original Message----- From: Marc MERLIN [mailto:marc@merlins.org] Sent: 14 May 2003 03:49 To: Thomas Kinghorn Cc: Sa-Exim@Lists. Merlins. Org (E-mail) Subject: Re: [SA-exim] sa-exim-3 not working On Wed, May 14, 2003 at 02:29:45PM +0200, Thomas Kinghorn wrote: > Starting exim: 2003-05-14 14:35:35 Exim configuration error in line 141: > main option "local_scan_path" unknown You didn't patch exim with the dlopen_localscan patch (distributed with sa-exim) 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 Wed May 14 08:43:16 2003 From: marc at merlins.org (Marc MERLIN) Date: Wed May 14 07:43:18 2003 Subject: [SA-exim] sa-exim-3 not working In-Reply-To: <4625C59C329BC447AFFB52E7F8BFF27504FF9863@protea.int.citec.net> References: <4625C59C329BC447AFFB52E7F8BFF27504FF9863@protea.int.citec.net> Message-ID: <20030514144316.GH6077@merlins.org> On Wed, May 14, 2003 at 03:59:36PM +0200, Thomas Kinghorn wrote: > I did..... > > [root@mogwai src]# patch < ../../sa-exim-3.0/localscan_dlopen.patch > patching file EDITME > patching file config.h.defaults > patching file globals.c > patching file globals.h > patching file local_scan.c > patching file local_scan.h > patching file readconf.c You probably aren't running the binary that you compiled with that patch Here's how you can check gandalf:~# lsof -i :25 COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME exim4 2908 root 1u IPv4 5600 TCP *:smtp (LISTEN) gandalf:~# echo `cat /proc/2908/cmdline ` /usr/sbin/exim4-bd-q30m gandalf:~# strings /usr/sbin/exim4 | grep local_scan_path local_scan_path local_scan_path (the first two steps are linux specific, but you get the idea) You could also do: gandalf:~# strings /proc/2908/exe | grep local_scan_path local_scan_path local_scan_path 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 Wed May 14 08:45:14 2003 From: marc at merlins.org (Marc MERLIN) Date: Wed May 14 07:45:15 2003 Subject: [SA-exim] Re: SA-Exim v3 Debian package? In-Reply-To: <1DBA7B491604E94BBCCE5133069A5BB248CE85@ringo.internal.keyschool.org> References: <1DBA7B491604E94BBCCE5133069A5BB248CE85@ringo.internal.keyschool.org> Message-ID: <20030514144514.GI6077@merlins.org> On Wed, May 14, 2003 at 09:51:40AM -0400, Dickenson, Steven wrote: > Marc, > Any word on when an SA-Exim .deb is going to be available, assuming > you're working on one? If you are, will it work with the Exim v4 .deb in > experimental? Soon, yes, and yes. I've been very busy at work, so I got a bit delayed, but I'm hoping to be able to push this out this weekend. 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 sdickenson at keyschool.org Wed May 14 11:47:46 2003 From: sdickenson at keyschool.org (Dickenson, Steven) Date: Wed May 14 07:47:54 2003 Subject: [SA-exim] RE: SA-Exim v3 Debian package? Message-ID: <1DBA7B491604E94BBCCE5133069A5BB248CE86@ringo.internal.keyschool.org> On Wednesday, May 14, 2003 10:45 AM, Marc MERLIN wrote: > Soon, yes, and yes. Good stuff... :) Many thanks for your hard work on this software, btw. It's really a god-send in our spam fighting efforts! Steven --- Steven Dickenson Network Administrator The Key School, Annapolis Maryland From wash at wananchi.com Wed May 14 20:09:10 2003 From: wash at wananchi.com (ODHIAMBO Washington) Date: Wed May 14 09:09:39 2003 Subject: [SA-exim] exim4.20/exiscan/sa-exim/dlopen 3.0 Message-ID: <20030514160910.GA55475@ns2.wananchi.com> Hiya all, FreeBSD-4.8 here ;-) cd exim-4.20 patch -p1 < ../duncanthrax.net/exiscan/exiscan-4.20-26.patch patch -p1 < ../SA-EXIM/sa-exim-3.0/localscan_dlopen.patch make make install cd ../SA-EXIM/sa-exim-3.0/ vi Makefile to change the EXIM_SRC gmake mkdir -p /usr/lib/exim4/local_scan cp *.so /usr/lib/exim4/local_scan/ Now when I add the magic line to the global section of exim configure file I get the error main option "local_scan_path" unknown I thought I was following the INSTALL closely ;-) -Wash -- Odhiambo Washington "The box said 'Requires Wananchi Online Ltd. www.wananchi.com Windows 95, NT, or better,' Tel: +254 2 313985-9 +254 2 313922 so I installed FreeBSD." GSM: +254 72 743223 +254 733 744121 This sig is McQ! :-) Who messed with my anti-paranoia shot? From tonni at billy.demon.nl Wed May 14 18:56:03 2003 From: tonni at billy.demon.nl (Tony Earnshaw) Date: Wed May 14 10:56:04 2003 Subject: [SA-exim] Exim 4.120/SA-Exim 3.0 running Message-ID: <1052934368.28590.51.camel@localhost> Just in case people think that it never works :) Red Hat Linux 7.2, kernel 2.4.19/ACPI, many system updates. Did the patch and install according to Marc's instructions, apart from copying Local/* from my Exim 4.14 to 4.20/Local after checking srsc/EDITME to see that there was no difference (didn't use the 4.20 patched EDITME.). sa-exim-3.0.so wasn't changed or recompiled; I'm using the one compiled for Exim 4.14. I can't understand Thomas' or Wash's troubles. Wash should know to copy the SA-Exim-patched src/EDITME to Local and do any final adjustments there before compiling? I don't have to tell him that ;) If the patches have been applied correctly, Exim *must* know what local_scan_path is. Renewed thanks to Marc for a fantastic product. I'm 10 days into learning Postfix (2.0.9) to be able to support it for different applications; it's *so* different from Exim in philosophy and implementation. Integrating SpamAssassin alone has been a PITA; the only useful results are with amavisd-new and even that doesn't even come near to doing what SA-Exim can do. Best, Tony -- Tony Earnshaw There's none so daft as them as will not learn. http://www.billy.demon.nl Mail: tonni@billy.demon.nl From thomask at mtnns.net Fri May 16 09:49:05 2003 From: thomask at mtnns.net (Thomas Kinghorn) Date: Thu May 15 23:49:32 2003 Subject: [SA-exim] best way to patch Message-ID: <4625C59C329BC447AFFB52E7F8BFF27504FF9876@protea.int.citec.net> Hi Guys I am still battling away with trying to get the local_scan to work. What is the route to follow to patch? I have been changing to the exim4.14/src directory and issuing patch < ../../sa-exim-3.0/localscan_dlopen.patch Is this correct? Please assist, I am going grey here. :'o( Regards, Tom Kinghorn From thomask at mtnns.net Fri May 16 09:56:36 2003 From: thomask at mtnns.net (Thomas Kinghorn) Date: Thu May 15 23:56:56 2003 Subject: [SA-exim] FW: best way to patch Message-ID: <4625C59C329BC447AFFB52E7F8BFF27504FF9877@protea.int.citec.net> Okay, I have patched the file, copied the new EDITME to Local/Makefile and run a 'make' this is what I am getting. -ldb local_scan.o: In function `local_scan': local_scan.o(.text+0x3f): undefined reference to `dlerror' local_scan.o: In function `load_local_scan_library': local_scan.o(.text+0xc8): undefined reference to `dlopen' local_scan.o(.text+0xec): undefined reference to `dlsym' local_scan.o(.text+0xfc): undefined reference to `dlclose' local_scan.o(.text+0x11b): undefined reference to `dlsym' local_scan.o(.text+0x12b): undefined reference to `dlclose' local_scan.o(.text+0x147): undefined reference to `dlclose' local_scan.o(.text+0x164): undefined reference to `dlclose' local_scan.o(.text+0x18b): undefined reference to `dlsym' local_scan.o(.text+0x1a0): undefined reference to `dlclose' collect2: ld returned 1 exit status make[1]: *** [exim] Error 1 make[1]: Leaving directory `/downloads/exim-4.14/build-Linux-i386' make: *** [go] Error 2 [ any idea's Thank you all Tom > -----Original Message----- > From: Thomas Kinghorn > Sent: 16 May 2003 08:49 > To: Sa-Exim@Lists. Merlins. Org (E-mail) > Subject: best way to patch > Importance: High > > Hi Guys > > I am still battling away with trying to get the local_scan to work. > > What is the route to follow to patch? > > I have been changing to the exim4.14/src directory > and issuing patch < ../../sa-exim-3.0/localscan_dlopen.patch > > Is this correct? > > Please assist, I am going grey here. :'o( > > Regards, > Tom Kinghorn > From marc at merlins.org Fri May 16 01:00:31 2003 From: marc at merlins.org (Marc MERLIN) Date: Fri May 16 00:00:33 2003 Subject: [SA-exim] FW: best way to patch In-Reply-To: <4625C59C329BC447AFFB52E7F8BFF27504FF9877@protea.int.citec.net> References: <4625C59C329BC447AFFB52E7F8BFF27504FF9877@protea.int.citec.net> Message-ID: <20030516070031.GB29421@merlins.org> On Fri, May 16, 2003 at 08:56:36AM +0200, Thomas Kinghorn wrote: > Okay, I have patched the file, copied the new EDITME > to Local/Makefile and run a 'make' > > this is what I am getting. Add a -dl, as explained right here a few days ago 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 thomask at mtnns.net Fri May 16 12:08:08 2003 From: thomask at mtnns.net (Thomas Kinghorn) Date: Fri May 16 02:08:26 2003 Subject: [SA-exim] FW: best way to patch Message-ID: <4625C59C329BC447AFFB52E7F8BFF27504FF987D@protea.int.citec.net> ran make -dl as explained: got this gcc -o exim -rdynamic acl.o child.o crypt16.o daemon.o dbfn.o debug.o deliver.o directory.o dns.o drtables.o enq.o exim.o expand.o filter.o globals.o header.o host.o ip.o log.o lss.o match.o moan.o os.o parse.o queue.o rda.o readconf.o receive.o retry.o rewrite.o route.o search.o smtp_in.o smtp_out.o spool_in.o spool_out.o store.o string.o tls.o tod.o transport.o tree.o verify.o local_scan.o version.o \ pcre/libpcre.a \ routers/routers.a transports/transports.a lookups/lookups.a \ auths/auths.a \ -lresolv -lnsl -lcrypt \ -ldb Live child 0x08094ba8 (exim) PID 14581 local_scan.o: In function `local_scan': local_scan.o(.text+0x3f): undefined reference to `dlerror' local_scan.o: In function `load_local_scan_library': local_scan.o(.text+0xc8): undefined reference to `dlopen' local_scan.o(.text+0xec): undefined reference to `dlsym' local_scan.o(.text+0xfc): undefined reference to `dlclose' local_scan.o(.text+0x11b): undefined reference to `dlsym' local_scan.o(.text+0x12b): undefined reference to `dlclose' local_scan.o(.text+0x147): undefined reference to `dlclose' local_scan.o(.text+0x164): undefined reference to `dlclose' local_scan.o(.text+0x18b): undefined reference to `dlsym' local_scan.o(.text+0x1a0): undefined reference to `dlclose' collect2: ld returned 1 exit status Got a SIGCHLD; 1 unreaped children. Reaping losing child 0x08094ba8 PID 14581 make[1]: *** [exim] Error 1 Removing child 0x08094ba8 PID 14581 from chain. make[1]: Leaving directory `/downloads/exim-4.14/build-Linux-i386' Got a SIGCHLD; 1 unreaped children. Reaping losing child 0x08074330 PID 14159 make: *** [go] Error 2 Removing child 0x08074330 PID 14159 from chain. -----Original Message----- From: Marc MERLIN [mailto:marc@merlins.org] Sent: 16 May 2003 09:01 To: Thomas Kinghorn Cc: Sa-Exim@Lists. Merlins. Org (E-mail) Subject: Re: [SA-exim] FW: best way to patch On Fri, May 16, 2003 at 08:56:36AM +0200, Thomas Kinghorn wrote: > Okay, I have patched the file, copied the new EDITME > to Local/Makefile and run a 'make' > > this is what I am getting. Add a -dl, as explained right here a few days ago 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 tonni at billy.demon.nl Fri May 16 10:22:29 2003 From: tonni at billy.demon.nl (Tony Earnshaw) Date: Fri May 16 02:22:31 2003 Subject: [SA-exim] Postmaster question Message-ID: <1053074929.15165.31.camel@localhost> Hi list, Ethical question - first to this list then, if nobody cares, to the SA and Exim lists. SA-Exim by default lets all mail, including spam, to postmaster@mydomain through. I reject all spam above 7.0 at smtp time with an smtp 550. However, I send a polite note with it that mail to postmaster will be accepted, if we've made a mistake. The result is, that the spammer (where he has a real address and sees this) sends his spam to postmaster :-/ So, I want postmaster's mail scanned and rejected too, if it's spam. the rfc282* says this would be wrong of me. What do you think? Best, Tony -- Tony Earnshaw Forty two. http://www.billy.demon.nl Mail: tonni@billy.demon.nl From thomask at mtnns.net Fri May 16 12:34:53 2003 From: thomask at mtnns.net (Thomas Kinghorn) Date: Fri May 16 02:35:04 2003 Subject: [SA-exim] Postmaster question Message-ID: <4625C59C329BC447AFFB52E7F8BFF27504FF9880@protea.int.citec.net> Hi Tony. If spammers break the rules, why cant you ;o) Go for it. Teergrubbing is wrong to, but like the literature says "HEY, They started it" -----Original Message----- From: Tony Earnshaw [mailto:tonni@billy.demon.nl] Sent: 16 May 2003 10:49 To: sa-exim@lists.merlins.org Subject: [SA-exim] Postmaster question Hi list, Ethical question - first to this list then, if nobody cares, to the SA and Exim lists. SA-Exim by default lets all mail, including spam, to postmaster@mydomain through. I reject all spam above 7.0 at smtp time with an smtp 550. However, I send a polite note with it that mail to postmaster will be accepted, if we've made a mistake. The result is, that the spammer (where he has a real address and sees this) sends his spam to postmaster :-/ So, I want postmaster's mail scanned and rejected too, if it's spam. the rfc282* says this would be wrong of me. What do you think? Best, Tony -- Tony Earnshaw Forty two. http://www.billy.demon.nl Mail: tonni@billy.demon.nl _______________________________________________ SA-Exim mailing list SA-Exim@lists.merlins.org http://lists.merlins.org/lists/listinfo/sa-exim From wash at wananchi.com Fri May 16 13:37:54 2003 From: wash at wananchi.com (ODHIAMBO Washington) Date: Fri May 16 02:38:39 2003 Subject: [SA-exim] Exim 4.120/SA-Exim 3.0 running In-Reply-To: <1052934368.28590.51.camel@localhost> References: <1052934368.28590.51.camel@localhost> Message-ID: <20030516093754.GC63656@ns2.wananchi.com> * Tony Earnshaw [20030514 20:56]: wrote: > Just in case people think that it never works :) > > Red Hat Linux 7.2, kernel 2.4.19/ACPI, many system updates. > > Did the patch and install according to Marc's instructions, apart from > copying Local/* from my Exim 4.14 to 4.20/Local after checking > srsc/EDITME to see that there was no difference (didn't use the 4.20 > patched EDITME.). > > sa-exim-3.0.so wasn't changed or recompiled; I'm using the one compiled > for Exim 4.14. > > I can't understand Thomas' or Wash's troubles. Wash should know to copy > the SA-Exim-patched src/EDITME to Local and do any final adjustments > there before compiling? I don't have to tell him that ;) If the patches > have been applied correctly, Exim *must* know what local_scan_path is. ;-/ Hmm, that was it. I did everything correctly but instead of using the patched EDITME for Local/Makefile, I used my custom Makefile that I have always kept, because I had sdiff-ed it with the one for exim-4.20 and saw there was no change!! Stupid me, the patch changed stuff a bit. Okay, so the instructions for FreeBSD (4.8) users should be like this: FreeBSD-4.8 here ;-) cd exim-4.20 patch -p1 < ../duncanthrax.net/exiscan/exiscan-4.20-26.patch patch -p1 < ../SA-EXIM/sa-exim-3.0/localscan_dlopen.patch cp src/EDITME Local/Makefile # make the changes desired here, then make make install cd ../SA-EXIM/sa-exim-3.0/ vi Makefile to change the EXIM_SRC gmake mkdir -p /usr/lib/exim4/local_scan cp *.so /usr/lib/exim4/local_scan/ Thanks Tony! I am wondering why you had to go the Postfix way. Is it for fun (and two lives in the MTA world) or is there something PostFix does better than Exim? -Wash -- Odhiambo Washington "The box said 'Requires Wananchi Online Ltd. www.wananchi.com Windows 95, NT, or better,' Tel: +254 2 313985-9 +254 2 313922 so I installed FreeBSD." GSM: +254 72 743223 +254 733 744121 This sig is McQ! :-) Dimensions will always be expressed in the least usable term. Velocity, for example, will be expressed in furlongs per fortnight. From dom at earth.li Fri May 16 11:41:42 2003 From: dom at earth.li (Dominic Hargreaves) Date: Fri May 16 02:41:48 2003 Subject: [SA-exim] Postmaster question In-Reply-To: <1053074929.15165.31.camel@localhost>; from tonni@billy.demon.nl on Fri, May 16, 2003 at 10:48:50AM +0200 References: <1053074929.15165.31.camel@localhost> Message-ID: <20030516104141.D1443@tirian.magd.ox.ac.uk> On Fri, May 16, 2003 at 10:48:50AM +0200, Tony Earnshaw wrote: > SA-Exim by default lets all mail, including spam, to postmaster@mydomain > through. I reject all spam above 7.0 at smtp time with an smtp 550. > However, I send a polite note with it that mail to postmaster will be > accepted, if we've made a mistake. The result is, that the spammer > (where he has a real address and sees this) sends his spam to postmaster > :-/ Do you provide the full e-mail address of postmaster, or just the local-part (to be qualified by the sender with an ounce of clue)? I can believe that spammers automatically scan bounces for valid e-mail addresses, but not that they'd read them manually, in which case just providing the local part (ie: "please e-mail postmaster at this domain if this is a mistake") should have the desired effect. > So, I want postmaster's mail scanned and rejected too, if it's spam. the > rfc282* says this would be wrong of me. What do you think? I'd avoid it if possible, but if you have to maybe think about putting a higher threshold on for it? Cheers, Dom. From hans-peter.zahno at unifr.ch Fri May 16 12:44:32 2003 From: hans-peter.zahno at unifr.ch (Hans-Peter Zahno) Date: Fri May 16 02:43:54 2003 Subject: [SA-exim] Postmaster question In-Reply-To: <1053074929.15165.31.camel@localhost> References: <1053074929.15165.31.camel@localhost> Message-ID: <200305161144.32042.hans-peter.zahno@unifr.ch> Dear Tony, at our site we run all messages throug SA, but don't rejcet the ones for postmaster. The messages are only flagged, so you can do whatever you want with the flagged messages by your MUA. You don't break the rules, but can keep spam away from ham in the postmaster mailbox. Regards Hans-Peter Am Freitag, 16. Mai 2003 10.48 schrieb Tony Earnshaw: > Hi list, > > Ethical question - first to this list then, if nobody cares, to the SA > and Exim lists. > > SA-Exim by default lets all mail, including spam, to postmaster@mydomain > through. I reject all spam above 7.0 at smtp time with an smtp 550. > However, I send a polite note with it that mail to postmaster will be > accepted, if we've made a mistake. The result is, that the spammer > (where he has a real address and sees this) sends his spam to postmaster > > :-/ > > So, I want postmaster's mail scanned and rejected too, if it's spam. the > rfc282* says this would be wrong of me. What do you think? > > Best, > > Tony From wash at wananchi.com Fri May 16 13:46:48 2003 From: wash at wananchi.com (ODHIAMBO Washington) Date: Fri May 16 02:47:35 2003 Subject: [SA-exim] Postmaster question In-Reply-To: <1053074929.15165.31.camel@localhost> References: <1053074929.15165.31.camel@localhost> Message-ID: <20030516094648.GD63656@ns2.wananchi.com> * Tony Earnshaw [20030516 12:22]: wrote: > Hi list, > > Ethical question - first to this list then, if nobody cares, to the SA > and Exim lists. Well, it's ethical. So I think what really matters is whether you care about postmaster mail ;-) Do have a nice weekend Tony. -Wash -- Odhiambo Washington "The box said 'Requires Wananchi Online Ltd. www.wananchi.com Windows 95, NT, or better,' Tel: +254 2 313985-9 +254 2 313922 so I installed FreeBSD." GSM: +254 72 743223 +254 733 744121 This sig is McQ! :-) "This is a job for BOB VIOLENCE and SCUM, the INCREDIBLY STUPID MUTANT DOG." -- Bob Violence From wash at wananchi.com Fri May 16 14:15:30 2003 From: wash at wananchi.com (ODHIAMBO Washington) Date: Fri May 16 03:15:50 2003 Subject: [SA-exim] Exim 4.120/SA-Exim 3.0 running In-Reply-To: <20030516093754.GC63656@ns2.wananchi.com> References: <1052934368.28590.51.camel@localhost> <20030516093754.GC63656@ns2.wananchi.com> Message-ID: <20030516101530.GH63656@ns2.wananchi.com> * Wash [20030516 12:38]: wrote: > * Tony Earnshaw [20030514 20:56]: wrote: > > Just in case people think that it never works :) > > > > Red Hat Linux 7.2, kernel 2.4.19/ACPI, many system updates. > > > > Did the patch and install according to Marc's instructions, apart from > > copying Local/* from my Exim 4.14 to 4.20/Local after checking > > srsc/EDITME to see that there was no difference (didn't use the 4.20 > > patched EDITME.). > > > > sa-exim-3.0.so wasn't changed or recompiled; I'm using the one compiled > > for Exim 4.14. > > > > I can't understand Thomas' or Wash's troubles. Wash should know to copy > > the SA-Exim-patched src/EDITME to Local and do any final adjustments > > there before compiling? I don't have to tell him that ;) If the patches > > have been applied correctly, Exim *must* know what local_scan_path is. > > > ;-/ > > Hmm, that was it. I did everything correctly but instead of using the > patched EDITME for Local/Makefile, I used my custom Makefile that I have > always kept, because I had sdiff-ed it with the one for exim-4.20 and saw > there was no change!! Stupid me, the patch changed stuff a bit. > > > Okay, so the instructions for FreeBSD (4.8) users should be like this: > > FreeBSD-4.8 here ;-) > > > cd exim-4.20 > patch -p1 < ../duncanthrax.net/exiscan/exiscan-4.20-26.patch > patch -p1 < ../SA-EXIM/sa-exim-3.0/localscan_dlopen.patch Guys, please change those paths ;-) Those were specifically relevant to my dir hier here. I am sorry if they misled someone. I forgot to change them to something more general. Best regards, Odhiambo Washington Wananchi Online Ltd. ___W_A_N_A_N_C_H_I__O_N_L_I_N_E__L_T_D___The People's Choice______ Wananchi Head Office |*| Tel: +254 2 313 985-9 1st Flr Loita, Loita St.|*| Fax: +254 2 313 922 10286-GPO, NAIROBI, KE |*| e-mail: ------------------------------------------------------------------ ++ If the stewardess tells me NT is a far more stable and reliable OS than UNIX, I'll nod politely and say "Is it really? How nice." From thomask at mtnns.net Fri May 16 14:14:18 2003 From: thomask at mtnns.net (Thomas Kinghorn) Date: Fri May 16 04:15:11 2003 Subject: [SA-exim] Exim 4.120/SA-Exim 3.0 running Message-ID: <4625C59C329BC447AFFB52E7F8BFF27504FF9883@protea.int.citec.net> AARRGGGHHHH another error........ downloads/sa-exim-3.0# make sa-exim-3.0.so Building sa-exim-3.0.so gcc -I../exim-4.14/src -I./eximinc -DDLOPEN_LOCAL_SCAN -DSPAMASSASSIN_CONF=\"/usr/exim/spamassassin.conf\" -DSPAMC_LOCATION=\"/usr/bin/spamc\" -O2 -Wall -shared -o sa-exim-3.0.so sa-exim.c sa-exim.c: In function `local_scan_version_major': sa-exim.c:38: `LOCAL_SCAN_ABI_VERSION_MAJOR' undeclared (first use in this function) sa-exim.c:38: (Each undeclared identifier is reported only once sa-exim.c:38: for each function it appears in.) sa-exim.c: In function `local_scan_version_minor': sa-exim.c:43: `LOCAL_SCAN_ABI_VERSION_MINOR' undeclared (first use in this function) sa-exim.c:427:2: warning: #warning you should not worry about the "might be clobbered by longjmp", see source make: *** [sa-exim-3.0.so] Error 1 any idea's. sorry to bug everyone. thanks for all the help. Tom -----Original Message----- From: ODHIAMBO Washington [mailto:wash@wananchi.com] Sent: 16 May 2003 11:38 To: sa-exim@lists.merlins.org Subject: Re: [SA-exim] Exim 4.120/SA-Exim 3.0 running * Tony Earnshaw [20030514 20:56]: wrote: > Just in case people think that it never works :) > > Red Hat Linux 7.2, kernel 2.4.19/ACPI, many system updates. > > Did the patch and install according to Marc's instructions, apart from > copying Local/* from my Exim 4.14 to 4.20/Local after checking > srsc/EDITME to see that there was no difference (didn't use the 4.20 > patched EDITME.). > > sa-exim-3.0.so wasn't changed or recompiled; I'm using the one compiled > for Exim 4.14. > > I can't understand Thomas' or Wash's troubles. Wash should know to copy > the SA-Exim-patched src/EDITME to Local and do any final adjustments > there before compiling? I don't have to tell him that ;) If the patches > have been applied correctly, Exim *must* know what local_scan_path is. ;-/ Hmm, that was it. I did everything correctly but instead of using the patched EDITME for Local/Makefile, I used my custom Makefile that I have always kept, because I had sdiff-ed it with the one for exim-4.20 and saw there was no change!! Stupid me, the patch changed stuff a bit. Okay, so the instructions for FreeBSD (4.8) users should be like this: FreeBSD-4.8 here ;-) cd exim-4.20 patch -p1 < ../duncanthrax.net/exiscan/exiscan-4.20-26.patch patch -p1 < ../SA-EXIM/sa-exim-3.0/localscan_dlopen.patch cp src/EDITME Local/Makefile # make the changes desired here, then make make install cd ../SA-EXIM/sa-exim-3.0/ vi Makefile to change the EXIM_SRC gmake mkdir -p /usr/lib/exim4/local_scan cp *.so /usr/lib/exim4/local_scan/ Thanks Tony! I am wondering why you had to go the Postfix way. Is it for fun (and two lives in the MTA world) or is there something PostFix does better than Exim? -Wash -- Odhiambo Washington "The box said 'Requires Wananchi Online Ltd. www.wananchi.com Windows 95, NT, or better,' Tel: +254 2 313985-9 +254 2 313922 so I installed FreeBSD." GSM: +254 72 743223 +254 733 744121 This sig is McQ! :-) Dimensions will always be expressed in the least usable term. Velocity, for example, will be expressed in furlongs per fortnight. _______________________________________________ SA-Exim mailing list SA-Exim@lists.merlins.org http://lists.merlins.org/lists/listinfo/sa-exim From wash at wananchi.com Fri May 16 15:34:36 2003 From: wash at wananchi.com (ODHIAMBO Washington) Date: Fri May 16 04:35:12 2003 Subject: [SA-exim] Exim 4.120/SA-Exim 3.0 running In-Reply-To: <4625C59C329BC447AFFB52E7F8BFF27504FF9883@protea.int.citec.net> References: <4625C59C329BC447AFFB52E7F8BFF27504FF9883@protea.int.citec.net> Message-ID: <20030516113436.GI63656@ns2.wananchi.com> * Thomas Kinghorn [20030516 14:14]: wrote: > AARRGGGHHHH > > another error........ > > downloads/sa-exim-3.0# make sa-exim-3.0.so If you by any chance run FreeBSD, then simply do gmake That is what I outlined in mine. Don't ask me why `make` fails on FreeBSD;-) It's historical. Anyway, why are you passing an argument to `make` ??? Best regards, Odhiambo Washington Wananchi Online Ltd. ___W_A_N_A_N_C_H_I__O_N_L_I_N_E__L_T_D___The People's Choice______ Wananchi Head Office |*| Tel: +254 2 313 985-9 1st Flr Loita, Loita St.|*| Fax: +254 2 313 922 10286-GPO, NAIROBI, KE |*| e-mail: ------------------------------------------------------------------ ++ Can I dial 1-255-255-255255 and make every phone in the world ring? -- Tanuki From brian at enchanter.net Fri May 16 10:20:44 2003 From: brian at enchanter.net (Brian Kendig) Date: Fri May 16 06:22:01 2003 Subject: [SA-exim] Postmaster question In-Reply-To: <1053074929.15165.31.camel@localhost> Message-ID: <32D5983F-87A1-11D7-A696-000A27952E04@enchanter.net> > So, I want postmaster's mail scanned and rejected too, if it's spam. > the > rfc282* says this would be wrong of me. What do you think? I don't think there's anything wrong with filtering the postmaster account's email, especially if you rarely or never get legitimate messages there. Something else you could do: when you send a polite note with your reject message to point people to a different address, choose some new address which hasn't been found by the spammers yet. For example, my reject message says 'this message looks like spam, if it's not then please re-send to notspam@mydomain.com.' I've set SA to let all mail for that address through without filtering it. So far spammers haven't found that address... and if they ever do, then I'll just change it to 'notspam2' instead. It's my throwaway 'get out of spamtrap free' address. From wash at wananchi.com Fri May 16 19:43:12 2003 From: wash at wananchi.com (ODHIAMBO Washington) Date: Fri May 16 08:43:32 2003 Subject: [SA-exim] Where are the required hits for SA set? Message-ID: <20030516154312.GA91230@ns2.wananchi.com> Hey Marc, I run SA-EXIM just for 1 minute and it caught over 50 emails. Not a single false positive.!!! This must be the coolest thing. Great piece that is. In my environment, not everyone likes their mail scanned. So I am thinking on changing SAEximRunCond: So far the only users that I do run SA for are decided by the following condition within a router: condition = ${lookup{$local_part}lsearch{/usr/local/etc/exim/spamcheck_users}{yes}{no}} And I am giving them the option of recovering tagged mail. The mail is not rejected, but just saved somewhere. They are notified using some cron job and they can recover the mail by sending the identifier to some robot. Cool so far, but I am tempted to just reject spam anyway. I am lost on two fronts: 1. Does SA-EXIM ever read /etc/mail/spamassassin/local.cf ?? It does not in my case and I am wondering which files it gets required = 7.0 ;-))) 2. Is it possible that I can incorporate the above condition in the SAEximRunCond ?? Thanks.. -Wash -- Odhiambo Washington "The box said 'Requires Wananchi Online Ltd. www.wananchi.com Windows 95, NT, or better,' Tel: +254 2 313985-9 +254 2 313922 so I installed FreeBSD." GSM: +254 72 743223 +254 733 744121 This sig is McQ! :-) Omnibiblious, adj.: Indifferent to type of drink. "Oh, you can get me anything. I'm omnibiblious." From sdickenson at keyschool.org Fri May 16 12:50:54 2003 From: sdickenson at keyschool.org (Dickenson, Steven) Date: Fri May 16 08:52:41 2003 Subject: [SA-exim] Where are the required hits for SA set? Message-ID: <1DBA7B491604E94BBCCE5133069A5BB248CE96@ringo.internal.keyschool.org> (Sorry for the top post... Outlook). $local_part is not availabe during SMTP time, because a message can be destined for multiple recipients. It's an all or nothing approach with this type of setup. Reading local.cf is the job of SpamAssassin, not SA-Exim (which simply calls SA). Steven --- Steven Dickenson Network Administrator The Key School, Annapolis Maryland -----Original Message----- From: ODHIAMBO Washington [mailto:wash@wananchi.com] Sent: Friday, May 16, 2003 11:43 AM To: sa-exim@lists.merlins.org Subject: [SA-exim] Where are the required hits for SA set? Hey Marc, I run SA-EXIM just for 1 minute and it caught over 50 emails. Not a single false positive.!!! This must be the coolest thing. Great piece that is. In my environment, not everyone likes their mail scanned. So I am thinking on changing SAEximRunCond: So far the only users that I do run SA for are decided by the following condition within a router: condition = ${lookup{$local_part}lsearch{/usr/local/etc/exim/spamcheck_users}{yes}{no}} And I am giving them the option of recovering tagged mail. The mail is not rejected, but just saved somewhere. They are notified using some cron job and they can recover the mail by sending the identifier to some robot. Cool so far, but I am tempted to just reject spam anyway. I am lost on two fronts: 1. Does SA-EXIM ever read /etc/mail/spamassassin/local.cf ?? It does not in my case and I am wondering which files it gets required = 7.0 ;-))) 2. Is it possible that I can incorporate the above condition in the SAEximRunCond ?? Thanks.. -Wash -- Odhiambo Washington "The box said 'Requires Wananchi Online Ltd. www.wananchi.com Windows 95, NT, or better,' Tel: +254 2 313985-9 +254 2 313922 so I installed FreeBSD." GSM: +254 72 743223 +254 733 744121 This sig is McQ! :-) Omnibiblious, adj.: Indifferent to type of drink. "Oh, you can get me anything. I'm omnibiblious." _______________________________________________ SA-Exim mailing list SA-Exim@lists.merlins.org http://lists.merlins.org/lists/listinfo/sa-exim From wash at wananchi.com Fri May 16 19:59:24 2003 From: wash at wananchi.com (ODHIAMBO Washington) Date: Fri May 16 08:59:43 2003 Subject: [SA-exim] Where are the required hits for SA set? In-Reply-To: <1DBA7B491604E94BBCCE5133069A5BB248CE96@ringo.internal.keyschool.org> References: <1DBA7B491604E94BBCCE5133069A5BB248CE96@ringo.internal.keyschool.org> Message-ID: <20030516155924.GB91230@ns2.wananchi.com> * Dickenson, Steven [20030516 18:51]: wrote: > (Sorry for the top post... Outlook). > > $local_part is not availabe during SMTP time, because a message can be > destined for multiple recipients. It's an all or nothing approach with this > type of setup. I see. So SA-EXIM is meant for a spam-free server, not where some folks like p*%n and other don't ;-) > Reading local.cf is the job of SpamAssassin, not SA-Exim (which simply calls > SA). Good. I have this in local.cf: rewrite_subject 1 subject_tag SPAM: _HITS_: required_hits 6 report_header 0 use_terse_report 0 report_safe 1 spam_level_char + But SA-Exim says required_hits = 7.0 2003-05-16 18:29:54 19Gh9E-000NBg-L1 SA: Action: scanned but message isn't spam: hits=6.1 required=7.0 (scanned in 21/21 secs) In this particular case it defied my rules!! How comes??? -Wash -- Odhiambo Washington "The box said 'Requires Wananchi Online Ltd. www.wananchi.com Windows 95, NT, or better,' Tel: +254 2 313985-9 +254 2 313922 so I installed FreeBSD." GSM: +254 72 743223 +254 733 744121 This sig is McQ! :-) A gleekzorp without a tornpee is like a quop without a fertsneet (sort of). From marc at merlins.org Fri May 16 11:27:50 2003 From: marc at merlins.org (Marc MERLIN) Date: Fri May 16 10:27:52 2003 Subject: [SA-exim] Where are the required hits for SA set? In-Reply-To: <20030516155924.GB91230@ns2.wananchi.com> References: <1DBA7B491604E94BBCCE5133069A5BB248CE96@ringo.internal.keyschool.org> <20030516155924.GB91230@ns2.wananchi.com> Message-ID: <20030516172750.GG29421@merlins.org> On Fri, May 16, 2003 at 06:59:24PM +0300, ODHIAMBO Washington wrote: > required_hits 6 > > But SA-Exim says required_hits = 7.0 You set this in spamassassin.conf. The SA required_hits says when SA flags your mail The SA-Exim required_hits (Set in SApermreject and friends, say when SA-Exim performs a specific action with the mail. 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 tonni at billy.demon.nl Fri May 16 22:28:22 2003 From: tonni at billy.demon.nl (Tony Earnshaw) Date: Fri May 16 14:28:23 2003 Subject: [SA-exim] FW: best way to patch In-Reply-To: <4625C59C329BC447AFFB52E7F8BFF27504FF987D@protea.int.citec.net> References: <4625C59C329BC447AFFB52E7F8BFF27504FF987D@protea.int.citec.net> Message-ID: <1053120424.3479.57.camel@localhost> fre, 16.05.2003 kl. 11.08 skrev Thomas Kinghorn: > ran make -dl as explained: > got this That's not what was being explained. The whole SA-Exim thing presupposes you have a common install directory with exim-4.14, sa-exim-3.0 and exim-4.20 next to each other. The sa-exim-3.0 Makefile has a mistake in line 22: "EXIM_SRC= ../exim-4.14/src". If you never installed or patched exim-4.14 and only began with 4.20, this will give a compile error - since it's pointing at a directory that doesn't exist and was never patched. Edit Makefile and change line 22 to read: "EXIM_SRC= ../exim-4.20/src" Then edit exim-4.20/Local/Makefile: Find "LOOKUP_LIBS". add -ldl to the end of that line. If it's commented out in the first place, uncomment it. Actually, it implies '-L/usr/lib -ldl', but you shouldn't need the /usr/lib bit, since make will always look in /usr/lib for libs. Then change back to ../sa-exim-3.0 and do 'make'. Nothing else, just 'make. See what happens. Best, Tony > -----Original Message----- > From: Marc MERLIN [mailto:marc@merlins.org] > Sent: 16 May 2003 09:01 > To: Thomas Kinghorn > Cc: Sa-Exim@Lists. Merlins. Org (E-mail) > Subject: Re: [SA-exim] FW: best way to patch > > > On Fri, May 16, 2003 at 08:56:36AM +0200, Thomas Kinghorn wrote: > > Okay, I have patched the file, copied the new EDITME > > to Local/Makefile and run a 'make' > > > > this is what I am getting. > > Add a -dl, as explained right here a few days ago -- Tony Earnshaw From tonni at billy.demon.nl Fri May 16 22:28:35 2003 From: tonni at billy.demon.nl (Tony Earnshaw) Date: Fri May 16 14:28:36 2003 Subject: [SA-exim] Exim 4.120/SA-Exim 3.0 running In-Reply-To: <20030516093754.GC63656@ns2.wananchi.com> References: <1052934368.28590.51.camel@localhost> <20030516093754.GC63656@ns2.wananchi.com> Message-ID: <1053117446.3479.31.camel@localhost> fre, 16.05.2003 kl. 11.37 skrev ODHIAMBO Washington: > I am wondering why you had to go the Postfix way. Is it for fun (and two lives > in the MTA world) or is there something PostFix does better than Exim? Because Postfix is the standard MTA in SuSE's OpenExchange server, Guardian Digital hardened server and more such things, I'm expected to support it by mates who install such things and then turn to me for MTA help and suchlike. Exim is and always will be my first love - it's never, ever let me down since I began with it in 1997. Learning Postfix is fun (like learning a new Unix flavor), but Wietse Venema rules with a rod of iron and doesn't have Philip's or Marc's flexible attitude (because he's a Big Blue - IBM - employee.) Postfix is IBM's and Postfix people despise Exim, because Postfix people believe they are better than all other people ;) Best, Tony -- Tony Earnshaw Forty two. http://www.billy.demon.nl Mail: tonni@billy.demon.nl From marc at merlins.org Fri May 16 15:34:32 2003 From: marc at merlins.org (Marc MERLIN) Date: Fri May 16 14:34:34 2003 Subject: [SA-exim] FW: best way to patch In-Reply-To: <1053120424.3479.57.camel@localhost> References: <4625C59C329BC447AFFB52E7F8BFF27504FF987D@protea.int.citec.net> <1053120424.3479.57.camel@localhost> Message-ID: <20030516213432.GB21929@merlins.org> On Fri, May 16, 2003 at 11:27:04PM +0200, Tony Earnshaw wrote: > The whole SA-Exim thing presupposes you have a common install directory > with exim-4.14, sa-exim-3.0 and exim-4.20 next to each other. Not anymore actually. sa-exim-3.0 will build without exim, it includes the exim headers it needs That's why I updated the dlopen patch to have an API version number > The sa-exim-3.0 Makefile has a mistake in line 22: "EXIM_SRC= > ../exim-4.14/src". If you never installed or patched exim-4.14 and only > began with 4.20, this will give a compile error - since it's pointing at > a directory that doesn't exist and was never patched. Not quite. See http://marc.merlins.org/linux/exim/files/sa-exim-current/Makefile EXIM_SRC= ../../src EXIM_SRC_LOCAL = ./eximinc BUILDCFLAGS=-I$(EXIM_SRC) -I$(EXIM_SRC_LOCAL) It allows you to provide your own exim headers by doing the right thing, or sa-exim 3.0 will fall back to its own exim 4.14 headers. > Find "LOOKUP_LIBS". add -ldl to the end of that line. If it's commented > out in the first place, uncomment it. Actually, it implies '-L/usr/lib > -ldl', but you shouldn't need the /usr/lib bit, since make will always > look in /usr/lib for libs. Right. That's missing from the patch, I'll need to fix that. 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 tonni at billy.demon.nl Sat May 17 06:24:44 2003 From: tonni at billy.demon.nl (Tony Earnshaw) Date: Fri May 16 22:24:46 2003 Subject: [SA-exim] FW: best way to patch In-Reply-To: <20030516213432.GB21929@merlins.org> References: <4625C59C329BC447AFFB52E7F8BFF27504FF987D@protea.int.citec.net> <1053120424.3479.57.camel@localhost> <20030516213432.GB21929@merlins.org> Message-ID: <1053148939.5340.10.camel@localhost> fre, 16.05.2003 kl. 23.34 skrev Marc MERLIN: > > The whole SA-Exim thing presupposes you have a common install directory > > with exim-4.14, sa-exim-3.0 and exim-4.20 next to each other. > > Not anymore actually. [...] > Not quite. > See http://marc.merlins.org/linux/exim/files/sa-exim-current/Makefile [...] O.k., I was simply reporting what's in my own stuff (I was looking for things that might have caused Thomas' compile to fail.) I never changed anything in the 3.0 code, this time :) I'm afraid I missed your posting to this list telling people to grab the latest SA-Exim 3.0 because things had changed since the original ;) Best, Tony -- Tony Earnshaw Forty two. http://www.billy.demon.nl Mail: tonni@billy.demon.nl From thomask at mtnns.net Mon May 19 11:31:32 2003 From: thomask at mtnns.net (Thomas Kinghorn) Date: Mon May 19 01:31:48 2003 Subject: [SA-exim] FW: best way to patch - FIXED..thanks Message-ID: <4625C59C329BC447AFFB52E7F8BFF27504FF9892@protea.int.citec.net> Hi All. If ever there was a day that I felt like a Horses A**, it is today. I would like to say a big thank you to : Tony Earnshaw, Marc Merlin & wash for all there help last week. Thank you for all your patience with this numb-skull. The patch works as instructed. A single line which I skipped while reading caused all my problems. All is working as the per the README and INSTALL files. Regards, Tom Kinghorn From dcombe at zeekthegeek.net Mon May 19 12:11:56 2003 From: dcombe at zeekthegeek.net (dcombe@zeekthegeek.net) Date: Mon May 19 10:12:42 2003 Subject: [SA-exim] Trouble with sa-exim that just poped up. Message-ID: <20030519171156.GA3674@Tick.zeekthegeek.net> I had sa-exim running just fine for about 2 weeks now with no problems. Now all the sudden I am starting to get a panic with every email I get incoming now. I have tried to find some info about it on the net but have not found anything. Log of error: 2003-05-18 21:59:31 19HboB-0004Wh-7B SA: Debug: SAEximRunCond expand returned: '1' 2003-05-18 21:59:31 19HboB-0004Wh-7B SA: Debug: check succeeded, running spamc 2003-05-18 21:59:31 19HboB-0004Wh-7B SA: PANIC: wait on spamc child yielded, 18944 (but message was accepted) 2003-05-18 21:59:31 19HboB-0004Wh-7B SA: Debug: Writing message to /var/spool/exim/SAerrorsave/new/1053316771_af970cabd8a8$2e0b4e86$e9252820@2rvqw31 I have ran the spamc with the previous email piped into it and spamc returned the email with the proper headers added and the echo $? returned a 0. I am running Exim verion: 4.14 SA-Exim Version: 3.0 Spamassassin Version: 2.52 Any ideas? From wash at wananchi.com Tue May 20 11:16:37 2003 From: wash at wananchi.com (ODHIAMBO Washington) Date: Tue May 20 00:17:30 2003 Subject: [SA-exim] Where are the required hits for SA set? In-Reply-To: <20030516172750.GG29421@merlins.org> References: <1DBA7B491604E94BBCCE5133069A5BB248CE96@ringo.internal.keyschool.org> <20030516155924.GB91230@ns2.wananchi.com> <20030516172750.GG29421@merlins.org> Message-ID: <20030520071637.GB94726@ns2.wananchi.com> * Marc MERLIN [20030516 20:28]: wrote: > On Fri, May 16, 2003 at 06:59:24PM +0300, ODHIAMBO Washington wrote: > > required_hits 6 > > > > But SA-Exim says required_hits = 7.0 > > You set this in spamassassin.conf. > The SA required_hits says when SA flags your mail > The SA-Exim required_hits (Set in SApermreject and friends, say when SA-Exim > performs a specific action with the mail. Please excuse my dumbness on this, but I don't seem to see where the 7.0 originates from in my spamassassin.conf. -Wash -- Odhiambo Washington "The box said 'Requires Wananchi Online Ltd. www.wananchi.com Windows 95, NT, or better,' Tel: +254 2 313985-9 +254 2 313922 so I installed FreeBSD." GSM: +254 72 743223 +254 733 744121 This sig is McQ! :-) Where there's a will, there's an Inheritance Tax. From marc at merlins.org Tue May 20 01:46:15 2003 From: marc at merlins.org (Marc MERLIN) Date: Tue May 20 00:46:17 2003 Subject: [SA-exim] Where are the required hits for SA set? In-Reply-To: <20030520071637.GB94726@ns2.wananchi.com> References: <1DBA7B491604E94BBCCE5133069A5BB248CE96@ringo.internal.keyschool.org> <20030516155924.GB91230@ns2.wananchi.com> <20030516172750.GG29421@merlins.org> <20030520071637.GB94726@ns2.wananchi.com> Message-ID: <20030520074615.GE30680@merlins.org> On Tue, May 20, 2003 at 10:16:37AM +0300, ODHIAMBO Washington wrote: > Please excuse my dumbness on this, but I don't seem to see where the 7.0 > originates from in my spamassassin.conf. Sorry, but I'm not going to rewrite the docs in the configuration file here. Read them, it's all there (Read the README and INSTALL too if you haven't yet) 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 hans-peter.zahno at unifr.ch Tue May 20 11:14:09 2003 From: hans-peter.zahno at unifr.ch (Hans-Peter Zahno) Date: Tue May 20 01:12:37 2003 Subject: [SA-exim] SA-exim panic: Bad file number Message-ID: <200305201014.09591.hans-peter.zahno@unifr.ch> Hello, we are running SA-exim 3.0 /exim 4.20 / SA 2.54 on Solaris 9. Yesterday exim did panic. Here is the panic log: 2003-05-19 09:22:37 19Heye-0003Mc-DM SA: PANIC: Error in error handler while trying to save mail to /usr/local/exim/spool/spamassassin/SAerrorsave/1053328957_!~!UENERkVCMDkAAQACAHMAAAAAAAAAOKG7E AXlEBqhuwgAKypWwgAARU1TTURCLkRMTAAAAAAAAAAAG1X6IKpmEc2byACqAC-EWgwAAABFWENIQU5HRTEAL289U1dJVENIL2 91PVVuaUZyL2NuPVJlY2lwaWVudHMvY249SG9mbmVyTUMALgAAAAAAAABaeMxioxzTEakpCAArw18xAQD5hbJG5oDQEaipAAD 4MADuAAAAJd5tAAAAAAAALgAAAAAAAABaeMxioxzTEakpCAArw18xAQD5hbJG5oDQEaipAAD4MADuAAAAJd5uAAAQAAAA90lF q2cASUazp5Y51yC1-x0AAABGQ0hPIC0gcHJvamV0IEZvcm1hdGlvbiBTaWRhAA==@wohnhas.ch, file ../src/local_sc an.c, line 1303: Bad file number Anybody has an idea what went wrong with this message? Regards Hans-Peter From thomask at mtnns.net Tue May 20 14:58:11 2003 From: thomask at mtnns.net (Thomas Kinghorn) Date: Tue May 20 04:58:37 2003 Subject: [SA-exim] +nosarej ????? Message-ID: <4625C59C329BC447AFFB52E7F8BFF27504FF98BF@protea.int.citec.net> Hi Guys. Using sa-exim-3.0, what (or should I say where) is +nosarej? Do you add the list to the exim directory? Sorry, I am a little confused as I cannot get SA to NOT scan my locally sent mails. warn message = X-SA-Do-Not-Rej: Yes local_parts = +nosarej:postmaster:abuse Regards, Tom Kinghorn From thomask at mtnns.net Tue May 20 15:57:40 2003 From: thomask at mtnns.net (Thomas Kinghorn) Date: Tue May 20 05:57:53 2003 Subject: [SA-exim] X-SA-Do-Not-Run Message-ID: <4625C59C329BC447AFFB52E7F8BFF27504FF98C2@protea.int.citec.net> Hi All Is it possible to instruct SA not to run on specific domains. As specified below: warn message = X-SA-Do-Not-Run: Yes domains = lsearch;/usr/exim/redirect_domains/hub-list the file hub-list is a list of domains that have no public dns entries (internally), i.e 10. ip's The route to their servers is in a file hub-list.route Regards, Tom Kinghorn From marc at merlins.org Tue May 20 10:34:19 2003 From: marc at merlins.org (Marc MERLIN) Date: Tue May 20 09:34:23 2003 Subject: [SA-exim] SA-exim panic: Bad file number In-Reply-To: <200305201014.09591.hans-peter.zahno@unifr.ch> References: <200305201014.09591.hans-peter.zahno@unifr.ch> Message-ID: <20030520163418.GF30680@merlins.org> On Tue, May 20, 2003 at 10:14:09AM +0200, Hans-Peter Zahno wrote: > Hello, > > we are running SA-exim 3.0 /exim 4.20 / SA 2.54 on Solaris 9. > Yesterday exim did panic. Here is the panic log: > > 2003-05-19 09:22:37 19Heye-0003Mc-DM SA: PANIC: Error in error handler while trying to save mail > to /usr/local/exim/spool/spamassassin/SAerrorsave/1053328957_!~!UENERkVCMDkAAQACAHMAAAAAAAAAOKG7E > AXlEBqhuwgAKypWwgAARU1TTURCLkRMTAAAAAAAAAAAG1X6IKpmEc2byACqAC-EWgwAAABFWENIQU5HRTEAL289U1dJVENIL2 > 91PVVuaUZyL2NuPVJlY2lwaWVudHMvY249SG9mbmVyTUMALgAAAAAAAABaeMxioxzTEakpCAArw18xAQD5hbJG5oDQEaipAAD > 4MADuAAAAJd5tAAAAAAAALgAAAAAAAABaeMxioxzTEakpCAArw18xAQD5hbJG5oDQEaipAAD4MADuAAAAJd5uAAAQAAAA90lF > q2cASUazp5Y51yC1-x0AAABGQ0hPIC0gcHJvamV0IEZvcm1hdGlvbiBTaWRhAA==@wohnhas.ch, file ../src/local_sc > an.c, line 1303: Bad file number > > Anybody has an idea what went wrong with this message? That looks like the Message-ID, and while it looks like a valid filename, solaris refused to create it. I'm not sure this is a bug with sa-exim or not. One possible fix is to set a DATA ACL that rejects a message whose Message-Id is longer than 100 characters or so If you know a little C, see if you can get sa-exim to truncate the messageid string before it creates the filename. I'll probably add that to the code when I get the chance 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 Tue May 20 10:37:20 2003 From: marc at merlins.org (Marc MERLIN) Date: Tue May 20 09:37:22 2003 Subject: [SA-exim] +nosarej ????? In-Reply-To: <4625C59C329BC447AFFB52E7F8BFF27504FF98BF@protea.int.citec.net> References: <4625C59C329BC447AFFB52E7F8BFF27504FF98BF@protea.int.citec.net> Message-ID: <20030520163720.GG30680@merlins.org> On Tue, May 20, 2003 at 01:58:11PM +0200, Thomas Kinghorn wrote: > Hi Guys. > > Using sa-exim-3.0, what (or should I say where) is +nosarej? > > warn message = X-SA-Do-Not-Rej: Yes > local_parts = +nosarej:postmaster:abuse It's exim syntax, it specifies a locat_part list It's an example/hint, that you should have this in your conf file: localpartlist nosarej = CONFDIR/acls/destwhitelist If it doesn't make sense, see the exim documentation, or remove it :-) 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 Tue May 20 10:38:44 2003 From: marc at merlins.org (Marc MERLIN) Date: Tue May 20 09:38:46 2003 Subject: [SA-exim] X-SA-Do-Not-Run In-Reply-To: <4625C59C329BC447AFFB52E7F8BFF27504FF98C2@protea.int.citec.net> References: <4625C59C329BC447AFFB52E7F8BFF27504FF98C2@protea.int.citec.net> Message-ID: <20030520163844.GH30680@merlins.org> On Tue, May 20, 2003 at 02:57:40PM +0200, Thomas Kinghorn wrote: > Hi All > > Is it possible to instruct SA not to run on specific domains. > > As specified below: > > warn message = X-SA-Do-Not-Run: Yes > domains = lsearch;/usr/exim/redirect_domains/hub-list > > > the file hub-list is a list of domains that have no public dns entries > (internally), i.e 10. ip's > The route to their servers is in a file hub-list.route I think (I'm not quite awake yet) Note that these are exim questions, they aren't sa-exim specific. You'd get more/better answers on the exim-users list. 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 m.balvers at addicts.nl Tue May 20 22:39:30 2003 From: m.balvers at addicts.nl (Martin Balvers) Date: Tue May 20 12:39:37 2003 Subject: [SA-exim] logfile entry for max. teergrube time Message-ID: <47212.213.84.248.7.1053459570.squirrel@webmail.addicts.nl> Hi, I am writing a logparser for sa-exim logfiles (exim_mainlog). I was wondering why the scantime and the message recipient are not logged when a teergrube takes the fully configured amount of time. If the spammer/sender closes the connection before the max. configured teergrube time, both scantime and recipient address are logged. You can find the logparser at : http://nossie.addicts.nl/projects/sa-exim-stats/ Martin From richard at lithvall.se Wed May 21 00:49:49 2003 From: richard at lithvall.se (Richard Lithvall) Date: Tue May 20 14:48:57 2003 Subject: [SA-exim] Which version(s) of spamassassin? In-Reply-To: <1052266530.21185.89.camel@localhost> References: <1DBA7B491604E94BBCCE5133069A5BB248CE3C@ringo.internal.keyschool.org> <20030506171642.GD17418@merlins.org> <1052266530.21185.89.camel@localhost> Message-ID: <3ECAA2FD.7020106@lithvall.se> Den 7 Maj 2003 klockan 02:15 skrev Tony Earnshaw f?ljande: > However, what you are quoting in INSTALL, is simply verbatim from the SA > 'man Mail::SpamAssassin::Conf', which detail how to maintain the 2.40 > header spam reporting style, from which 2.50 differs. > > This has nothing to do with SA-Exim - whether 2.2 or 3.0 - it's purely a > SpamAssassin affair. Yes, it doesn't matter if you run sa-exim 2.2 or 3.0. report_safe > 0 won't work with either version, but it is a sa-exim affair... ...take a close look at this: Subject: Re: Low Interest Rates for Homes ejnehyy X-Spam-Flag: YES X-Spam-Status: Yes, hits=10.4 required=5.0 tests=BAD_CREDIT,DATE_IN_PAST_03_06,FORGED_MUA_OUTLOOK, LOW_INTEREST,MISSING_MIMEOLE,MORTGAGE_BEST,MORTGAGE_PITCH, RCVD_IN_NJABL,RCVD_IN_UNCONFIRMED_DSBL version=2.54 X-Spam-Level: ********** X-Spam-Checker-Version: SpamAssassin 2.54 (1.174.2.17-2003-05-11-exp) Content-Type: multipart/mixed; boundary="----------=_3ECA940E.E34C99ED" X-SA-Exim-Version: 3.0 (built Mon May 5 22:52:02 CEST 2003) X-SA-Exim-Scanned: Yes This is a multi-part message in MIME format. --880C.1CA8A8E.EB_ Content-Type: text/plain Content-Transfer-Encoding: quoted-printable FREE MORTGAGE QUOTE & BEST POSSIBLE RATES ! SA (2.54 w/ report_safe=1) adds the 'Content-Type: multipart/mixed; boundary="----------=_3ECA940E.E34C99ED"'-header but as I see it sa-exim doesn't make use of the mail-body spamc returns but sticks with the original body and the boundary (SA added) is never found by the MUA and thus the mail won't show up at all. /Richard From thomask at mtnns.net Wed May 21 13:29:10 2003 From: thomask at mtnns.net (Thomas Kinghorn) Date: Wed May 21 03:30:00 2003 Subject: [SA-exim] why do all my own mails get scanned???? Message-ID: <4625C59C329BC447AFFB52E7F8BFF27504FF98D9@protea.int.citec.net> Hi List (s). Please can someone help me with not scanning my own mails. below is an extract from my exim config. My comments are in bold.. I have this under main configuration settings: smtp_banner = "${primary_hostname} Secure SMTP \n\ ${tod_full} 2003\n\n\ This server uses various blacklist services to\n\ filter mail from known spamming hosts & users.\n\ See the Spam Advisory section at www.spews.org for more information.\n" domainlist local_domains = @ domainlist relay_to_domains = lsearch;/usr/exim/relay-domains/rtdomains <<<< References: <20030519171156.GA3674@Tick.zeekthegeek.net> Message-ID: <20030521204141.GC9036@merlins.org> On Mon, May 19, 2003 at 11:11:56AM -0600, dcombe@zeekthegeek.net wrote: > I had sa-exim running just fine for about 2 weeks now with no problems. > > Now all the sudden I am starting to get a panic with every email I get incoming now. I have tried to find some info about it on the net but have not found anything. > > Log of error: > 2003-05-18 21:59:31 19HboB-0004Wh-7B SA: Debug: SAEximRunCond expand returned: '1' > 2003-05-18 21:59:31 19HboB-0004Wh-7B SA: Debug: check succeeded, running spamc > 2003-05-18 21:59:31 19HboB-0004Wh-7B SA: PANIC: wait on spamc child yielded, 18944 (but message was accepted) > 2003-05-18 21:59:31 19HboB-0004Wh-7B SA: Debug: Writing message to /var/spool/exim/SAerrorsave/new/1053316771_af970cabd8a8$2e0b4e86$e9252820@2rvqw31 18944 is a return code of 74 (divide by 256) I don't have the time to look it up, but spamc is returning an error code of 74. Look in the docs or sources what makes it do that. 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 Wed May 21 14:44:38 2003 From: marc at merlins.org (Marc MERLIN) Date: Wed May 21 13:44:39 2003 Subject: [SA-exim] logfile entry for max. teergrube time In-Reply-To: <47212.213.84.248.7.1053459570.squirrel@webmail.addicts.nl> References: <47212.213.84.248.7.1053459570.squirrel@webmail.addicts.nl> Message-ID: <20030521204438.GD9036@merlins.org> On Tue, May 20, 2003 at 09:39:30PM +0200, Martin Balvers wrote: > Hi, > > I am writing a logparser for sa-exim logfiles (exim_mainlog). > I was wondering why the scantime and the message recipient are not logged > when a teergrube takes the fully configured amount of time. > If the spammer/sender closes the connection before the max. configured > teergrube time, both scantime and recipient address are logged. It's an oversight in the logging. I'll fix that. 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 Wed May 21 17:56:59 2003 From: marc at merlins.org (Marc MERLIN) Date: Wed May 21 16:57:07 2003 Subject: [SA-exim] Do you want an announce list? Message-ID: <20030521235659.GM9036@merlins.org> Since there's been more traffic on the list due to sa-exim becoming more popular, I'd like to ask if some of you would rather have a announce list Please reply to me. 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 thomask at mtnns.net Thu May 22 08:58:55 2003 From: thomask at mtnns.net (Thomas Kinghorn) Date: Wed May 21 22:59:43 2003 Subject: [SA-exim] spamassassin.conf in sa-exim-3.0 Message-ID: <4625C59C329BC447AFFB52E7F8BFF27504FF98EB@protea.int.citec.net> Morning all. Please could someone assist me with regards to this expression in the spamassassin.conf file provided with sa-exim. SAEximRunCond: ${if and {{def:sender_host_address} {!eq {$sender_host_address}{127.0.0.1}} {!eq {$h_X-SA-Do-Not-Run:}{Yes}} } {1}{0}} SAEximRunCond: 0 If I set the RunCond to 0, all spam comes through. I get the "Run condition expanded to false" statement. Received: from 173.red-80-37-208.pooles.rima-tde.net (173.Red-80-37-208.pooles.rima-tde.net [80.37.208.173]) by eagle.tml.co.za (8.10.0/8.11.0) with SMTP id h4L9YbQ15634 for ; Wed, 21 May 2003 11:34:39 +0200 (GMT) Received: from ([190.232.220.43]) by 173.red-80-37-208.pooles.rima-tde.net id 1ykY92Q12sWn; Wed, 21 May 2003 13:30:09 +0300 Message-ID: <7n8b58v9jmd9zt27i527-2q-$g@e3k9u> From: "Lizzie Major" To: dns-admin@citec.net Subject: M.I.L.F'S Date: Wed, 21 May 03 13:30:09 GMT X-Mailer: Internet Mail Service (5.5.2650.21) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="50.3C12636__7.F78C168" X-Priority: 3 X-MSMail-Priority: Normal X-SA-Exim-Mail-From: a6vjod2k@yahoo.com X-SA-Exim-Scanned: No; SAEximRunCond expanded to false any idea's? Regards, Tom Kinghorn From marc_sa at merlins.org Thu May 22 00:03:41 2003 From: marc_sa at merlins.org (Marc MERLIN) Date: Wed May 21 23:04:19 2003 Subject: [SA-exim] spamassassin.conf in sa-exim-3.0 In-Reply-To: <4625C59C329BC447AFFB52E7F8BFF27504FF98EB@protea.int.citec.net> References: <4625C59C329BC447AFFB52E7F8BFF27504FF98EB@protea.int.citec.net> Message-ID: <20030522060341.GQ9036@merlins.org> On Thu, May 22, 2003 at 07:58:55AM +0200, Thomas Kinghorn wrote: > Morning all. > Please could someone assist me with regards to this expression in the > spamassassin.conf file provided with sa-exim. > SAEximRunCond: ${if and {{def:sender_host_address} {!eq > {$sender_host_address}{127.0.0.1}} {!eq {$h_X-SA-Do-Not-Run:}{Yes}} } > {1}{0}} SAEximRunCond: 0 > > If I set the RunCond to 0, all spam comes through. > I get the "Run condition expanded to false" statement. Err, no offense, but you've been posting a lot of questions which you could have answered yourself by reading the docs and doing a little bit of homework first. 1) The SA folks have nothing to do with this 2) Neither do I. You set SAEximRunCond to 0, and it, as documented, turns of scanning. You then ask why your mails aren't being scanned. Seriously, you may not have had your daily dose of caffeine yet, but this isn't your first such message. Read up and think a little before you post. 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 simon at nuit.ca Fri May 23 21:24:32 2003 From: simon at nuit.ca (simon raven) Date: Fri May 23 13:24:47 2003 Subject: [SA-exim] sa-exim mail ironically popping up as spam Message-ID: <20030523202432.GB5079@nuit.ca> i was just going through /var/spool, and fell on one email from the list in ./SAspamaccept/ hehehe... it scored 5.6 on 5.0 if anyone is curious.. looks like i'm gonna have to raise my limit if legit mail gets filed away, or put merlins.org on athe whitelist :D. cheers, eric -- UNIX is user friendly, it's just picky about who its friends are. ------------------------------------------------------------------- ,''`. http://www.debian.org/ | http://www.nuit.ca/ : :' : Debian GNU/Linux | http://simonraven.nuit.ca/ `. `' | PGP key ID: 6169 BE0C 0891 A038 `- | From m.balvers at addicts.nl Sat May 24 00:36:59 2003 From: m.balvers at addicts.nl (Martin Balvers) Date: Fri May 23 14:37:10 2003 Subject: [SA-exim] sa-exim-stats version 0.60 Message-ID: <49714.213.84.248.7.1053725819.squirrel@webmail.addicts.nl> For those of you who are interested.... I just released a new version of sa-exim-stats. The main new feature is that the stats are saved to a file now, and the next time you run the script it won't have to parse the whole logfile again, but it start at the point it finished the last time. This increases the speed very much on slow systems/large logfiles. At the moment you have to be root to run the script. On my Gentoo system I can run it as a normal usr, but on my RedHat it try's to load/save in the /root dir which gives some errors.... You can find the script at : http://nossie.addicts.nl/projects/sa-exim-stats/ Please let me know if you have any comments or find any bugs. Martin From tonni at billy.demon.nl Fri May 23 22:53:27 2003 From: tonni at billy.demon.nl (Tony Earnshaw) Date: Fri May 23 14:53:28 2003 Subject: [SA-exim] sa-exim mail ironically popping up as spam In-Reply-To: <20030523202432.GB5079@nuit.ca> References: <20030523202432.GB5079@nuit.ca> Message-ID: <1053725771.16978.170.camel@localhost> fre, 23.05.2003 kl. 22.24 skrev simon raven: > it scored 5.6 on 5.0 if anyone is curious. Curious. I haven't noticed any spam from this list. What did it look like (e.g. the full headers, for example)? Tony -- Tony Earnshaw From marc at merlins.org Fri May 23 16:25:25 2003 From: marc at merlins.org (Marc MERLIN) Date: Fri May 23 15:25:26 2003 Subject: [SA-exim] sa-exim mail ironically popping up as spam In-Reply-To: <1053725771.16978.170.camel@localhost> References: <20030523202432.GB5079@nuit.ca> <1053725771.16978.170.camel@localhost> Message-ID: <20030523222525.GA4669@merlins.org> On Fri, May 23, 2003 at 11:36:11PM +0200, Tony Earnshaw wrote: > fre, 23.05.2003 kl. 22.24 skrev simon raven: > > > it scored 5.6 on 5.0 if anyone is curious. > > Curious. I haven't noticed any spam from this list. There isn't any. > What did it look like (e.g. the full headers, for example)? It doesn't matter, people should have SA off for spam whitelists they subscribe to. If I post SA patterns as an example, it will trigger SA 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 tonni at billy.demon.nl Sat May 24 14:01:39 2003 From: tonni at billy.demon.nl (Tony Earnshaw) Date: Sat May 24 06:01:41 2003 Subject: [SA-exim] sa-exim mail ironically popping up as spam In-Reply-To: <20030523222525.GA4669@merlins.org> References: <20030523202432.GB5079@nuit.ca> <1053725771.16978.170.camel@localhost> <20030523222525.GA4669@merlins.org> Message-ID: <1053780968.30656.24.camel@localhost> l?r, 24.05.2003 kl. 00.25 skrev Marc MERLIN: > > Curious. I haven't noticed any spam from this list. > > There isn't any. > > > What did it look like (e.g. the full headers, for example)? > > It doesn't matter, people should have SA off for spam whitelists they > subscribe to. > If I post SA patterns as an example, it will trigger SA Hmm ... SA-Exim 4.20/3.0 w/ SA 2.60-CVS gave an smtp 550 to an obviously bogus mail yesterday (was refused because of FORGED_OUTLOOK_TAGS, all the RBLs, DNSBLs had the IP number as a blacklisted proxy, relay etc, was encoded base64, FORGED_RCVD_HELO, FORGED_RCVD_TRAIL, etc) and scored 9.60. I SA-Exim-refuse at 7.0; I never had a false positive before. Unfortunately I couldn't 'less' the text (saved in SApermreject), because of the base64 encoding, so I didn't check it. O.k., I accepted this as fresh fish and told postmaster@openldap.org (none less than Kurt Zeilenga, in whose bad books I already am :) that there were horrible people at work, forging his signature. The Openldap mailing list kicks you off the list for one single smtp 550. I sent it 3, the message was repeated and refused 3 times. Later, I had a look at the mail - cat'ted it >> to my Evolution mbox Temp mailbox. It was a *GENUINE POSTING* from the Openldap.org mailing list. Not a fake, not spam. I quickly put two regexes (a single meta rule) into my local.cf to whitelist the Openldap mailing list, sent a fawning "so utterly sorry" to postmaster@openldap.org and hoped I wouldn't be kicked off the list yet again, like last time. Which only goes to show the importance of whitelisting each and every mailing list, including SA-Exim. Tony -- Tony Earnshaw From simon at nuit.ca Sat May 24 22:10:00 2003 From: simon at nuit.ca (simon raven) Date: Sat May 24 14:10:22 2003 Subject: [SA-exim] sa-exim mail ironically popping up as spam Message-ID: <20030524211000.GA7176@nuit.ca> well, i've done both things - whitelist sa-exim list, and boost my refuse to 6.0. this time, it didn't refuse it (it scored -2.6). um, i must be doing something wrong when i set up the whitelist, or putting it in the wrong file, or something. should i be putting it in SA's whitelist as well as exim4's? i assume so, but i haven't done that (yet). and yes, i hadn't thought of it (really busy with other stuff), but whitlisting mailing lists is a good idea. and yes i think it's because certain things were included in that digest that rated it higher than it should have in the first place. > Since there's been more traffic on the list due to sa-exim becoming > more popular, I'd like to ask if some of you would rather have a announce > list > Please reply to me. > Thanks, > Marc announce list for things like new version, chnages to code, etc. would be cool. BTW, i like that mouse and xterm quote :). Microsoft is to operating systems & security .... .... what McDonalds is to gourmet cooking and that one too ;). thanks for all the input :). eric -- UNIX is user friendly, it's just picky about who its friends are. ------------------------------------------------------------------- ,''`. http://www.debian.org/ | http://www.nuit.ca/ : :' : Debian GNU/Linux | http://simonraven.nuit.ca/ `. `' | PGP key ID: 6169 BE0C 0891 A038 `- | From jerry at cheesymouse.com Sun May 25 16:31:27 2003 From: jerry at cheesymouse.com (Jerry Rasmussen) Date: Sun May 25 12:31:34 2003 Subject: [SA-exim] Upgrade to SA-Exim 3.0 from 2.2 Message-ID: I am running SA-Exim 2.2 on RedHat 9 looking to upgrade to SA-Exim 3.0 can someone recommend the best/easiest way to do this. Or point me in the direction of some documentation. Thanks Jerry Rasmussen From tonni at billy.demon.nl Mon May 26 05:55:20 2003 From: tonni at billy.demon.nl (Tony Earnshaw) Date: Sun May 25 21:55:21 2003 Subject: [SA-exim] Upgrade to SA-Exim 3.0 from 2.2 In-Reply-To: References: Message-ID: <1053924382.2411.7.camel@localhost> s?n, 25.05.2003 kl. 21.31 skrev Jerry Rasmussen: > I am running SA-Exim 2.2 on RedHat 9 looking to upgrade to SA-Exim 3.0 > can someone recommend the best/easiest way to do this. Or point me in > the direction of some documentation. I don't know how you installed your present 2.2, whether you are running the sa-exim.c or the dlopen patch. But for Exim 4.14 and 4.20 the instructions on Marc's site and included in the tarball are good enough for most people to patch, compile and configure the whole SA-Exim 3.0 thing. But it depends on your level of proficiency in that sort of thing. If you're proficient, go for the dlopen patch. I don't know if anybody has rpms for Exim / SA-Exim - I use rpms as little as possible. Tony -- Tony Earnshaw http://www.billy.demon.nl Mail: tonni@billy.demon.nl From lists at timj.co.uk Mon May 26 11:25:46 2003 From: lists at timj.co.uk (Tim Jackson) Date: Mon May 26 02:25:52 2003 Subject: [SA-exim] Upgrade to SA-Exim 3.0 from 2.2 In-Reply-To: <1053924382.2411.7.camel@localhost> References: <1053924382.2411.7.camel@localhost> Message-ID: <20030526102546.4451dc54.lists@timj.co.uk> On 26 May 2003 06:46:23 +0200 Tony wrote: > I don't know if anybody has rpms for Exim / SA-Exim I have a spec file which includes an option for SA-Exim on http://www.timj.co.uk/linux/exim.php - I haven't updated it to 4.20/SA3 yet but it shouldn't require a big change. > I use rpms as little as possible. OK, without wanting to wander too much OT, I've been wondering about this for a while :) Is your distaste only for pre-built binary RPMs? Otherwise, I can't see the disadvantage - if you build yourself an RPM from source, it's just the same as installing from source normally - except that you get things nicely packaged and database-indexed...? The day when I learnt how to build RPMs from source and make my own specs solved a problem I'd personally felt a need to solve for a long time :) Especially if you've got lots of patches etc. to programs (e.g. SA-Exim, Exiscan, custom message patches etc.) - building with specs is verging on a self-documenting system, at least for the compilation/installation stage...and you can be sure you know where all the files are headed! Tim From tonni at billy.demon.nl Mon May 26 11:17:59 2003 From: tonni at billy.demon.nl (Tony Earnshaw) Date: Mon May 26 03:18:00 2003 Subject: [SA-exim] Upgrade to SA-Exim 3.0 from 2.2 In-Reply-To: <20030526102546.4451dc54.lists@timj.co.uk> References: <1053924382.2411.7.camel@localhost> <20030526102546.4451dc54.lists@timj.co.uk> Message-ID: <1053944104.2411.96.camel@localhost> man, 26.05.2003 kl. 11.25 skrev Tim Jackson: > I have a spec file which includes an option for SA-Exim on > http://www.timj.co.uk/linux/exim.php - I haven't updated it to 4.20/SA3 > yet but it shouldn't require a big change. I'll have a look :-) > > I use rpms as little as possible. > > OK, without wanting to wander too much OT, I've been wondering about this > for a while :) Is your distaste only for pre-built binary RPMs? Otherwise, > I can't see the disadvantage - if you build yourself an RPM from source, > it's just the same as installing from source normally - except that you > get things nicely packaged and database-indexed...? I'm being dragged kicking and screaming into the modern world; I can see that to do mass-admin with as little fuss as possible, I'm going to have to make my own rpms (since I'm a Red Hat person.) My aversion stems from years ago when I was an SCO sysadmin and had to put up with SCO's (and later Sun Micro's) upgrade policy - waiting literally years for useful package upgrades. Then again, I don't want all the old (literally) shit that Red Hat dictates I should have, with dependencies that are later irreversible. I almost always use latest stable releases of all stuff that I specialize in - and RH wants me to use old stuff, which I don't want and can't remove later. > The day when I learnt how to build RPMs from source and make my own specs > solved a problem I'd personally felt a need to solve for a long time :) Yeah - just before I read this, a colleague of mine screamed this into my telephone ear and we'll be doing something about it this week - already :-) > Especially if you've got lots of patches etc. to programs (e.g. SA-Exim, > Exiscan, custom message patches etc.) - building with specs is verging on > a self-documenting system, at least for the compilation/installation > stage...and you can be sure you know where all the files are headed! O.k., I'll learn. Satisfied now? ;) Best, Tony -- Tony Earnshaw http://www.billy.demon.nl Mail: tonni@billy.demon.nl From jerry at cheesymouse.com Mon May 26 10:16:41 2003 From: jerry at cheesymouse.com (Jerry Rasmussen) Date: Mon May 26 06:16:46 2003 Subject: [SA-exim] Upgrade to SA-Exim 3.0 from 2.2 Message-ID: >I have a spec file which includes an option for SA-Exim on >http://www.timj.co.uk/linux/exim.php - I haven't updated it to 4.20/SA3 >yet but it shouldn't require a big change. I tried to use this the last time a built the rpm. I was unable to build using the 3.0 sa-exim, I fell back to using 2.2 sa-exim. I make a couple of small changes to the spec file, as I recall the main error I kept getting was something like could not find local_scan.o. Is there something with this patch that I am missing? Or are there other changes that I should make to the spec file. Also, as to my level I would consider my self a novice Linux user. Thanks Jerry Rasmussen -----Original Message----- From: Tim Jackson [mailto:lists@timj.co.uk] Sent: Monday, May 26, 2003 5:26 AM To: sa-exim@lists.merlins.org Subject: Re: [SA-exim] Upgrade to SA-Exim 3.0 from 2.2 On 26 May 2003 06:46:23 +0200 Tony wrote: > I don't know if anybody has rpms for Exim / SA-Exim I have a spec file which includes an option for SA-Exim on http://www.timj.co.uk/linux/exim.php - I haven't updated it to 4.20/SA3 yet but it shouldn't require a big change. > I use rpms as little as possible. OK, without wanting to wander too much OT, I've been wondering about this for a while :) Is your distaste only for pre-built binary RPMs? Otherwise, I can't see the disadvantage - if you build yourself an RPM from source, it's just the same as installing from source normally - except that you get things nicely packaged and database-indexed...? The day when I learnt how to build RPMs from source and make my own specs solved a problem I'd personally felt a need to solve for a long time :) Especially if you've got lots of patches etc. to programs (e.g. SA-Exim, Exiscan, custom message patches etc.) - building with specs is verging on a self-documenting system, at least for the compilation/installation stage...and you can be sure you know where all the files are headed! Tim _______________________________________________ SA-Exim mailing list SA-Exim@lists.merlins.org http://lists.merlins.org/lists/listinfo/sa-exim From lists at timj.co.uk Mon May 26 22:55:44 2003 From: lists at timj.co.uk (Tim Jackson) Date: Mon May 26 13:55:47 2003 Subject: [SA-exim] Upgrade to SA-Exim 3.0 from 2.2 In-Reply-To: References: Message-ID: <20030526215544.0da8d398.lists@timj.co.uk> Hi Jerry, on Mon, 26 May 2003 09:16:41 -0400 you wrote: > >I have a spec file which includes an option for SA-Exim on > >http://www.timj.co.uk/linux/exim.php - I haven't updated it to 4.20/SA3 > >yet but it shouldn't require a big change. > I tried to use this the last time a built the rpm. I was unable to build > using the 3.0 sa-exim, I fell back to using 2.2 sa-exim. I make a couple > of small changes to the spec file, as I recall the main error I kept > getting was something like could not find local_scan.o. Is there > something with this patch that I am missing? No, as I said, I haven't updated it to work with SA3.0 yet. From the sounds of it, you are having problems similar to those that other people have reported on this list when trying to compile SA as a local_scan patch rather than loadable module. I'll probably get round to playing with it in the next few days though, at which point I'll fix the spec up for SA3 and let you know :) > Also, as to my level I would consider my self a novice Linux user. No worries, it sounds like you got quite far then! Don't worry, when I've updated the spec to work with SA3 it should be a doddle. Tim From jvanasco at mastersofbranding.com Tue May 27 03:38:42 2003 From: jvanasco at mastersofbranding.com (Jonathan Vanasco) Date: Mon May 26 23:37:56 2003 Subject: [SA-exim] How to apply localscan_dlopen.patch ? Message-ID: Forgive my ignorance, but I don't know c and i don't know patch, though I've read the manpages and have some idea what is going on through the lines i guess I could apply this by hand... but i'm guessing there's some wacky command line info i seem to be skipping over i'm really eager to get this going, which is why i'm still struggling and haven't given up -- the docs are more than a little confusing. if anyone can help me do this, i'll return the favor by writing some idiotproof docs that even i understand, to avoid people like me asking silly things like this. much appreciation in advance From tonni at billy.demon.nl Tue May 27 11:15:39 2003 From: tonni at billy.demon.nl (Tony Earnshaw) Date: Tue May 27 03:15:39 2003 Subject: [SA-exim] How to apply localscan_dlopen.patch ? In-Reply-To: References: Message-ID: <1054030418.8571.165.camel@localhost> tir, 27.05.2003 kl. 08.38 skrev Jonathan Vanasco: > Forgive my ignorance, but I don't know c Nor do I ;) At least, not much ... > and i don't know patch, though I've read the manpages and have some > idea what is going on through the lines A little while ago, Wash /described/ what he had done and what didn't work. Thereby making it possible to help him. Why don't you do the same? At the moment, it's not possible to help you, since no-one here is clairvoyant. For me the docs are perfectly clear, but then I'm used to doing the sort of thing they describe. Best, Tony -- Tony Earnshaw http://www.billy.demon.nl Mail: tonni@billy.demon.nl From jvanasco at mastersofbranding.com Tue May 27 10:42:04 2003 From: jvanasco at mastersofbranding.com (Jonathan Vanasco) Date: Tue May 27 06:41:17 2003 Subject: [SA-exim] How to apply localscan_dlopen.patch ? In-Reply-To: <1054030418.8571.165.camel@localhost> Message-ID: <00AE402D-9049-11D7-80EF-000393863D5E@mastersofbranding.com> Okay, I'll go into a little more detail (about the docs in general). I'm used to the ./configure with vars if needed, edit Makefiles, make test, make install Building What exactly is the correct build order for the following? 1) Unpack exim 4.11 or better, and overwrite src/local_scan.c with sa-exim-x.y.c. Rebuild exim, and you're done. Note that if you do this, you are responsible for modifying variables in sa-exim.c that would normally have been modified by the Makefile. ==== There doesn't seem to be any sa-exim-x.y.c file -- i'm guessing either i use the sa-exim.c file as-is, or there is some compile step i don't know of. i'll lean towards a compile step i dont know of because I get errors spouting for sa-exim.h header file. according to mailing list archives there's a make step involved in getting that file, which was ommitted from docs -- but I've got the file in the same directory just sitting there. In any event, this step seems to be needed before a ./configure make make_install for exim itself. (or does this happen between ./configure and make?) 2) The better solution is to patch exim with localscan_dlopen.patch originally from David Woodhouse (provided in this archive), and rebuild exim. After that you can edit EXIM_SRC in the Makefile and build sa-exim-x.y.so I have however modified the build environment so that you can now build sa-exim without having the exim sources. Now how exactly is the patch file applied? looking at its contents with: diff -urN exim-4.14-0/src/EDITME exim-4.14-1/src/EDITME --- exim-4.14-0/src/EDITME Tue Mar 11 04:20:18 2003 +++ exim-4.14-1/src/EDITME Sun Mar 23 15:34:15 2003 @@ -388,6 +388,20 I understand that the lines marked + in the following section correspond to lines starting at 388 on exim-4.14-1/src/EDITME - which becomes Local/Makefile. so that, i can apply that by hand (though i'd be willing to bet there is some automated way) then i find things like diff -urNad 50_localscan_dlopen.tmp/src/config.h.defaults 50_localscan_dlopen/src/config.h.defaults --- 50_localscan_dlopen.tmp/src/config.h.defaults Sun Dec 29 11:55:42 2002 +++ 50_localscan_dlopen/src/config.h.defaults Sun Dec 29 11:56:44 2002 which I can't find a corresponding directory/file for 50_localscan_dlopen.tmp -- just a src/config.h.defaults under the exim folder -- but that seems named correctly elsewhere in this file all this makes me think that some make action happened along the ways already. what/when/where? i can't figure that out. i also can't figure out if this requires an exim rebuild or not -- considering the changes to exim source, I'd imagine it does -- which makes me wonder what, if any, difference is between the 2 methods. the first method seems far simpler from my standpoint right now. again, any help would be greatly appreciated On Tuesday, May 27, 2003, at 06:13 AM, Tony Earnshaw wrote: > tir, 27.05.2003 kl. 08.38 skrev Jonathan Vanasco: > >> Forgive my ignorance, but I don't know c > > Nor do I ;) At least, not much ... > >> and i don't know patch, though I've read the manpages and have some >> idea what is going on through the lines > > A little while ago, Wash /described/ what he had done and what didn't > work. Thereby making it possible to help him. Why don't you do the > same? > At the moment, it's not possible to help you, since no-one here is > clairvoyant. > > For me the docs are perfectly clear, but then I'm used to doing the > sort > of thing they describe. > > Best, > > Tony > > -- > Tony Earnshaw > > http://www.billy.demon.nl > Mail: tonni@billy.demon.nl > > > _______________________________________________ > SA-Exim mailing list > SA-Exim@lists.merlins.org > http://lists.merlins.org/lists/listinfo/sa-exim From tonni at billy.demon.nl Tue May 27 20:32:48 2003 From: tonni at billy.demon.nl (Tony Earnshaw) Date: Tue May 27 12:32:50 2003 Subject: [SA-exim] How to apply localscan_dlopen.patch ? In-Reply-To: <00AE402D-9049-11D7-80EF-000393863D5E@mastersofbranding.com> References: <00AE402D-9049-11D7-80EF-000393863D5E@mastersofbranding.com> Message-ID: <1054063523.22324.167.camel@localhost> tir, 27.05.2003 kl. 15.42 skrev Jonathan Vanasco: > What exactly is the correct build order for the following? Oh dear. I don't know where to start. You don't know anything, do you? still, at least you're honest, unlike some. 1: When you compile Exim, there's a file called src/EDITME. You have to change things in that, to suit your required system. There might be many things, there might be a couple. I have many. When you have finished, you copy it to Local/Makefile. However, when you run patch, it patches that file, so don't do that yet. Just so that you know. 2. Make a directory for all your source files; for everything. Keep all your sources for everything in subdirectories there. Lets say /u/uxinstl, which is what I have. Make subdirectories in that, 'cd /u/uxinstl;mkdir -p exim/server;cd exim/server'. 3: Download exim 4.20, download sa-exim 3.0, save them to /u/uxinstl/exim/server, so that they are parallel to each other. 'bzcat exim-4.20.tar.bz2 | tar -xvf -' 'zcat sa-exim-3.0.tar.gz | tar -xvf -' cd exim-4.20 patch -p1 < ../sa-exim-3.0/localscan_dlopen.patch cp src/EDITME Local/Makefile cd Local Edit (vi :-))) Makefile, change what you have to. Tell it you don't want Eximon for this example. When you've done, cd .. make wait Lets presume the thing makes: Exim binary built make install cd ../sa-exim-3.0 make (See, it makes ;) cp sa-exim-3.0.so to wherever you want it, e.g. /usr/local/lib/exim4 (make that directory first) cd to the exim directory where configure (the Exim config file is) Make sure spamassassin.conf is there; if not, copy it from the sa-exim-3.0 directory. Read Mark's INSTALL and README docs to see what to do with spamassassin.conf. Read Philip's spec.txt to see what to do with Exim's configure :->>> If you have Red Hat, there's a working /etc/init.d/exim attached here, but you'll have to change things to suit your own configuration. Then do 'chkconfig --add exim' Huff. I'm hungry - Success! Tony -- Tony Earnshaw http://www.billy.demon.nl Mail: tonni@billy.demon.nl -------------- next part -------------- A non-text attachment was scrubbed... Name: exim Type: text/x-sh Size: 1405 bytes Desc: not available Url : http://lists.merlins.org/archives/sa-exim/attachments/20030527/c881a1ef/exim.bin From jvanasco at mastersofbranding.com Tue May 27 16:57:08 2003 From: jvanasco at mastersofbranding.com (Jonathan Vanasco) Date: Tue May 27 12:56:22 2003 Subject: [SA-exim] How to apply localscan_dlopen.patch ? In-Reply-To: <1054063523.22324.167.camel@localhost> Message-ID: <65A1FBE9-907D-11D7-80EF-000393863D5E@mastersofbranding.com> Much thanks.. Actually I do know quite a bit -- i've just never patched anything before and the docs are utterly confusing. I managed to get the exim rebuid with local_scan.c replacement working earlier today, so am just going to stay with that. Thanks for all your help though -- this is GREATLY more informative than the build instructions in the documents. If you dont mind me suggesting this, perhaps your reply to me should replace the release docs? Its more than fairly dumbed down -- but the bulk of the info there -- dual directories, make/patch orders, etc aren't really discussed in the INSTALL instructions. //jon On Tuesday, May 27, 2003, at 03:25 PM, Tony Earnshaw wrote: > tir, 27.05.2003 kl. 15.42 skrev Jonathan Vanasco: > >> What exactly is the correct build order for the following? > > Oh dear. I don't know where to start. You don't know anything, do you? > still, at least you're honest, unlike some. > > 1: When you compile Exim, there's a file called src/EDITME. You have to > change things in that, to suit your required system. There might be > many > things, there might be a couple. I have many. When you have finished, > you copy it to Local/Makefile. > > However, when you run patch, it patches that file, so don't do that > yet. > Just so that you know. > > 2. Make a directory for all your source files; for everything. Keep all > your sources for everything in subdirectories there. Lets say > /u/uxinstl, which is what I have. Make subdirectories in that, 'cd > /u/uxinstl;mkdir -p exim/server;cd exim/server'. > > 3: Download exim 4.20, download sa-exim 3.0, save them to > /u/uxinstl/exim/server, so that they are parallel to each other. > > 'bzcat exim-4.20.tar.bz2 | tar -xvf -' > 'zcat sa-exim-3.0.tar.gz | tar -xvf -' > > cd exim-4.20 > > patch -p1 < ../sa-exim-3.0/localscan_dlopen.patch > > cp src/EDITME Local/Makefile > > cd Local > > Edit (vi :-))) Makefile, change what you have to. Tell it you don't > want > Eximon for this example. When you've done, cd .. > > make > > wait > > Lets presume the thing makes: Exim binary built > > make install > > cd ../sa-exim-3.0 > > make > > (See, it makes ;) > > cp sa-exim-3.0.so to wherever you want it, e.g. /usr/local/lib/exim4 > (make that directory first) > > cd to the exim directory where configure (the Exim config file is) > > Make sure spamassassin.conf is there; if not, copy it from the > sa-exim-3.0 directory. > > Read Mark's INSTALL and README docs to see what to do with > spamassassin.conf. Read Philip's spec.txt to see what to do with Exim's > configure :->>> > > If you have Red Hat, there's a working /etc/init.d/exim attached here, > but you'll have to change things to suit your own configuration. Then > do > 'chkconfig --add exim' > > Huff. I'm hungry - Success! > > Tony > > -- > Tony Earnshaw > > http://www.billy.demon.nl > Mail: tonni@billy.demon.nl > From jerry at cheesymouse.com Tue May 27 21:15:24 2003 From: jerry at cheesymouse.com (Jerry Rasmussen) Date: Tue May 27 17:15:30 2003 Subject: [SA-exim] Upgrade to SA-Exim 3.0 from 2.2 Message-ID: Tim, Thanks for the answer and all you work to help make SA-Exim very usable and easy to install. -----Original Message----- From: Tim Jackson [mailto:lists@timj.co.uk] Sent: Monday, May 26, 2003 4:56 PM To: sa-exim@lists.merlins.org Subject: Re: [SA-exim] Upgrade to SA-Exim 3.0 from 2.2 Hi Jerry, on Mon, 26 May 2003 09:16:41 -0400 you wrote: > >I have a spec file which includes an option for SA-Exim on > >http://www.timj.co.uk/linux/exim.php - I haven't updated it to 4.20/SA3 > >yet but it shouldn't require a big change. > I tried to use this the last time a built the rpm. I was unable to build > using the 3.0 sa-exim, I fell back to using 2.2 sa-exim. I make a couple > of small changes to the spec file, as I recall the main error I kept > getting was something like could not find local_scan.o. Is there > something with this patch that I am missing? No, as I said, I haven't updated it to work with SA3.0 yet. From the sounds of it, you are having problems similar to those that other people have reported on this list when trying to compile SA as a local_scan patch rather than loadable module. I'll probably get round to playing with it in the next few days though, at which point I'll fix the spec up for SA3 and let you know :) > Also, as to my level I would consider my self a novice Linux user. No worries, it sounds like you got quite far then! Don't worry, when I've updated the spec to work with SA3 it should be a doddle. Tim _______________________________________________ SA-Exim mailing list SA-Exim@lists.merlins.org http://lists.merlins.org/lists/listinfo/sa-exim From jvanasco at mastersofbranding.com Thu May 29 13:47:41 2003 From: jvanasco at mastersofbranding.com (Jonathan Vanasco) Date: Thu May 29 09:46:55 2003 Subject: [SA-exim] Re: [Exim] Exim, SpamAssassin, and interpreting results Message-ID: <4381E2B4-91F5-11D7-BDF8-000393863D5E@mastersofbranding.com> cross-posting this, because others might find this useful... Figured this out using an expansion in a delivery transport -- works like a CHARM Right now, SA-Exim is set to reject all mail ranked 20+ by a global spamassassin conf at smtp time Mail ranked 12+ is defined as spam, but still accepted All mail is delivered to the user -- 0-11 to the inbox, 12+ to the spam-probable subfolder each of my users will be getting a spam-probable, spam-definate and spam-blocked_notspam folder -- perl scripts will troll the the latter 2 folders nightly to add data to site-wide filtering I can't believe how ridiculously simple this was. thanks to all who helped me along. virtuals_maildir_delivery: driver = appendfile directory = /var/mail/$domain/${substr_0_1:$local_part}/$local_part/${if eq {${substr_0_3:$header_X-Spam-Status:}}{Yes}{.spam-probable}{}} create_directory directory_mode = 0775 delivery_date_add envelope_to_add return_path_add maildir_format group = mail mode = 0660 ------ I've got SA-Exim built in to check spam at smtp time Right off the bat, any mail spam-assassin flags as 20 or higher I want to reject (which should block a bunch out if razor gets involved). With the remaining mail, I'd like to deliver it to one of 2 places: $maildir -- mail ranked 12 or less $maildir/.spam-probable - mail ranked 12+ The idea being, a cron job would go through user directories daily learning from $maildir/.spam-definate $maildir/.spam-notspam A friend has this running pretty well with procmail and qmail. I think I could get this done in exim alone Just having a little bit of trouble with the logic. Right now, i'm thinking that I use two separate routers -- the first one substrings the SA header for the ranking, and fails the router if its higher than 12 - else it hits a transport to the inbox. the second router passes mail to a transport in the sub-folder of the inbox. Does that seem right? or is there some way i could do an if-else with a header regex in a single transport? From brian at enchanter.net Thu May 29 16:28:30 2003 From: brian at enchanter.net (Brian Kendig) Date: Thu May 29 12:29:39 2003 Subject: [SA-exim] Verbose reports? Message-ID: I want to set report_header and use_terse_report (both in SpamAssassin's local.cf) to 0, so that the details of how spam was scored appear in the body of the message. This will make it a lot easier to see which individual tests the spam triggered, and whether any of 'em lowered the spam's score (as spammers are getting smart enough to do), so that I can tweak my SA scores. But the SA-Exim install file says that report_header and use_terse_report both should be 1. Is that still a requirement, will SA-Exim have trouble with a verbose report in the body? ____ |\/| Brian Kendig Set your priorities right. \ /\ / ..__. brian at enchanter net No one ever said on his \/ \__\ _/ http://www.enchanter.net/ death bed, "Gee, if I'd \__ __ \_ Be insatiably curious. only spent more time at \____\___\ Ask "why" a lot. the office." From richard at lithvall.se Thu May 29 23:06:12 2003 From: richard at lithvall.se (Richard Lithvall) Date: Thu May 29 13:05:00 2003 Subject: [SA-exim] Verbose reports? In-Reply-To: References: Message-ID: <3ED66834.3000608@lithvall.se> Brian Kendig wrote: > I want to set report_header and use_terse_report (both in SpamAssassin's > local.cf) to 0, so that the details of how spam was scored appear in the > body of the message. This will make it a lot easier to see which > individual tests the spam triggered, and whether any of 'em lowered the > spam's score (as spammers are getting smart enough to do), so that I can > tweak my SA scores. > > But the SA-Exim install file says that report_header and > use_terse_report both should be 1. Is that still a requirement, will > SA-Exim have trouble with a verbose report in the body? No sa-exim won't have any trouble with it (AFAIK), *but* - sa-exim only modifies the headers and never touches the mail body so the modifications SA made to the body is just thrown away... (Thats why report_safe in SA >2.40 won't work either) /Richard From lists at timj.co.uk Sat May 31 19:59:27 2003 From: lists at timj.co.uk (Tim Jackson) Date: Sat May 31 10:59:35 2003 Subject: [SA-exim] Upgrade to SA-Exim 3.0 from 2.2 In-Reply-To: References: Message-ID: <20030531185927.1c236aef.lists@timj.co.uk> On Tue, 27 May 2003 20:15:24 -0400 Jerry wrote: > Tim Jackson wrote: > > I'll fix the spec up for SA3 and let you know :) > Thanks for the answer and all you work to help make SA-Exim very usable > and easy to install. No problem. If you're still interested, I've now updated all my Exim packaging information to Exim 4.20, including support for SA-Exim 3.0 and the new ACL version of Exiscan. Let me know if it works for you: http://www.timj.co.uk/linux/exim.php Tim From jerry at cheesymouse.com Sat May 31 23:57:32 2003 From: jerry at cheesymouse.com (Jerry Rasmussen) Date: Sat May 31 19:57:41 2003 Subject: [SA-exim] Upgrade to SA-Exim 3.0 from 2.2 Message-ID: I did encounter one problem when creating the RPM from the SPEC file. The rpmbuild failed. The reason was related to this "ACKNOWLEDGEMENTS CHANGES LICENCE NOTICE README README.UPDATING doc" the error indicated the file was missing. I commented out the line in the SPEC file in it created the RPM successfully. No big deal just thought you would like to know. Thanks again for all your hard work on this. It has made things much easier for me. Jerry -----Original Message----- From: Tim Jackson [mailto:lists@timj.co.uk] Sent: Saturday, May 31, 2003 1:59 PM To: sa-exim@lists.merlins.org Subject: Re: [SA-exim] Upgrade to SA-Exim 3.0 from 2.2 On Tue, 27 May 2003 20:15:24 -0400 Jerry wrote: > Tim Jackson wrote: > > I'll fix the spec up for SA3 and let you know :) > Thanks for the answer and all you work to help make SA-Exim very usable > and easy to install. No problem. If you're still interested, I've now updated all my Exim packaging information to Exim 4.20, including support for SA-Exim 3.0 and the new ACL version of Exiscan. Let me know if it works for you: http://www.timj.co.uk/linux/exim.php Tim _______________________________________________ SA-Exim mailing list SA-Exim@lists.merlins.org http://lists.merlins.org/lists/listinfo/sa-exim