Article View: demon.ip.developers
Article #619KA9Q mailkill can kill wrong messages.
From: Nick Leverton
Date: Mon, 17 Mar 1997 00:00
Date: Mon, 17 Mar 1997 00:00
25 lines
1947 bytes
1947 bytes
There's a bit of an "oooh, nasty" in KA9Q's mailkill handling. The variable 'bad_sender' in smtpserv.c is global (only one copy for the system), where it should be locally allocated in sptpserv() (one per receive process). This means that, when you have two receives going in parallel, a rejection on one will also cause the other, valid, stream to perform a mail rejection, if it is itself inbetween the "MAIL FROM" and "DATA" stages, inclusive, of the protocol. I'd long wondered how that NeedSender 503 could be triggered; now I know - fortunately only on a message I'd forwarded to myself. Note that the rejection is silent; it is *not* logged on the screen or in mail.log. The same also applies to the variable 'fail', which is used to do the "deliver default" and other alias thangs. In this case the variable is used to communicate between smtpserv() and expandalias(), so a little more work will be needed to pass back the results. Expandalias() is also called from mailuser() and unfortunately I haven't time right now to track through all the implications of this. Note that there is another independent variable also called fail in mailit(). P.S. Many returns of last week, John. Did you get that nice new shiny hardware debugger ? :-) Nick Leverton
Technical Details
Message-ID:
<s858637073snx@warren.demon.co.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10bb05,4a438dcc7e2e89ee,start X-Google-Attributes: gid10bb05,public X-Google-Thread: fb525,4a438dcc7e2e89ee,start X-Google-Attributes: gidfb525,public From: leveret@warren.demon.co.uk (Nick Leverton) Subject: KA9Q mailkill can kill wrong messages. Date: 1997/03/17 Message-ID: <s858637073snx@warren.demon.co.uk> X-Deja-AN: 226191353 X-Mail2News-User: leveret@warren.demon.co.uk Supersedes: <858637073snx@warren.demon.co.uk> X-Mail2News-Path: bath.mail.pipex.net!leveret.rb.icl.co.uk Organization: Indexed; Access: Random. Newsgroups: demon.ip.developers,demon.ip.support.pc