From MAILER-DAEMON Sun Oct 05 09:37:13 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.24) id 1A694S-000657-TJ for mharc-spamass-milt-list@gnu.org; Sun, 05 Oct 2003 09:37:12 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1A694I-0005r9-Uk for spamass-milt-list@nongnu.org; Sun, 05 Oct 2003 09:37:03 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1A693W-0004A1-3t for spamass-milt-list@nongnu.org; Sun, 05 Oct 2003 09:36:45 -0400 Received: from [194.25.134.82] (helo=mailout05.sul.t-online.com) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A693V-00046o-F8 for spamass-milt-list@nongnu.org; Sun, 05 Oct 2003 09:36:13 -0400 Received: from fwd05.aul.t-online.de by mailout05.sul.t-online.com with smtp id 1A693T-0002Av-04; Sun, 05 Oct 2003 15:36:11 +0200 Received: from lizi.zinner.intern (SsZnC6Z1ZesGKRlTS0DtJIOJfY57gS-swyI8bC19sUjGCmSKJH29oA@[217.84.75.226]) by fmrl05.sul.t-online.com with esmtp id 1A693N-1spJGi0; Sun, 5 Oct 2003 15:36:05 +0200 Received: from tom (tom.zinner.intern [192.168.110.12]) by lizi.zinner.intern (8.12.7/8.12.7/SuSE Linux 0.6) with SMTP id h95DZWS2016333 for ; Sun, 5 Oct 2003 15:35:32 +0200 From: "Thomas Zinner" To: Date: Sun, 5 Oct 2003 15:34:47 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Seen: false X-ID: SsZnC6Z1ZesGKRlTS0DtJIOJfY57gS-swyI8bC19sUjGCmSKJH29oA@t-dialin.net Subject: Problem with large files X-BeenThere: spamass-milt-list@nongnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Spamassin Milter list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Oct 2003 13:37:06 -0000 Hi! I'm a newbie at milters an have a problem with large files: After using the mamavis-milter (it works great!), the mails are send to the spamass-milter (with spamc and spamd). But I dont't want this with large files. The problem is: My fetchmail dont want to wait such a long time (some minutes!)... Because of this, I have a lot of trouble: No delivered mails, some mails ten times or more and so on. I try to stop this by "-s 51000" bzw. "-s 50k" for spamc: No change. Every mail is sent trough the milter. Large mails are divided in parts with 1024bytes (I think...). In /var/log/mail it looks like: ========================================================== Oct 5 15:22:13 lizi spamass-milter[16261]: ::read_pipe exit Oct 5 15:22:13 lizi spamass-milter[16261]: polling fds 9 and 10 Oct 5 15:22:14 lizi spamass-milter[16261]: poll returned 1, fd0=0, fd1=1 Oct 5 15:22:14 lizi spamass-milter[16261]: poll says I can read Oct 5 15:22:14 lizi spamass-milter[16261]: ::read_pipe enter Oct 5 15:22:14 lizi spamass-milter[16261]: read 1024 bytes Oct 5 15:22:14 lizi spamass-milter[16261]: input "mZhY2hzdGUgR2VnZW5z^M dORuZGUgZ2Vub21tZW46IHouIEIuIFN0ZWluY2hlbiwgTvxzc2UsIFN09mNrZSwgQmzkdHRlciB1 ^M c3cuC1JpY2h0aWdnZWhlbmRlcyBTcGllbHpldWcgaXN0IGF1cyBkZW0gYWx0ZW4gxGd5cHRlbiBi ^M ZWthbm50OiBOZWJlbiBC5GxsZW4sIEtlZ2VsbiB1bmQgR2z2Y2tjaGVuIHd1cmRlbiBhdWNoIFB1 ^M cHBlbiB1bmQga2xlaW5lIFRpZXJlIGF1cyBUb24gZ2VmdW5kZW4uIERhcyBBbHRlciBkaWVzZXIg ^M U3BpZWxzYWNoZW4gd2lyZCBhdWYgZXR3YSA0LjUwMCBKYWhyZSBkYXRpZXJ0LiBPYiBzbyBhbGxl ^M cmRpbmdzIHRhdHPkY2hsaWNoIGRpZSDkbHRlc3RlbiBTcGllbHNhY2hlbiBhdXNzYWhlbiwga2Fu ^M biBoZXV0ZSBuaWNodCBtZWhyIG1pdCBTaWNoZXJoZWl0IGdlc2FndCB3ZXJkZW4uIERpZSBtZWlz ^M dGVuIFNwaWVsc2FjaGVuIGT8cmZ0ZW4gYXVzIHZlcmfkbmdsaWNoZW4gTWF0ZXJpYWxpZW4gd2ll ^M IFN0cm9oLCBIb2x6IG9kZXIgTGVkZXIgYmVzdGFuZGVuIGhhYmVuLiBEZXNoYWxiIHNpbmQgYXJj ^M aORvbG9naXNjaGUgRnVuZGUgYXVzIGRpZXNlciBmcvxoZW4gWmVpdCDkdd9lcnN0IHNw5HJsaWNo ^M LgtBdXMgZGVyIEFudGlrZSBrZW5udCBtYW4gYmVyZWl0cyBtZWhyZXJlIEdlc2NoaWNrbGljaGtl ^M aXRzc3BpZWxlIHdpZSBkYXMgU3BpZWxlbiBtaXQgS3JlaXNlbG4uIEVpbiBLcmVpc2VsIHNhaCBk ^M YW1h Oct 5 15:22:14 lizi spamass-milter[16261]: ::read_pipe exit ========================================================== ... and so on. My sendmail.cf: ========================================================== Xmilter-amavis, S=local:/var/run/amavis/amavis-milter.sock, T=S:10m;R:10m;E:10m Xspamassassin, S=local:/var/run/sendmail/spamass.sock,F=,T=C:4m;S:10s;R:10s;E:4m ========================================================== My spamass-milter-daemon starting skript ========================================================== /usr/local/sbin/spamass-milter -d func,misc,net,poll,spamc,str,uori -f -p /var/run/sendmail/spamass.sock -- -s 51000 -d localhost -p 783 & ========================================================== My spamd- arguments ========================================================== SPAMD_ARGS="-d -c -a -m5 -D" ========================================================== Who can help me? Thanks a lot! Ciao Thomas Zinner From MAILER-DAEMON Sun Oct 05 16:22:18 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.24) id 1A6FOU-0008G6-OE for mharc-spamass-milt-list@gnu.org; Sun, 05 Oct 2003 16:22:18 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1A6FOS-0008FI-Ez for spamass-milt-list@nongnu.org; Sun, 05 Oct 2003 16:22:16 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1A6FNv-0007qP-56 for spamass-milt-list@nongnu.org; Sun, 05 Oct 2003 16:22:14 -0400 Received: from [199.67.51.101] (helo=dan.emsphone.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1A6FNu-0007qJ-S4 for spamass-milt-list@nongnu.org; Sun, 05 Oct 2003 16:21:42 -0400 Received: (from dan@localhost) by dan.emsphone.com (8.12.9/8.12.9) id h95KLdlO096821; Sun, 5 Oct 2003 15:21:39 -0500 (CDT) (envelope-from dan) Date: Sun, 5 Oct 2003 15:21:39 -0500 From: Dan Nelson To: Thomas Zinner Message-ID: <20031005202139.GI5283@dan.emsphone.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-OS: FreeBSD 5.1-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.4i Cc: spamass-milt-list@nongnu.org Subject: Re: Problem with large files X-BeenThere: spamass-milt-list@nongnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Spamassin Milter list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Oct 2003 20:22:17 -0000 In the last episode (Oct 05), Thomas Zinner said: > I'm a newbie at milters an have a problem with large files: After > using the mamavis-milter (it works great!), the mails are send to the > spamass-milter (with spamc and spamd). But I dont't want this with > large files. The problem is: My fetchmail dont want to wait such a > long time (some minutes!)... Because of this, I have a lot of > trouble: No delivered mails, some mails ten times or more and so on. > > I try to stop this by "-s 51000" bzw. "-s 50k" for spamc: No change. > Every mail is sent trough the milter. Large mails are divided in > parts with 1024bytes (I think...). The default max_size for spamc is 250k, and if your system is taking more then 10 seconds to process a 250k email, your problem is somewhere else :) If you pipe a message through spamc manually, how long does it take? > My spamass-milter-daemon starting skript > ========================================================== > /usr/local/sbin/spamass-milter -d func,misc,net,poll,spamc,str,uori -f -p > /var/run/sendmail/spamass.sock -- -s 51000 -d localhost -p 783 & > ========================================================== You probably don't want all those -d flags; func, poll, and spamc both log a lot of lines for each message. Most syslog daemons write in synchronous mode to their logfiles, so that could be slowing you down quite a bit. What does "top" say when one of these big messages is being processed? -- Dan Nelson dnelson@allantgroup.com From MAILER-DAEMON Mon Oct 06 08:00:31 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.24) id 1A6U2N-0006Yk-GG for mharc-spamass-milt-list@gnu.org; Mon, 06 Oct 2003 08:00:27 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1A6U2B-0006Vt-Tj for spamass-milt-list@nongnu.org; Mon, 06 Oct 2003 08:00:15 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1A6U1b-0006In-Jk for spamass-milt-list@nongnu.org; Mon, 06 Oct 2003 08:00:10 -0400 Received: from [194.25.134.18] (helo=mailout04.sul.t-online.com) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A6U1a-0006Ic-Mu for spamass-milt-list@nongnu.org; Mon, 06 Oct 2003 07:59:39 -0400 Received: from fwd02.aul.t-online.de by mailout04.sul.t-online.com with smtp id 1A6U1Z-0004P7-02; Mon, 06 Oct 2003 13:59:37 +0200 Received: from lizi.zinner.intern (ZZuimUZQQeKL1AJwkUdpmfSR2FbX0fWC2FThLDc81bTFelvV8DFk4z@[217.84.75.226]) by fmrl02.sul.t-online.com with esmtp id 1A6U1C-0YZlHU0; Mon, 6 Oct 2003 13:59:14 +0200 Received: from tom (tom.zinner.intern [192.168.110.12]) by lizi.zinner.intern (8.12.7/8.12.7/SuSE Linux 0.6) with SMTP id h96BxCmD020347; Mon, 6 Oct 2003 13:59:13 +0200 From: "Thomas Zinner" To: "Dan Nelson" Date: Mon, 6 Oct 2003 13:58:24 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <20031005202139.GI5283@dan.emsphone.com> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Virus-Scanned: by amavisd-milter (http://amavis.org/) X-Seen: false X-ID: ZZuimUZQQeKL1AJwkUdpmfSR2FbX0fWC2FThLDc81bTFelvV8DFk4z@t-dialin.net Cc: spamass-milt-list@nongnu.org Subject: RE: Problem with large files X-BeenThere: spamass-milt-list@nongnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Spamassin Milter list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Oct 2003 12:00:25 -0000 Thx Dan! Dan Nelson wrote: > The default max_size for spamc is 250k, and if your system is taking > more then 10 seconds to process a 250k email, your problem is somewhere > else :) The failure was the sequence of the milters in sendmail.cf First it was: ======================================== # Input mail filters O InputMailFilters=milter-amavis O InputMailFilters=spamassassin ======================================== now it is: ======================================== # Input mail filters O InputMailFilters=spamassassin O InputMailFilters=milter-amavis ======================================== ... and all ist o.k.. I think, amavis with antivir is a little to slow. Alone its all right, but with another milter, its to slow. Ciao Thomas From MAILER-DAEMON Mon Oct 13 14:43:22 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.24) id 1A97f8-00051o-ED for mharc-spamass-milt-list@gnu.org; Mon, 13 Oct 2003 14:43:22 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1A97f5-000505-DB for spamass-milt-list@nongnu.org; Mon, 13 Oct 2003 14:43:19 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1A97eX-0004m8-UZ for spamass-milt-list@nongnu.org; Mon, 13 Oct 2003 14:43:17 -0400 Received: from [192.86.71.9] (helo=gateway.northgrum.com) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A97eX-0004UB-7n for spamass-milt-list@nongnu.org; Mon, 13 Oct 2003 14:42:45 -0400 Received: from localhost (localhost [127.0.0.1]) by gateway.northgrum.com (8.12.10/8.12.10) with ESMTP id h9DIg1wC005005 for ; Mon, 13 Oct 2003 14:42:01 -0400 (EDT) Date: Mon, 13 Oct 2003 14:42:01 -0400 (EDT) From: Pat Masterson X-X-Sender: bat@gateway.northgrum.com To: spamass-milt-list@nongnu.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: question on "-u defaultuser" parameter: X-BeenThere: spamass-milt-list@nongnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Spamassin Milter list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Oct 2003 18:43:20 -0000 Is "defaultuser" a required string? Or am I suppoded to substitute a real user name like "nobody" here? -pat *-----------------------------------------------------------------------------* * Pat Masterson B38-01, Northrop Grumman, * Ham:KE2LJ * South Oyster Bay Rd. Plant 1. * President Grumman Amateur * Bethpage, NY 11714 * Radio Club WA2LQO * email: bat@grumman.com Fone: 516-346-7125 * www.qsl.net/wa2lqo *-----------------------------------------------------------------------------* From MAILER-DAEMON Mon Oct 13 15:09:22 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.24) id 1A984I-00055C-HK for mharc-spamass-milt-list@gnu.org; Mon, 13 Oct 2003 15:09:22 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1A984G-00054p-0s for spamass-milt-list@nongnu.org; Mon, 13 Oct 2003 15:09:20 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1A983i-000521-6D for spamass-milt-list@nongnu.org; Mon, 13 Oct 2003 15:09:17 -0400 Received: from [64.81.55.46] (helo=hotline.ophiuchi.net) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1A983h-00051k-P8 for spamass-milt-list@nongnu.org; Mon, 13 Oct 2003 15:08:46 -0400 Received: from mail.ophiuchi.com (localhost.localdomain [127.0.0.1]) by hotline.ophiuchi.net (8.12.8/8.12.8) with SMTP id h9DJ87UQ022822; Mon, 13 Oct 2003 12:08:07 -0700 Received: from 64.81.55.218 (SquirrelMail authenticated user cass) by mail.ophiuchi.com with HTTP; Mon, 13 Oct 2003 12:08:07 -0700 (PDT) Message-ID: <1081.64.81.55.218.1066072087.squirrel@mail.ophiuchi.com> In-Reply-To: References: Date: Mon, 13 Oct 2003 12:08:07 -0700 (PDT) From: "Cassandra Lynette Brockett" To: "Pat Masterson" User-Agent: SquirrelMail/1.4.2-1 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 Importance: Normal Cc: spamass-milt-list@nongnu.org Subject: Re: question on "-u defaultuser" parameter: X-BeenThere: spamass-milt-list@nongnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Spamassin Milter list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Oct 2003 19:09:20 -0000 Pat Masterson said: > Is "defaultuser" a required string? Or am I suppoded to substitute a > real user name like "nobody" here? The reason it says "defaultuser" is becuase you are supposed to substitute the name of a user you want the spamassassin process to default to. In my case I have a user "multi" in the SpamAssassin preferences database and every time I get in a multi-recipient email it gets handled using the preferences for that user. If you don't run from a database, nobody is not a bad choice. The user you choose should exist somewhere that SA can use somehow, otherwise SA will default to the root user (which may or may not be a bad idea). >From what I can tell the option is included in the milter as quite often the user a piece of spam is "addressed" to is not always the user(s) it is being delivered to, and as such relying on just the -u option from spamc means you would quite often get an invalid user for spam - hence the option to set a default user for the SpamAssassin process. -- Regards, Cassandra From MAILER-DAEMON Mon Oct 13 16:04:07 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.24) id 1A98vG-0004Dn-RC for mharc-spamass-milt-list@gnu.org; Mon, 13 Oct 2003 16:04:06 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1A98vE-0004BL-E1 for spamass-milt-list@nongnu.org; Mon, 13 Oct 2003 16:04:04 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1A98ug-0003dU-1A for spamass-milt-list@nongnu.org; Mon, 13 Oct 2003 16:04:01 -0400 Received: from [199.232.41.8] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1A98uf-0003ZT-I6 for spamass-milt-list@nongnu.org; Mon, 13 Oct 2003 16:03:29 -0400 Received: from [199.67.51.101] (helo=dan.emsphone.com) by mx20.gnu.org with esmtp (Exim 4.24) id 1A98uH-0000MS-2a for spamass-milt-list@nongnu.org; Mon, 13 Oct 2003 16:03:05 -0400 Received: (from dan@localhost) by dan.emsphone.com (8.12.9/8.12.9) id h9DK24Kt021027; Mon, 13 Oct 2003 15:02:04 -0500 (CDT) (envelope-from dan) Date: Mon, 13 Oct 2003 15:02:04 -0500 From: Dan Nelson To: Cassandra Lynette Brockett Message-ID: <20031013200204.GC51484@dan.emsphone.com> References: <1081.64.81.55.218.1066072087.squirrel@mail.ophiuchi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1081.64.81.55.218.1066072087.squirrel@mail.ophiuchi.com> X-OS: FreeBSD 5.1-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.4i Cc: spamass-milt-list@nongnu.org Subject: Re: question on "-u defaultuser" parameter: X-BeenThere: spamass-milt-list@nongnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Spamassin Milter list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Oct 2003 20:04:05 -0000 In the last episode (Oct 13), Cassandra Lynette Brockett said: > Pat Masterson said: > > Is "defaultuser" a required string? Or am I suppoded to substitute > > a real user name like "nobody" here? > > In my case I have a user "multi" in the SpamAssassin preferences > database and every time I get in a multi-recipient email it gets > handled using the preferences for that user. If you don't run from a > database, nobody is not a bad choice. The user you choose should > exist somewhere that SA can use somehow, otherwise SA will default to > the root user (which may or may not be a bad idea). > > From what I can tell the option is included in the milter as quite > often the user a piece of spam is "addressed" to is not always the > user(s) it is being delivered to, and as such relying on just the -u > option from spamc means you would quite often get an invalid user for > spam - hence the option to set a default user for the SpamAssassin > process. spamass-milter uses the envelope recipient, which is always accurate. The only time the 'defaultuser' string is used if if there are multiple local recipients for a message (a mailinglist that two people have subscribed to, or a spam that stacks 100 recipients onto one message). So the -u flag has two functions: 1) it enables username parsing that it sends to spamc with the -u, and 2) when there are multiple local recipients, it provides a fallback username. -- Dan Nelson dnelson@allantgroup.com From MAILER-DAEMON Mon Oct 13 16:38:52 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.24) id 1A99St-00029c-P3 for mharc-spamass-milt-list@gnu.org; Mon, 13 Oct 2003 16:38:51 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1A99Sr-00026R-7G for spamass-milt-list@nongnu.org; Mon, 13 Oct 2003 16:38:49 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1A99SJ-0001KL-W4 for spamass-milt-list@nongnu.org; Mon, 13 Oct 2003 16:38:47 -0400 Received: from [199.232.41.8] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1A99SJ-0000tk-ME for spamass-milt-list@nongnu.org; Mon, 13 Oct 2003 16:38:15 -0400 Received: from [65.242.171.25] (helo=narn.megacity.org) by mx20.gnu.org with esmtp (Exim 4.24) id 1A99QA-00028s-Tg for spamass-milt-list@nongnu.org; Mon, 13 Oct 2003 16:36:03 -0400 Received: from [192.168.123.172] (24-161-102-179.hvc.rr.com [24.161.102.179]) (authenticated bits=0) by narn.megacity.org (8.12.10/8.12.10/Debian-4) with ESMTP id h9DKYfRj006167 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT); Mon, 13 Oct 2003 16:34:43 -0400 In-Reply-To: <20031013200204.GC51484@dan.emsphone.com> References: <1081.64.81.55.218.1066072087.squirrel@mail.ophiuchi.com> <20031013200204.GC51484@dan.emsphone.com> Mime-Version: 1.0 (Apple Message framework v604) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: "Derek J. Balling" Date: Mon, 13 Oct 2003 16:34:46 -0400 To: Dan Nelson X-Mailer: Apple Mail (2.604) Cc: spamass-milt-list@nongnu.org Subject: Re: question on "-u defaultuser" parameter: X-BeenThere: spamass-milt-list@nongnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Spamassin Milter list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Oct 2003 20:38:50 -0000 On Oct 13, 2003, at 4:02 PM, Dan Nelson wrote: > spamass-milter uses the envelope recipient, which is always accurate. Umm, no it's not: >>> RCPT TO: I highly doubt there's an actual "postmaster" login. More likely that's an alias to someone else. This has been discussed a bunch in the past, and is the main reason I switched to milter-spamc for my sendmail/SA interaction. D From MAILER-DAEMON Mon Oct 13 17:09:56 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.24) id 1A99v5-0000Z2-1w for mharc-spamass-milt-list@gnu.org; Mon, 13 Oct 2003 17:07:59 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1A99uw-0000RN-64 for spamass-milt-list@nongnu.org; Mon, 13 Oct 2003 17:07:50 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1A99uP-0007tp-EJ for spamass-milt-list@nongnu.org; Mon, 13 Oct 2003 17:07:48 -0400 Received: from [199.232.41.8] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1A99tG-0005wt-Ue for spamass-milt-list@nongnu.org; Mon, 13 Oct 2003 17:06:06 -0400 Received: from [199.67.51.101] (helo=dan.emsphone.com) by mx20.gnu.org with esmtp (Exim 4.24) id 1A99t4-0003ik-RU for spamass-milt-list@nongnu.org; Mon, 13 Oct 2003 17:05:54 -0400 Received: (from dan@localhost) by dan.emsphone.com (8.12.9/8.12.9) id h9DL5Ywu007009; Mon, 13 Oct 2003 16:05:34 -0500 (CDT) (envelope-from dan) Date: Mon, 13 Oct 2003 16:05:34 -0500 From: Dan Nelson To: "Derek J. Balling" Message-ID: <20031013210534.GA21069@dan.emsphone.com> References: <1081.64.81.55.218.1066072087.squirrel@mail.ophiuchi.com> <20031013200204.GC51484@dan.emsphone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-OS: FreeBSD 5.1-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.4i Cc: spamass-milt-list@nongnu.org Subject: Re: question on "-u defaultuser" parameter: X-BeenThere: spamass-milt-list@nongnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Spamassin Milter list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Oct 2003 21:07:57 -0000 In the last episode (Oct 13), Derek J. Balling said: > > On Oct 13, 2003, at 4:02 PM, Dan Nelson wrote: > >spamass-milter uses the envelope recipient, which is always accurate. > > Umm, no it's not: > > >>> RCPT TO: > > I highly doubt there's an actual "postmaster" login. More likely that's > an alias to someone else. Well, more accurate than the To: header at least :) > This has been discussed a bunch in the past, and is the main reason I > switched to milter-spamc for my sendmail/SA interaction. The next release of spamass-milter will expand aliases and virtusertable entries (you can download the a tarball of the current CVS source from savannah.gnu.org). -- Dan Nelson dnelson@allantgroup.com From MAILER-DAEMON Mon Oct 13 23:47:57 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.24) id 1A9GA9-0002cw-59 for mharc-spamass-milt-list@gnu.org; Mon, 13 Oct 2003 23:47:57 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1A9GA6-0002c2-Sj for spamass-milt-list@nongnu.org; Mon, 13 Oct 2003 23:47:54 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1A9G9a-0002Nm-9J for Spamass-milt-list@nongnu.org; Mon, 13 Oct 2003 23:47:53 -0400 Received: from [66.228.157.14] (helo=insp5100.camerontech.com) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A9G9Z-0002Nf-Tz for Spamass-milt-list@nongnu.org; Mon, 13 Oct 2003 23:47:22 -0400 Received: from insp5100 ([127.0.0.1]) by insp5100.camerontech.com with Microsoft SMTPSVC(6.0.2600.1106); Mon, 13 Oct 2003 22:47:20 -0500 Message-ID: <028101c39205$de7a13a0$6500a8c0@camerontech.com> From: "Thomas Cameron" To: Date: Mon, 13 Oct 2003 22:47:20 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-OriginalArrivalTime: 14 Oct 2003 03:47:20.0154 (UTC) FILETIME=[DE7A13A0:01C39205] Cc: Subject: Any pointers /gotchas with SA 2.60? X-BeenThere: spamass-milt-list@nongnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Spamassin Milter list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Oct 2003 03:47:55 -0000 Should I even rebuild the spamass-milter RPM, or just leave it alone? -- Regards, Thomas Cameron From MAILER-DAEMON Tue Oct 14 10:59:27 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.24) id 1A9Qdx-0007v0-Pv for mharc-spamass-milt-list@gnu.org; Tue, 14 Oct 2003 10:59:25 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1A9Qds-0007tE-7V for spamass-milt-list@nongnu.org; Tue, 14 Oct 2003 10:59:20 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1A9Qco-0006Oz-Vh for Spamass-milt-list@nongnu.org; Tue, 14 Oct 2003 10:58:46 -0400 Received: from [199.67.51.101] (helo=dan.emsphone.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1A9Qcm-0006Ji-4J for Spamass-milt-list@nongnu.org; Tue, 14 Oct 2003 10:58:12 -0400 Received: (from dan@localhost) by dan.emsphone.com (8.12.9/8.12.9) id h9EEw7hZ093749; Tue, 14 Oct 2003 09:58:07 -0500 (CDT) (envelope-from dan) Date: Tue, 14 Oct 2003 09:58:07 -0500 From: Dan Nelson To: Thomas Cameron Message-ID: <20031014145807.GC21069@dan.emsphone.com> References: <028101c39205$de7a13a0$6500a8c0@camerontech.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <028101c39205$de7a13a0$6500a8c0@camerontech.com> X-OS: FreeBSD 5.1-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.4i Cc: Spamass-milt-list@nongnu.org Subject: Re: Any pointers /gotchas with SA 2.60? X-BeenThere: spamass-milt-list@nongnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Spamassin Milter list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Oct 2003 14:59:21 -0000 In the last episode (Oct 13), Thomas Cameron said: > Should I even rebuild the spamass-milter RPM, or just leave it alone? The only communication the milter has with spamassassin is via spamc, so you don't need to do anything. -- Dan Nelson dnelson@allantgroup.com From MAILER-DAEMON Thu Oct 16 04:02:49 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.24) id 1AA35s-0006LL-Nl for mharc-spamass-milt-list@gnu.org; Thu, 16 Oct 2003 04:02:48 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AA35p-0006IN-Lv for spamass-milt-list@nongnu.org; Thu, 16 Oct 2003 04:02:45 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AA358-00066b-7f for spamass-milt-list@nongnu.org; Thu, 16 Oct 2003 04:02:33 -0400 Received: from [212.192.224.252] (helo=serv.iaas.msu.ru) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AA34g-0005xk-Is for spamass-milt-list@nongnu.org; Thu, 16 Oct 2003 04:01:35 -0400 Received: from serv.iaas.msu.ru (serv.iaas.msu.ru [212.192.224.252]) by serv.iaas.msu.ru (8.12.8p2/8.12.8) with ESMTP id h9G81RQh001343 for ; Thu, 16 Oct 2003 12:01:28 +0400 (MSD) (envelope-from master@iaas.msu.ru) Date: Thu, 16 Oct 2003 12:01:27 +0400 (MSD) From: Michail Vidiassov To: spamass-milt-list@nongnu.org Message-ID: <20031016113929.Y537@serv.iaas.msu.ru> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Why spamass-milter is not a well-behaved daemon? X-BeenThere: spamass-milt-list@nongnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Spamassin Milter list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Oct 2003 08:02:46 -0000 Dear All, is there any reason for spamass-milter, given -f switch, just forking and not doing what the other daemons do - detach from terminal, redirect output to nul, etc? The other question is why the debuging information is sent to syslog with priority LOG_ERR? That seems a little bit to high for debug messages. Sincerely, Michail PS. To be a good daemon, spamass-milter has to do (after forking) something like the following: /* detach from the controlling terminal */ if (setsid() == -1) { fprintf(stderr, "Uh-oh, couldn't create new session!\n"); exit(errno); } /* change the current working directory to the root */ (void)chdir("/"); /* redirect standard input, standard output and standard error to /dev/null */ { int fd; if ((fd = _open(_PATH_DEVNULL, O_RDWR, 0)) != -1) { (void)dup2(fd, STDIN_FILENO); (void)dup2(fd, STDOUT_FILENO); (void)dup2(fd, STDERR_FILENO); if (fd > 2) (void)_close(fd); } } From MAILER-DAEMON Fri Oct 17 00:39:08 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.24) id 1AAMOJ-0002PE-Rl for mharc-spamass-milt-list@gnu.org; Fri, 17 Oct 2003 00:39:07 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AAMOH-0002Np-CA for spamass-milt-list@nongnu.org; Fri, 17 Oct 2003 00:39:05 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AAMNl-0002FW-FS for spamass-milt-list@nongnu.org; Fri, 17 Oct 2003 00:39:04 -0400 Received: from [199.67.51.101] (helo=dan.emsphone.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1AAMNk-0002E7-OT for spamass-milt-list@nongnu.org; Fri, 17 Oct 2003 00:38:32 -0400 Received: (from dan@localhost) by dan.emsphone.com (8.12.9/8.12.9) id h9H4cDX1095882; Thu, 16 Oct 2003 23:38:13 -0500 (CDT) (envelope-from dan) Date: Thu, 16 Oct 2003 23:38:13 -0500 From: Dan Nelson To: Michail Vidiassov Message-ID: <20031017043813.GG7454@dan.emsphone.com> References: <20031016113929.Y537@serv.iaas.msu.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031016113929.Y537@serv.iaas.msu.ru> X-OS: FreeBSD 5.1-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.4i Cc: spamass-milt-list@nongnu.org Subject: Re: Why spamass-milter is not a well-behaved daemon? X-BeenThere: spamass-milt-list@nongnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Spamassin Milter list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Oct 2003 04:39:06 -0000 In the last episode (Oct 16), Michail Vidiassov said: > is there any reason for spamass-milter, given -f switch, just forking > and not doing what the other daemons do - detach from terminal, > redirect output to nul, etc? No particular reason. I'll add a call to daemon() to make it do the right thing. > The other question is why the debuging information is sent to syslog > with priority LOG_ERR? That seems a little bit to high for debug > messages. I set it to a value that was likely to be logged on all systems. It's easier to walk someone through troubleshooting if you don't have to take the extra step of having them make sure their syslog is set to log debugging-level messages. Nothing gets logged at all unless you use the -d flag anyway. -- Dan Nelson dnelson@allantgroup.com From MAILER-DAEMON Fri Oct 17 00:47:06 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.24) id 1AAMW2-0006zz-Fq for mharc-spamass-milt-list@gnu.org; Fri, 17 Oct 2003 00:47:06 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AAMVz-0006uV-FR for spamass-milt-list@nongnu.org; Fri, 17 Oct 2003 00:47:03 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AAMVT-0006Db-6j for spamass-milt-list@nongnu.org; Fri, 17 Oct 2003 00:47:02 -0400 Received: from [66.114.64.229] (helo=crusoe.degler.net) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1AAMVH-0005XB-W0 for spamass-milt-list@nongnu.org; Fri, 17 Oct 2003 00:46:20 -0400 Received: from crusoe.degler.net (localhost [127.0.0.1]) by crusoe.degler.net (8.12.9p1/8.12.9) with ESMTP id h9H4k233000362; Fri, 17 Oct 2003 00:46:02 -0400 (EDT) Received: (from chuck@localhost) by crusoe.degler.net (8.12.9p1/8.12.9) id h9H4k2cr020834; Fri, 17 Oct 2003 00:46:02 -0400 (EDT) Date: Fri, 17 Oct 2003 00:46:02 -0400 From: Chuck Yerkes To: Michail Vidiassov Message-ID: <20031017044602.GA27987@snew.com> References: <20031016113929.Y537@serv.iaas.msu.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031016113929.Y537@serv.iaas.msu.ru> User-Agent: Mutt/1.4i Cc: spamass-milt-list@nongnu.org Subject: Re: Why spamass-milter is not a well-behaved daemon? X-BeenThere: spamass-milt-list@nongnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Spamassin Milter list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Oct 2003 04:47:04 -0000 Quoting Michail Vidiassov (master@iaas.msu.ru): > Dear All, > > is there any reason for spamass-milter, given -f switch, just forking and > not doing what the other daemons do - detach from terminal, redirect > output to nul, etc? Because you haven't contributed the changes yet? I'd offer bonus for opening devices and sockets it needs and chrooting. > The other question is why the debuging information is sent to syslog > with priority LOG_ERR? > That seems a little bit to high for debug messages. From MAILER-DAEMON Fri Oct 17 08:29:58 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.24) id 1AATjx-0003hF-AS for mharc-spamass-milt-list@gnu.org; Fri, 17 Oct 2003 08:29:57 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AATjr-0003gF-Jb for spamass-milt-list@nongnu.org; Fri, 17 Oct 2003 08:29:51 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AATjJ-0003bI-0h for spamass-milt-list@nongnu.org; Fri, 17 Oct 2003 08:29:48 -0400 Received: from [212.192.224.252] (helo=serv.iaas.msu.ru) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AATih-0003OC-9d for spamass-milt-list@nongnu.org; Fri, 17 Oct 2003 08:28:40 -0400 Received: from serv.iaas.msu.ru (serv.iaas.msu.ru [212.192.224.252]) by serv.iaas.msu.ru (8.12.8p2/8.12.8) with ESMTP id h9HCSFR3026495; Fri, 17 Oct 2003 16:28:16 +0400 (MSD) (envelope-from master@iaas.msu.ru) Date: Fri, 17 Oct 2003 16:28:15 +0400 (MSD) From: Michail Vidiassov To: Dan Nelson In-Reply-To: <20031017043813.GG7454@dan.emsphone.com> Message-ID: <20031017162500.N25680@serv.iaas.msu.ru> References: <20031016113929.Y537@serv.iaas.msu.ru> <20031017043813.GG7454@dan.emsphone.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: spamass-milt-list@nongnu.org Subject: Re: Why spamass-milter is not a well-behaved daemon? X-BeenThere: spamass-milt-list@nongnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Spamassin Milter list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Oct 2003 12:29:55 -0000 Dear Dan, On Thu, 16 Oct 2003, Dan Nelson wrote: > In the last episode (Oct 16), Michail Vidiassov said: > > is there any reason for spamass-milter, given -f switch, just forking > > and not doing what the other daemons do - detach from terminal, > > redirect output to nul, etc? > > No particular reason. I'll add a call to daemon() to make it do the > right thing. > Nice, but good daemons do create /var/run/daemon-name.pid file also ;). Sincerely, Michail From MAILER-DAEMON Fri Oct 17 10:05:44 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.24) id 1AAV9t-0002ZI-IK for mharc-spamass-milt-list@gnu.org; Fri, 17 Oct 2003 10:00:49 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AAV9f-0002Yy-Hb for spamass-milt-list@nongnu.org; Fri, 17 Oct 2003 10:00:35 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AAV98-0002Q0-S2 for spamass-milt-list@nongnu.org; Fri, 17 Oct 2003 10:00:33 -0400 Received: from [192.86.71.9] (helo=gateway.northgrum.com) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AAV97-0002GR-EE for spamass-milt-list@nongnu.org; Fri, 17 Oct 2003 10:00:01 -0400 Received: from localhost (localhost [127.0.0.1]) by gateway.northgrum.com (8.12.10/8.12.10) with ESMTP id h9HDxHr1016721 for ; Fri, 17 Oct 2003 09:59:17 -0400 (EDT) Date: Fri, 17 Oct 2003 09:59:17 -0400 (EDT) From: Pat Masterson X-X-Sender: bat@gateway.northgrum.com To: spamass-milt-list@nongnu.org In-Reply-To: <20031017043813.GG7454@dan.emsphone.com> Message-ID: References: <20031016113929.Y537@serv.iaas.msu.ru> <20031017043813.GG7454@dan.emsphone.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: question on milter macros X-BeenThere: spamass-milt-list@nongnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Spamassin Milter list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Oct 2003 14:00:36 -0000 I use spamass-milter with sendmail 8.12.10 on solaris. The sendmail.mc contains: INPUT_MAIL_FILTER(`spamassassin', `S=local:/var/run/sendmail/spamass.sock, F=, T=C:15m;S:4m;R:4m;E:10m')dnl define(`confMILTER_MACROS_CONNECT',`b, j, _, {daemon_name}, {if_name}, {if_addr}')dnl and this generates in my sendmail.cf: O InputMailFilters=spamassassin O Milter.macros.connect=j, _, {daemon_name}, {if_name}, {if_addr} When I add a second mailter (for clamav): INPUT_MAIL_FILTER(`clmilter',`S=local:/var/run/clmilter.sock,F=, T=S:4m;R:4m')dnl My sendmail.cf now contains: O InputMailFilters=spamassassin, clmilter O Milter.macros.connect=b, j, _, {daemon_name}, {if_name}, {if_addr} So it looks line a "=b" has been added to the macros line. What is this, and will it affect spamass-milter? thanks. -pat *-----------------------------------------------------------------------------* * Pat Masterson B38-01, Northrop Grumman, * Ham:KE2LJ * South Oyster Bay Rd. Plant 1. * President Grumman Amateur * Bethpage, NY 11714 * Radio Club WA2LQO * email: bat@grumman.com Fone: 516-346-7125 * www.qsl.net/wa2lqo *-----------------------------------------------------------------------------* From MAILER-DAEMON Fri Oct 17 10:49:21 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.24) id 1AAVuo-0000gM-C7 for mharc-spamass-milt-list@gnu.org; Fri, 17 Oct 2003 10:49:18 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AAVuf-0000fC-LT for spamass-milt-list@nongnu.org; Fri, 17 Oct 2003 10:49:09 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AAVu7-0000ZP-Ii for spamass-milt-list@nongnu.org; Fri, 17 Oct 2003 10:49:06 -0400 Received: from [199.67.51.101] (helo=dan.emsphone.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1AAVu7-0000ZC-3k for spamass-milt-list@nongnu.org; Fri, 17 Oct 2003 10:48:35 -0400 Received: (from dan@localhost) by dan.emsphone.com (8.12.9/8.12.9) id h9HES5j9015032; Fri, 17 Oct 2003 09:28:05 -0500 (CDT) (envelope-from dan) Date: Fri, 17 Oct 2003 09:28:05 -0500 From: Dan Nelson To: Michail Vidiassov Message-ID: <20031017142805.GD49444@dan.emsphone.com> References: <20031016113929.Y537@serv.iaas.msu.ru> <20031017043813.GG7454@dan.emsphone.com> <20031017162500.N25680@serv.iaas.msu.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031017162500.N25680@serv.iaas.msu.ru> X-OS: FreeBSD 5.1-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.4i Cc: spamass-milt-list@nongnu.org Subject: Re: Why spamass-milter is not a well-behaved daemon? X-BeenThere: spamass-milt-list@nongnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Spamassin Milter list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Oct 2003 14:49:16 -0000 In the last episode (Oct 17), Michail Vidiassov said: > On Thu, 16 Oct 2003, Dan Nelson wrote: > > In the last episode (Oct 16), Michail Vidiassov said: > > > is there any reason for spamass-milter, given -f switch, just forking > > > and not doing what the other daemons do - detach from terminal, > > > redirect output to nul, etc? > > > > No particular reason. I'll add a call to daemon() to make it do the > > right thing. > > > Nice, but > good daemons do create /var/run/daemon-name.pid file also ;). I'll also add a commandline flag to specify a pidfile location. -- Dan Nelson dnelson@allantgroup.com From MAILER-DAEMON Fri Oct 17 11:59:30 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.24) id 1AAWu4-0007en-Nm for mharc-spamass-milt-list@gnu.org; Fri, 17 Oct 2003 11:52:36 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AAWtz-0007bk-2c for spamass-milt-list@nongnu.org; Fri, 17 Oct 2003 11:52:31 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AAWF4-0005rA-0K for spamass-milt-list@nongnu.org; Fri, 17 Oct 2003 11:10:45 -0400 Received: from [194.208.88.201] (helo=mail.newlogic.at) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1AAWEZ-0005cT-4A for spamass-milt-list@nongnu.org; Fri, 17 Oct 2003 11:09:43 -0400 Received: from enterprise2.newlogic.at (e2-1.newlogic.at [172.27.1.1]) by mail.newlogic.at (8.12.10/8.12.10) with ESMTP id h9HF9e9H011585 for ; Fri, 17 Oct 2003 17:09:40 +0200 (MEST) Received: from blade100-2 (blade100-2.newlogic.at [172.27.120.2]) by enterprise2.newlogic.at (8.12.10/8.12.10) with ESMTP id h9HF9c84015922 for ; Fri, 17 Oct 2003 17:09:38 +0200 (MEST) Message-Id: <200310171509.h9HF9c84015922@enterprise2.newlogic.at> X-Mailer: XFMail 1.5.4 on Solaris X-Priority: 3 (Normal) Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Date: Fri, 17 Oct 2003 17:09:38 +0200 (MEST) Sender: nwaibel@newlogic.com From: Niki Waibel To: spamass-milt-list@nongnu.org Subject: spamassass-milter-0.2.0+cvs X-BeenThere: spamass-milt-list@nongnu.org X-Mailman-Version: 2.1.2 Precedence: list Reply-To: Niki Waibel List-Id: Spamassin Milter list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Oct 2003 15:52:34 -0000 Oct 17 16:28:51 enterprise2 sendmail[10763]: [ID 801593 mail.crit] NOQUEUE: SYSERR(smmilter): /opt/newlogic/opt/sendmail/8.12.10/etc/mail/sendmail.cf: line 0: cannot open: Permission denied since i updated to spamassass-milter-0.2.0+cvs i get this error in the syslog. milter and spamassassin run as some unpriv user and they have no access to that file. should they have access? if i allow access (go+r) it seems that access to local-host-names and also to the queue dir is wanted: Oct 17 17:06:38 enterprise2 sendmail[15845]: [ID 801593 mail.crit] NOQUEUE: SYSERR(smmilter): can not chdir(/opt/newlogic/opt/s endma il/8.12.10/var/spool/mqueue_24/): Permission denied why does the milter process need access? (the spam rating and everything works fine without the rights.) any idea? niki -- niki w. waibel - system administrator @ newlogic technologies ag From MAILER-DAEMON Fri Oct 17 12:35:43 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.24) id 1AAXWF-0002MK-Rb for mharc-spamass-milt-list@gnu.org; Fri, 17 Oct 2003 12:32:03 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AAXVl-0002Fv-8x for spamass-milt-list@nongnu.org; Fri, 17 Oct 2003 12:31:33 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AAXUk-0001na-Q3 for spamass-milt-list@nongnu.org; Fri, 17 Oct 2003 12:31:01 -0400 Received: from [199.67.51.101] (helo=dan.emsphone.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1AAXUf-0001bV-2x for spamass-milt-list@nongnu.org; Fri, 17 Oct 2003 12:30:25 -0400 Received: (from dan@localhost) by dan.emsphone.com (8.12.9/8.12.9) id h9HGULXP001687; Fri, 17 Oct 2003 11:30:21 -0500 (CDT) (envelope-from dan) Date: Fri, 17 Oct 2003 11:30:21 -0500 From: Dan Nelson To: Niki Waibel Message-ID: <20031017163021.GA90762@dan.emsphone.com> References: <200310171509.h9HF9c84015922@enterprise2.newlogic.at> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200310171509.h9HF9c84015922@enterprise2.newlogic.at> X-OS: FreeBSD 5.1-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.4i Cc: spamass-milt-list@nongnu.org Subject: Re: spamassass-milter-0.2.0+cvs X-BeenThere: spamass-milt-list@nongnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Spamassin Milter list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Oct 2003 16:32:02 -0000 In the last episode (Oct 17), Niki Waibel said: > Oct 17 16:28:51 enterprise2 sendmail[10763]: > [ID 801593 mail.crit] NOQUEUE: SYSERR(smmilter): > /opt/newlogic/opt/sendmail/8.12.10/etc/mail/sendmail.cf: line 0: cannot open: Permission denied > > since i updated to spamassass-milter-0.2.0+cvs i get this error in > the syslog. > > milter and spamassassin run as some unpriv user and they have no > access to that file. should they have access? They shouldn't need access, but the sendmail binary should. The CVS version runs "sendmail -bv user@host.com" to expand aliases and virtusertable entries. If you run that from a shell prompt as a regular user, do you get error messages? > if i allow access (go+r) it seems that access to local-host-names and > also to the queue dir is wanted: > > Oct 17 17:06:38 enterprise2 sendmail[15845]: [ID 801593 mail.crit] NOQUEUE: SYSERR(smmilter): can not chdir(/opt/newlogic/opt/sendmail/8.12.10/var/spool/mqueue_24/): Permission denied > > why does the milter process need access? (the spam rating and > everything works fine without the rights.) any idea? -- Dan Nelson dnelson@allantgroup.com From MAILER-DAEMON Sun Oct 19 09:07:09 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.24) id 1ABDH3-0007pp-Iq for mharc-spamass-milt-list@gnu.org; Sun, 19 Oct 2003 09:07:09 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1ABDH1-0007ow-AY for spamass-milt-list@nongnu.org; Sun, 19 Oct 2003 09:07:07 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1ABDGU-0007d5-0Z for spamass-milt-list@nongnu.org; Sun, 19 Oct 2003 09:07:06 -0400 Received: from [199.232.41.8] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1ABDDi-0006FU-IS for spamass-milt-list@nongnu.org; Sun, 19 Oct 2003 09:03:42 -0400 Received: from [194.208.88.201] (helo=mail.newlogic.at) by mx20.gnu.org with esmtp (Exim 4.24) id 1ABDBn-0006mK-N5 for spamass-milt-list@nongnu.org; Sun, 19 Oct 2003 09:01:43 -0400 Received: from enterprise2.newlogic.at (e2-1.newlogic.at [172.27.1.1]) by mail.newlogic.at (8.12.10/8.12.10) with ESMTP id h9JD1I9H021409; Sun, 19 Oct 2003 15:01:18 +0200 (MEST) Received: from blade100-2 (blade100-2.newlogic.at [172.27.120.2]) by enterprise2.newlogic.at (8.12.10/8.12.10) with ESMTP id h9JD1D84019145; Sun, 19 Oct 2003 15:01:16 +0200 (MEST) Message-Id: <200310191301.h9JD1D84019145@enterprise2.newlogic.at> X-Mailer: XFMail 1.5.4 on Solaris X-Priority: 3 (Normal) Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20031017163021.GA90762@dan.emsphone.com> Date: Sun, 19 Oct 2003 15:01:13 +0200 (MEST) Sender: nwaibel@newlogic.com From: Niki Waibel To: Dan Nelson Cc: spamass-milt-list@nongnu.org Subject: Re: spamassass-milter-0.2.0+cvs X-BeenThere: spamass-milt-list@nongnu.org X-Mailman-Version: 2.1.2 Precedence: list Reply-To: Niki Waibel List-Id: Spamassin Milter list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Oct 2003 13:07:08 -0000 >> Oct 17 16:28:51 enterprise2 sendmail[10763]: >> [ID 801593 mail.crit] NOQUEUE: SYSERR(smmilter): >> /opt/newlogic/opt/sendmail/8.12.10/etc/mail/sendmail.cf: line 0: cannot open: Permission denied >> >> since i updated to spamassass-milter-0.2.0+cvs i get this error in >> the syslog. >> >> milter and spamassassin run as some unpriv user and they have no >> access to that file. should they have access? > > They shouldn't need access, but the sendmail binary should. The CVS > version runs "sendmail -bv user@host.com" to expand aliases and > virtusertable entries. If you run that from a shell prompt as a > regular user, do you get error messages? this is the problem! if i verify email addr as unpriv user: === $ id -a uid=126(smmilter) gid=126(smmilter) groups=126(smmilter) $ /usr/lib/sendmail -bv adm-web@newlogic.com /opt/newlogic/opt/sendmail/8.12.10/etc/mail/sendmail.cf: line 102: fileclass: cannot open '/opt/newlogic/opt/sendmail/8.12.10/e tc/ma il/local-host-names_24': Permission denied Notice: -bv may give misleading output for non-privileged user can not chdir(/opt/newlogic/opt/sendmail/8.12.10/var/spool/mqueue_24/): Permission denied Program mode requires special privileges, e.g., root or TrustedUser. $ Oct 19 14:18:51 enterprise2 sendmail[13202]: [ID 801593 mail.crit] NOQUEUE: SYSERR(smmilter): /opt/newlogic/opt/sendmail/8.12 .10/e tc/mail/sendmail.cf: line 102: fileclass: cannot open '/opt/newlogic/opt/sendmail/8.12.10/etc/mail/local-host-names_24': Permis sion denied Oct 19 14:18:51 enterprise2 sendmail[13202]: [ID 801593 mail.crit] NOQUEUE: SYSERR(smmilter): can not chdir(/opt/newlogic/opt/s endma il/8.12.10/var/spool/mqueue_24/): Permission denied === but if i use the submit.cf file: === $ /usr/lib/sendmail -Ac -bv adm-web@newlogic.com Notice: -bv may give misleading output for non-privileged user adm-web@newlogic.com... deliverable: mailer relay, host [localhost], user adm-web@newlogic.com === then everything is fine. this is what's done when a user calls sendmail directly. the is not allowed to get a list of recipients! sendmail/SECURITY: === What doesn't work anymore ------------------------- Normal users can't use mailq anymore to see the MTA mail queue. There are several ways around it, e.g., changing QueueFileMode or giving users access via a program like sudo. sendmail -bv may give misleading output for normal users since it may not be able to access certain files, e.g., .forward files of other users. === i dont understand === sfsistat mlfi_envrcpt(SMFICTX* ctx, char** envrcpt) === compleatly. can you explain why you need to know the recipients? if it is not absolutely necessary to know all recipients, what about having a switch to use ``/usr/lib/sendmail -Ac ...'' instead of ``/usr/lib/sendmail -Am ...'' (which is the default in -bv mode)? and/or a switch to get rid of calling /usr/lib/sendmail again... this could be a good way to reduce the load in high traffic environments. what do you think? niki From MAILER-DAEMON Sun Oct 19 13:15:24 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.24) id 1ABH9I-0004Dn-DO for mharc-spamass-milt-list@gnu.org; Sun, 19 Oct 2003 13:15:24 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1ABH9F-0004DY-Fc for spamass-milt-list@nongnu.org; Sun, 19 Oct 2003 13:15:21 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1ABH8i-00046y-AO for spamass-milt-list@nongnu.org; Sun, 19 Oct 2003 13:15:20 -0400 Received: from [199.67.51.101] (helo=dan.emsphone.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1ABH8h-00046r-Vu for spamass-milt-list@nongnu.org; Sun, 19 Oct 2003 13:14:48 -0400 Received: (from dan@localhost) by dan.emsphone.com (8.12.9/8.12.9) id h9JHEeX0050785; Sun, 19 Oct 2003 12:14:40 -0500 (CDT) (envelope-from dan) Date: Sun, 19 Oct 2003 12:14:40 -0500 From: Dan Nelson To: Niki Waibel Message-ID: <20031019171440.GE90762@dan.emsphone.com> References: <20031017163021.GA90762@dan.emsphone.com> <200310191301.h9JD1D84019145@enterprise2.newlogic.at> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200310191301.h9JD1D84019145@enterprise2.newlogic.at> X-OS: FreeBSD 5.1-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.4i Cc: spamass-milt-list@nongnu.org Subject: Re: spamassass-milter-0.2.0+cvs X-BeenThere: spamass-milt-list@nongnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Spamassin Milter list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Oct 2003 17:15:22 -0000 In the last episode (Oct 19), Niki Waibel said: > sendmail/SECURITY: > === > What doesn't work anymore > ------------------------- > Normal users can't use mailq anymore to see the MTA mail queue. > There are several ways around it, e.g., changing QueueFileMode > or giving users access via a program like sudo. > sendmail -bv may give misleading output for normal users since it > may not be able to access certain files, e.g., .forward files of > other users. > === Arg. > i dont understand > === > sfsistat > mlfi_envrcpt(SMFICTX* ctx, char** envrcpt) > === > compleatly. > > can you explain why you need to know the recipients? Say you have an email alias pointing "webadmin" to "localuser". An email delivered to "webadmin@host.com" won't get processed with the right user rules, since there is no "webadmin" account. You need to ask sendmail what a particular address expands to, and -bv is the only way I have found. > if it is not absolutely necessary to know all recipients, > what about having a switch to use ``/usr/lib/sendmail -Ac ...'' > instead of ``/usr/lib/sendmail -Am ...'' (which is the default in > -bv mode)? > > and/or a switch to get rid of calling /usr/lib/sendmail again... this > could be a good way to reduce the load in high traffic environments. Yes, I'll probably have to do both. Although compared to the cost of running spamassassin at all, the time spent running the 2nd sendmail copy is probably in the noise. -- Dan Nelson dnelson@allantgroup.com From MAILER-DAEMON Sun Oct 19 13:26:10 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.24) id 1ABHJi-0008SO-GR for mharc-spamass-milt-list@gnu.org; Sun, 19 Oct 2003 13:26:10 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1ABHJg-0008Ry-2c for spamass-milt-list@nongnu.org; Sun, 19 Oct 2003 13:26:08 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1ABHJA-0008J7-8F for spamass-milt-list@nongnu.org; Sun, 19 Oct 2003 13:26:07 -0400 Received: from [65.242.171.25] (helo=narn.megacity.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1ABHJ9-0008Ip-N4 for spamass-milt-list@nongnu.org; Sun, 19 Oct 2003 13:25:35 -0400 Received: from [192.168.123.172] (24-161-102-179.hvc.rr.com [24.161.102.179]) (authenticated bits=0) by narn.megacity.org (8.12.10/8.12.10/Debian-4) with ESMTP id h9JHOocZ013772 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT); Sun, 19 Oct 2003 13:24:51 -0400 In-Reply-To: <20031019171440.GE90762@dan.emsphone.com> References: <20031017163021.GA90762@dan.emsphone.com> <200310191301.h9JD1D84019145@enterprise2.newlogic.at> <20031019171440.GE90762@dan.emsphone.com> Mime-Version: 1.0 (Apple Message framework v606) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <24D72332-0259-11D8-A7CC-000A27AF5202@megacity.org> Content-Transfer-Encoding: 7bit From: "Derek J. Balling" Date: Sun, 19 Oct 2003 13:24:50 -0400 To: Dan Nelson X-Mailer: Apple Mail (2.606) Cc: spamass-milt-list@nongnu.org Subject: Re: spamassass-milter-0.2.0+cvs X-BeenThere: spamass-milt-list@nongnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Spamassin Milter list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Oct 2003 17:26:08 -0000 On Oct 19, 2003, at 1:14 PM, Dan Nelson wrote: > Yes, I'll probably have to do both. Although compared to the cost of > running spamassassin at all, the time spent running the 2nd sendmail > copy is probably in the noise. You can use getsymval('{rcpt_addr}') which will give you the result after all the virtusertable/etc. mappings (which is, really, the complicated part), and then have the milter tie to the /etc/mail/aliases.db, do a little bit of recursive checking using the rcpt_addr value to find who the final recipient is. It's not compatible with LDAP and stuff like that, but for the majority of installations, it'd work just spiffy. D From MAILER-DAEMON Sun Oct 19 15:30:54 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.24) id 1ABJGP-0000Zw-TH for mharc-spamass-milt-list@gnu.org; Sun, 19 Oct 2003 15:30:53 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1ABJGM-0000Yw-DS for spamass-milt-list@nongnu.org; Sun, 19 Oct 2003 15:30:50 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1ABJFk-0000RC-EU for spamass-milt-list@nongnu.org; Sun, 19 Oct 2003 15:30:43 -0400 Received: from [64.81.55.46] (helo=hotline.ophiuchi.net) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1ABJFj-0000Oe-Lt for spamass-milt-list@nongnu.org; Sun, 19 Oct 2003 15:30:12 -0400 Received: from mail.ophiuchi.com (localhost.localdomain [127.0.0.1]) by hotline.ophiuchi.net (8.12.8/8.12.8) with SMTP id h9JJU6UQ006696 for ; Sun, 19 Oct 2003 12:30:06 -0700 Received: from 64.81.55.218 (SquirrelMail authenticated user cass) by mail.ophiuchi.com with HTTP; Sun, 19 Oct 2003 12:30:06 -0700 (PDT) Message-ID: <1155.64.81.55.218.1066591806.squirrel@mail.ophiuchi.com> In-Reply-To: <24D72332-0259-11D8-A7CC-000A27AF5202@megacity.org> References: <20031017163021.GA90762@dan.emsphone.com><200310191301.h9JD1D84019145@enterprise2.newlogic.at><20031019171440.GE90762@dan.emsphone.com> <24D72332-0259-11D8-A7CC-000A27AF5202@megacity.org> Date: Sun, 19 Oct 2003 12:30:06 -0700 (PDT) From: "Cassandra Lynette Brockett" To: spamass-milt-list@nongnu.org User-Agent: SquirrelMail/1.4.2-1 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 Importance: Normal Subject: Re: spamassass-milter-0.2.0+cvs X-BeenThere: spamass-milt-list@nongnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Spamassin Milter list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Oct 2003 19:30:51 -0000 Dan is trying to use a system call that is available to all users who run SA/Sendmail/Spamass-Milter. This has caused me a few hicups with code modifications I've provided in the past - I forgot to take into account how Solaris handles things. Your solution would kill the alias support for most of the sites I've installed spamass-milter at, thereby making me go back to the old hand-modifications of spamd to allow it to parse alias's, which is not my idea of a good time... before moving to the new CVS of spamass-milter I used to spend about two hours after an upgrade of SA to fix the alias support I'd patched in to it, not my idea of fun... In one of my favourite testing environments (where at least one user receives 4000+ emails a week, and there are 200+ users) the additional overhead of running sendmail -bv isn't a big deal, and it is the only option I found that is cross-platform compatible (for instance Redhat Linux has a wonderful command to parse the alias lists and give you the local aliases related to the user entered - works for all users, but it does not exist on Solaris, or even Debian). Also sendmail -bv parses the virtualuserstable, while most other options do not - and in a hosting environment (which is the main system I deal with), not using it means letting a pile of spam through the wall... I can't remember when this was all debated but I know it was a few months back - basically Dan decided to use sendmail -bv as it is the most cross-system compatible of the available options and it handled everything. So yeah, adding a switch to add in the extra options if you intend to run spamass-milter as an unpriviledged user is probably not a bad choice, but trying anything else will just cause incompatiblities between sites and therefore reduce the effectiveness of the milter. I'm sure we will see such a switch in the next week or so, knowing what Dan is like at coding I expect it sooner, unless he's got a massive code overhaul he's working on... -- Regards, Cassandra Derek J. Balling said: > > On Oct 19, 2003, at 1:14 PM, Dan Nelson wrote: >> Yes, I'll probably have to do both. Although compared to the cost of >> running spamassassin at all, the time spent running the 2nd sendmail >> copy is probably in the noise. > > You can use getsymval('{rcpt_addr}') which will give you the result > after all the virtusertable/etc. mappings (which is, really, the > complicated part), and then have the milter tie to the > /etc/mail/aliases.db, do a little bit of recursive checking using the > rcpt_addr value to find who the final recipient is. > > It's not compatible with LDAP and stuff like that, but for the majority > of installations, it'd work just spiffy. > > D > > > > _______________________________________________ > Spamass-milt-list mailing list > Spamass-milt-list@nongnu.org > http://mail.nongnu.org/mailman/listinfo/spamass-milt-list > From MAILER-DAEMON Thu Oct 23 08:46:44 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.24) id 1ACerR-0001dN-V2 for mharc-spamass-milt-list@gnu.org; Thu, 23 Oct 2003 08:46:41 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1ACerL-0001Tg-Or for spamass-milt-list@nongnu.org; Thu, 23 Oct 2003 08:46:35 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1ACeqX-0000G3-7P for spamass-milt-list@nongnu.org; Thu, 23 Oct 2003 08:46:16 -0400 Received: from [212.192.224.252] (helo=serv.iaas.msu.ru) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ACeqR-0008Sd-R2 for spamass-milt-list@nongnu.org; Thu, 23 Oct 2003 08:45:40 -0400 Received: from serv.iaas.msu.ru (serv.iaas.msu.ru [212.192.224.252]) by serv.iaas.msu.ru (8.12.8p2/8.12.8) with ESMTP id h9NCjYuW042207 for ; Thu, 23 Oct 2003 16:45:35 +0400 (MSD) (envelope-from master@iaas.msu.ru) Date: Thu, 23 Oct 2003 16:45:34 +0400 (MSD) From: Michail Vidiassov To: spamass-milt-list@nongnu.org Message-ID: <20031023161751.A41442@serv.iaas.msu.ru> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Feature request - a flag to modify subject only X-BeenThere: spamass-milt-list@nongnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Spamassin Milter list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Oct 2003 12:46:39 -0000 Dear Developers, what about Subj? It seems to take no more than a couple of lines of code. The existing -m flag turns on/off Subject and body modifications simultaneously. But 1) Changing Subject is useful for non-technical users, who are unable process mail based on X-Spam headers. 2) Leaving body unmodified is importnat, since some users strongly oppose any changes in the mail content and tend to blame spam filters for any unreadable mail they get. BTW. Why the following is just a comment (in the code processing -m option)? // smfilter.xxfi_flags &= ~SMFIF_CHGBODY; If it does not change how the program works - it still make the reader of the code feel safer. (Like "DO NOT PANIC" written in large friendly letters ;). Sincerely, Michail From MAILER-DAEMON Thu Oct 23 16:28:32 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.24) id 1ACm4O-0005Bg-8X for mharc-spamass-milt-list@gnu.org; Thu, 23 Oct 2003 16:28:32 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1ACm4F-0005AJ-SA for spamass-milt-list@nongnu.org; Thu, 23 Oct 2003 16:28:23 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1ACm3j-0004zT-E5 for spamass-milt-list@nongnu.org; Thu, 23 Oct 2003 16:28:22 -0400 Received: from [65.19.132.2] (helo=central.ixn.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1ACm3i-0004y6-TN for spamass-milt-list@nongnu.org; Thu, 23 Oct 2003 16:27:51 -0400 Received: from ajboggs.com (office.ixn.com [68.23.74.57]) (authenticated bits=0) by central.ixn.com (8.12.10/8.12.10) with ESMTP id h9NKRXjx066203 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 23 Oct 2003 16:27:34 -0400 (EDT) Message-ID: <3F9839B1.50400@ajboggs.com> Date: Thu, 23 Oct 2003 16:27:29 -0400 From: "Russell J. Lahti" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5b) Gecko/20030827 X-Accept-Language: en-us, en MIME-Version: 1.0 To: spamass-milt-list@nongnu.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Spam tagged emails being delivered to the wrong users. X-BeenThere: spamass-milt-list@nongnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Spamassin Milter list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Oct 2003 20:28:30 -0000 After upgrading to the latest spamass-milter, I have started noticing mail tagged as spam that is being delivered to me that was addressed to other accounts on my system. I started looking closer, and found in the maillog that the message was being delivered to 3 accounts at once: to=,,, This seems to result in everyone getting the email, but it only shows that the email was addressed to user3@host.com. User1 thinks that they're getting user3's spam. Is this the way it has always worked, or has something changed? Your input would be much appreciated. -Russell From MAILER-DAEMON Thu Oct 23 17:43:37 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.24) id 1ACnF2-0002tx-PI for mharc-spamass-milt-list@gnu.org; Thu, 23 Oct 2003 17:43:36 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1ACnF0-0002t1-GB for spamass-milt-list@nongnu.org; Thu, 23 Oct 2003 17:43:34 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1ACnES-0002YH-Sc for spamass-milt-list@nongnu.org; Thu, 23 Oct 2003 17:43:33 -0400 Received: from [199.67.51.101] (helo=dan.emsphone.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1ACnER-0002W9-Vj for spamass-milt-list@nongnu.org; Thu, 23 Oct 2003 17:43:00 -0400 Received: (from dan@localhost) by dan.emsphone.com (8.12.9/8.12.9) id h9NLgbqY024560; Thu, 23 Oct 2003 16:42:37 -0500 (CDT) (envelope-from dan) Date: Thu, 23 Oct 2003 16:42:37 -0500 From: Dan Nelson To: "Russell J. Lahti" Message-ID: <20031023214237.GB81116@dan.emsphone.com> References: <3F9839B1.50400@ajboggs.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3F9839B1.50400@ajboggs.com> X-OS: FreeBSD 5.1-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.4i Cc: spamass-milt-list@nongnu.org Subject: Re: Spam tagged emails being delivered to the wrong users. X-BeenThere: spamass-milt-list@nongnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Spamassin Milter list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Oct 2003 21:43:35 -0000 In the last episode (Oct 23), Russell J. Lahti said: > After upgrading to the latest spamass-milter, I have started noticing > mail tagged as spam that is being delivered to me that was addressed > to other accounts on my system. > > I started looking closer, and found in the maillog that the message > was being delivered to 3 accounts at once: > > to=,,, > > This seems to result in everyone getting the email, but it only shows > that the email was addressed to user3@host.com. User1 thinks that > they're getting user3's spam. What part of the email is user1 looking at? If they are just looking at the To: header, then it very well may have someone else's address on it. (Dan's standard email -> snail mail analogy explanation follows) The To: and From: headers in a message are like letterhead on a piece of paper mail. The postal system doesn't use them to deliver a letter (in fact they can't without opening the mail); it uses the address and return address written on the envelope. Email is the same way. The sender and return address are "outside" the message. Most email programs copy the message headers to the envelope when you send a message, but it's entirely possible for them to be different. A mailinglist post, for example will have a From: header of the original author, but an envelope sender of the the list system (so it can handle bounced mail). The To: header will be the list address, and multiple messages will be sent out, each with a different envelope recipient (one for each subscriber). > Is this the way it has always worked, or has something changed? It's always been this way. It may be that you just started getting spam addressed to multiple local users. I get them occasionally. From a quick scan of the last month's mail, they are almost exclusively Nigerian 409 scam letters and one specific "amazing new vibrator" spam. -- Dan Nelson dnelson@allantgroup.com From MAILER-DAEMON Tue Oct 28 07:16:14 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.24) id 1AESld-0005oc-NB for mharc-spamass-milt-list@gnu.org; Tue, 28 Oct 2003 07:16:09 -0500 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AESlQ-0005fY-3s for spamass-milt-list@nongnu.org; Tue, 28 Oct 2003 07:15:56 -0500 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AESkg-00054A-FH for spamass-milt-list@nongnu.org; Tue, 28 Oct 2003 07:15:41 -0500 Received: from [212.192.224.252] (helo=serv.iaas.msu.ru) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AESjF-0004Eq-C3 for spamass-milt-list@nongnu.org; Tue, 28 Oct 2003 07:13:41 -0500 Received: from serv.iaas.msu.ru (serv.iaas.msu.ru [212.192.224.252]) by serv.iaas.msu.ru (8.12.8p2/8.12.8) with ESMTP id h9SCDbqg015617 for ; Tue, 28 Oct 2003 15:13:41 +0300 (MSK) (envelope-from master@iaas.msu.ru) Date: Tue, 28 Oct 2003 15:13:37 +0300 (MSK) From: Michail Vidiassov To: spamass-milt-list@nongnu.org Message-ID: <20031028145656.T13672@serv.iaas.msu.ru> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: retreive_field does not strip \r from the headers X-BeenThere: spamass-milt-list@nongnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Spamassin Milter list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Oct 2003 12:16:07 -0000 Dear All, Why Subj? It results in following log lines: u_or_i: looking at u_or_i: oldstring: <=?koi8-r?B?0sXawM3F?=> f_nc: ^M X-Envelope-To: ... u_or_i: newstring: <=?koi8-r?B?0sXawM3F?=^M> u_or_i: changing Note the difference between oldstring and newstring - it is ^M Sincerely, Michail From MAILER-DAEMON Tue Oct 28 11:29:47 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.24) id 1AEWj5-0006oj-0U for mharc-spamass-milt-list@gnu.org; Tue, 28 Oct 2003 11:29:47 -0500 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AEWj2-0006nB-3H for spamass-milt-list@nongnu.org; Tue, 28 Oct 2003 11:29:44 -0500 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AEWiW-0006a3-32 for spamass-milt-list@nongnu.org; Tue, 28 Oct 2003 11:29:42 -0500 Received: from [199.67.51.101] (helo=dan.emsphone.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1AEWiV-0006ZE-Hp for spamass-milt-list@nongnu.org; Tue, 28 Oct 2003 11:29:11 -0500 Received: (from dan@localhost) by dan.emsphone.com (8.12.9/8.12.9) id h9SGT2gv026959; Tue, 28 Oct 2003 10:29:02 -0600 (CST) (envelope-from dan) Date: Tue, 28 Oct 2003 10:29:02 -0600 From: Dan Nelson To: Michail Vidiassov Message-ID: <20031028162902.GA7043@dan.emsphone.com> References: <20031028145656.T13672@serv.iaas.msu.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031028145656.T13672@serv.iaas.msu.ru> X-OS: FreeBSD 5.1-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.4i Cc: spamass-milt-list@nongnu.org Subject: Re: retreive_field does not strip \r from the headers X-BeenThere: spamass-milt-list@nongnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Spamassin Milter list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Oct 2003 16:29:44 -0000 In the last episode (Oct 28), Michail Vidiassov said: > Dear All, > > Why Subj? > > It results in following log lines: > > u_or_i: looking at > u_or_i: oldstring: <=?koi8-r?B?0sXawM3F?=> > f_nc: ^M X-Envelope-To: ... > u_or_i: newstring: <=?koi8-r?B?0sXawM3F?=^M> > u_or_i: changing > > Note the difference between oldstring and newstring - it is ^M Hmm. The SMTP protocol does require lines to be terminated with \r\n, but SpamAssassin converts everything to plain \n (annoying, but that's what it does). By the time Aargh. I bet that message is over 250k, right? When spamc sees a large message, it just passes it right through unchanged, which is probably where the extra \r's are coming from. I'll file a spamassassin bug on it and see what they have to say about it. -- Dan Nelson dnelson@allantgroup.com From MAILER-DAEMON Tue Oct 28 13:00:09 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.24) id 1AEY8W-00056B-T1 for mharc-spamass-milt-list@gnu.org; Tue, 28 Oct 2003 13:00:08 -0500 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AEY8T-00055q-S4 for spamass-milt-list@nongnu.org; Tue, 28 Oct 2003 13:00:05 -0500 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AEY7w-0004vD-PC for spamass-milt-list@nongnu.org; Tue, 28 Oct 2003 13:00:03 -0500 Received: from [212.192.224.252] (helo=serv.iaas.msu.ru) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AEY7o-0004tP-26 for spamass-milt-list@nongnu.org; Tue, 28 Oct 2003 12:59:24 -0500 Received: from serv.iaas.msu.ru (serv.iaas.msu.ru [212.192.224.252]) by serv.iaas.msu.ru (8.12.8p2/8.12.8) with ESMTP id h9SHxGwn021259; Tue, 28 Oct 2003 20:59:17 +0300 (MSK) (envelope-from master@iaas.msu.ru) Date: Tue, 28 Oct 2003 20:59:16 +0300 (MSK) From: Michail Vidiassov To: Dan Nelson In-Reply-To: <20031028162902.GA7043@dan.emsphone.com> Message-ID: <20031028205508.W21211@serv.iaas.msu.ru> References: <20031028145656.T13672@serv.iaas.msu.ru> <20031028162902.GA7043@dan.emsphone.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: spamass-milt-list@nongnu.org Subject: Re: retreive_field does not strip \r from the headers X-BeenThere: spamass-milt-list@nongnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Spamassin Milter list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Oct 2003 18:00:07 -0000 Dear Dan, On Tue, 28 Oct 2003, Dan Nelson wrote: > Aargh. I bet that message is over 250k, right? When spamc sees a > large message, it just passes it right through unchanged, which is > probably where the extra \r's are coming from. I'll file a > spamassassin bug on it and see what they have to say about it. Right, the problem messages were large, over 250k. But why not to add a trivial workaround - it the last character of a field is \r - strip it? Sincerely, Michail From MAILER-DAEMON Tue Oct 28 13:18:06 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.24) id 1AEYOw-00031T-Pb for mharc-spamass-milt-list@gnu.org; Tue, 28 Oct 2003 13:17:06 -0500 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AEYOr-0002xQ-QY for spamass-milt-list@nongnu.org; Tue, 28 Oct 2003 13:17:01 -0500 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AEYO9-0002Rl-Bc for spamass-milt-list@nongnu.org; Tue, 28 Oct 2003 13:16:48 -0500 Received: from [199.67.51.101] (helo=dan.emsphone.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1AEYHW-0008B3-1m for spamass-milt-list@nongnu.org; Tue, 28 Oct 2003 13:09:26 -0500 Received: (from dan@localhost) by dan.emsphone.com (8.12.9/8.12.9) id h9SI9MWu071799; Tue, 28 Oct 2003 12:09:22 -0600 (CST) (envelope-from dan) Date: Tue, 28 Oct 2003 12:09:22 -0600 From: Dan Nelson To: Michail Vidiassov Message-ID: <20031028180922.GC7043@dan.emsphone.com> References: <20031028145656.T13672@serv.iaas.msu.ru> <20031028162902.GA7043@dan.emsphone.com> <20031028205508.W21211@serv.iaas.msu.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031028205508.W21211@serv.iaas.msu.ru> X-OS: FreeBSD 5.1-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.4i Cc: spamass-milt-list@nongnu.org Subject: Re: retreive_field does not strip \r from the headers X-BeenThere: spamass-milt-list@nongnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Spamassin Milter list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Oct 2003 18:17:04 -0000 In the last episode (Oct 28), Michail Vidiassov said: > On Tue, 28 Oct 2003, Dan Nelson wrote: > > Aargh. I bet that message is over 250k, right? When spamc sees a > > large message, it just passes it right through unchanged, which is > > probably where the extra \r's are coming from. I'll file a > > spamassassin bug on it and see what they have to say about it. > > Right, the problem messages were large, over 250k. > > But why not to add a trivial workaround - it the last character of > a field is \r - strip it? I will probably have to do that. But what if the author put a trailing \r in his subject for some reason? I'm fixing your problem but creating another, less frequent problem. I don't like solutions like that :) -- Dan Nelson dnelson@allantgroup.com From MAILER-DAEMON Wed Oct 29 01:25:39 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.24) id 1AEjlz-00038c-Gi for mharc-spamass-milt-list@gnu.org; Wed, 29 Oct 2003 01:25:39 -0500 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AEjkw-0002Vp-RD for spamass-milt-list@nongnu.org; Wed, 29 Oct 2003 01:24:34 -0500 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AEjjr-00005L-8L for spamass-milt-list@nongnu.org; Wed, 29 Oct 2003 01:23:57 -0500 Received: from [199.232.41.8] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1AEjjl-0007kE-5h for spamass-milt-list@nongnu.org; Wed, 29 Oct 2003 01:23:21 -0500 Received: from [212.192.224.252] (helo=serv.iaas.msu.ru) by mx20.gnu.org with esmtp (Exim 4.24) id 1AEjhy-0002Va-Rb for spamass-milt-list@nongnu.org; Wed, 29 Oct 2003 01:21:31 -0500 Received: from serv.iaas.msu.ru (serv.iaas.msu.ru [212.192.224.252]) by serv.iaas.msu.ru (8.12.8p2/8.12.8) with ESMTP id h9T6LOAZ027887; Wed, 29 Oct 2003 09:21:25 +0300 (MSK) (envelope-from master@iaas.msu.ru) Date: Wed, 29 Oct 2003 09:21:24 +0300 (MSK) From: Michail Vidiassov To: Dan Nelson In-Reply-To: <20031028180922.GC7043@dan.emsphone.com> Message-ID: <20031029091219.Y27808@serv.iaas.msu.ru> References: <20031028145656.T13672@serv.iaas.msu.ru> <20031028162902.GA7043@dan.emsphone.com> <20031028205508.W21211@serv.iaas.msu.ru> <20031028180922.GC7043@dan.emsphone.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: spamass-milt-list@nongnu.org Subject: Re: retreive_field does not strip \r from the headers X-BeenThere: spamass-milt-list@nongnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Spamassin Milter list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Oct 2003 06:25:38 -0000 Dear Dan, On Tue, 28 Oct 2003, Dan Nelson wrote: > > But why not to add a trivial workaround - it the last character of > > a field is \r - strip it? > > I will probably have to do that. But what if the author put a trailing > \r in his subject for some reason? I'm fixing your problem but > creating another, less frequent problem. I don't like solutions like > that :) > The author is a RFC violator! Trailing \r is not allowed! spamass_milter should generate an auto_reply to such message, with several megabytes of excellent swap attached, or (better) publish the e-mail of the sender on a web-page, known to be visited by e-mail address harvesters ;) RFC 2822: 2.2. Header Fields Header fields are lines composed of a field name, followed by a colon (":"), followed by a field body, and terminated by CRLF. A field name MUST be composed of printable US-ASCII characters (i.e., characters that have values between 33 and 126, inclusive), except colon. A field body may be composed of any US-ASCII characters, except for CR and LF. However, a field body may contain CRLF when used in header "folding" and "unfolding" as described in section 2.2.3. All field bodies MUST conform to the syntax described in sections 3 and 4 of this standard. Am I correct in readin it? Or there is some other MIME RFC, that allows CR in the filed body? Sincerely, Michail From MAILER-DAEMON Wed Oct 29 10:27:18 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.24) id 1AEsEA-0004T2-B3 for mharc-spamass-milt-list@gnu.org; Wed, 29 Oct 2003 10:27:18 -0500 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AEsE7-0004Sh-IK for spamass-milt-list@nongnu.org; Wed, 29 Oct 2003 10:27:15 -0500 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AEsDb-0004NM-Bv for spamass-milt-list@nongnu.org; Wed, 29 Oct 2003 10:27:14 -0500 Received: from [199.67.51.101] (helo=dan.emsphone.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1AEsDa-0004N8-Pd for spamass-milt-list@nongnu.org; Wed, 29 Oct 2003 10:26:42 -0500 Received: (from dan@localhost) by dan.emsphone.com (8.12.9/8.12.9) id h9TFQYa3086949; Wed, 29 Oct 2003 09:26:34 -0600 (CST) (envelope-from dan) Date: Wed, 29 Oct 2003 09:26:34 -0600 From: Dan Nelson To: Michail Vidiassov Message-ID: <20031029152633.GD2284@dan.emsphone.com> References: <20031028145656.T13672@serv.iaas.msu.ru> <20031028162902.GA7043@dan.emsphone.com> <20031028205508.W21211@serv.iaas.msu.ru> <20031028180922.GC7043@dan.emsphone.com> <20031029091219.Y27808@serv.iaas.msu.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031029091219.Y27808@serv.iaas.msu.ru> X-OS: FreeBSD 5.1-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.4i Cc: spamass-milt-list@nongnu.org Subject: Re: retreive_field does not strip \r from the headers X-BeenThere: spamass-milt-list@nongnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Spamassin Milter list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Oct 2003 15:27:16 -0000 In the last episode (Oct 29), Michail Vidiassov said: > On Tue, 28 Oct 2003, Dan Nelson wrote: > > I will probably have to do that. But what if the author put a > > trailing \r in his subject for some reason? I'm fixing your > > problem but creating another, less frequent problem. I don't like > > solutions like that :) > > RFC 2822: > (":"), followed by a field body, and terminated by CRLF. A field > name MUST be composed of printable US-ASCII characters (i.e., > characters that have values between 33 and 126, inclusive), except > colon. A field body may be composed of any US-ASCII characters, > except for CR and LF. However, a field body may contain CRLF when > > Am I correct in readin it? Or there is some other MIME RFC, that > allows CR in the filed body? No, you're right. I'll add code to strip extra CRs from fields. -- Dan Nelson dnelson@allantgroup.com From MAILER-DAEMON Thu Oct 30 03:15:41 2003 Received: from list by monty-python.gnu.org with archive (Exim 4.24) id 1AF7y1-0004eL-7g for mharc-spamass-milt-list@gnu.org; Thu, 30 Oct 2003 03:15:41 -0500 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AF7xz-0004e6-1C for spamass-milt-list@nongnu.org; Thu, 30 Oct 2003 03:15:39 -0500 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AF7xT-0004ZV-Cj for spamass-milt-list@nongnu.org; Thu, 30 Oct 2003 03:15:38 -0500 Received: from [212.192.224.252] (helo=serv.iaas.msu.ru) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AF7xP-0004Ua-9C for spamass-milt-list@nongnu.org; Thu, 30 Oct 2003 03:15:04 -0500 Received: from serv.iaas.msu.ru (serv.iaas.msu.ru [212.192.224.252]) by serv.iaas.msu.ru (8.12.8p2/8.12.8) with ESMTP id h9U8Eh6K045203; Thu, 30 Oct 2003 11:14:47 +0300 (MSK) (envelope-from master@iaas.msu.ru) Date: Thu, 30 Oct 2003 11:14:43 +0300 (MSK) From: Michail Vidiassov To: Dan Nelson In-Reply-To: <20031029152633.GD2284@dan.emsphone.com> Message-ID: <20031030110958.W45110@serv.iaas.msu.ru> References: <20031028145656.T13672@serv.iaas.msu.ru> <20031028162902.GA7043@dan.emsphone.com> <20031028205508.W21211@serv.iaas.msu.ru> <20031028180922.GC7043@dan.emsphone.com> <20031029091219.Y27808@serv.iaas.msu.ru> <20031029152633.GD2284@dan.emsphone.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: spamass-milt-list@nongnu.org Subject: Re: retreive_field does not strip \r from the headers X-BeenThere: spamass-milt-list@nongnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Spamassin Milter list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Oct 2003 08:15:39 -0000 Dear Dan, On Wed, 29 Oct 2003, Dan Nelson wrote: > > RFC 2822: > > A field body may be composed of any US-ASCII characters, > > except for CR and LF. > I'll add code to strip extra CRs from fields. Just a final note - single CR is mentioned in RFC 2822 part 4 "Obsolete Syntax", they MUST be acceped and parsed. Sincerely, Michail