From djb-qmail-return-7185-nelson-l-6ca615d95fcb76f5bb3afdc1a6ef9814=crynwr.com@koobera.math.uic.edu Sun Sep 14 03:56:56 1997 X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil] [nil nil nil nil nil nil nil nil nil nil nil nil "^From:" nil nil nil nil nil nil nil] nil) Return-Path: Delivered-To: nelson-l-6ca615d95fcb76f5bb3afdc1a6ef9814@desk.crynwr.com Received: (qmail 18546 invoked from network); 14 Sep 1997 03:56:56 -0000 Received: from ns.crynwr.com (nelson@192.203.178.14) by desk.crynwr.com with SMTP; 14 Sep 1997 03:56:56 -0000 Received: (qmail 11069 invoked by uid 500); 14 Sep 1997 03:43:48 -0000 Delivered-To: nelson-l-6ca615d95fcb76f5bb3afdc1a6ef9814@crynwr.com Received: (qmail 11065 invoked by uid 0); 14 Sep 1997 03:43:47 -0000 Received: from cruncher.math.uic.edu (131.193.178.241) by pdam.crynwr.com with SMTP; 14 Sep 1997 03:43:47 -0000 Received: (qmail 615 invoked by uid 1001); 14 Sep 1997 03:47:16 -0000 Mailing-List: contact djb-qmail-help@koobera.math.uic.edu; run by ezmlm Delivered-To: mailing list djb-qmail@koobera.math.uic.edu Received: (qmail 610 invoked from network); 14 Sep 1997 03:47:16 -0000 Received: from koobera.math.uic.edu (qmailr@131.193.178.247) by cruncher.math.uic.edu with SMTP; 14 Sep 1997 03:47:16 -0000 Received: (qmail 2154 invoked by uid 666); 14 Sep 1997 03:47:36 -0000 Delivered-To: djb-qmail@koobera.math.uic.edu Received: (qmail 2150 invoked from network); 14 Sep 1997 03:47:35 -0000 Received: from pool.pipex.net (158.43.128.24) by koobera.math.uic.edu with SMTP; 14 Sep 1997 03:47:35 -0000 Received: (qmail 5711 invoked from smtpd); 14 Sep 1997 03:47:02 -0000 Received: from pool.pipex.net (HELO pool.uunet.pipex.com) (158.43.128.24) by pool.pipex.net with SMTP; 14 Sep 1997 03:47:01 -0000 X-Sender: chuck@pool.uunet.pipex.com Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII From: Chuck Foster To: djb-qmail@koobera.math.uic.edu Subject: qmail-remote patch for CNAME lookups Date: Sun, 14 Sep 1997 04:47:01 +0100 (BST) Hi, Yes I *know* what the UK time is - such is the life of early morning maintenance slots!!!! Thought I'd mail the patch I applied to qmail-remote to cover the distinguishing between Sender/Recipient CNAME lookup problems. It gives out messages like: 874207727.251908 delivery 4: deferral: Recipient_CNAME_lookup_failed_temporarily._(#4.4.3)/ I tried to make it as simple as possible (ie. minimum changes to code). Please note that this message will be returned to the sender if the message timesout etc, since it would be treated as qmail's last attempt before bouncing it in those cases. This probably doesn't really matter, since a Recipient comment helps the sender, but the sender comment would probably doublebounce due to a CNAME error ... ! The usual disclaimer, its up to you if you use it - don't blame me if it doesn't work for you! C. ----------- *** qmail-remote.c 1997/09/13 14:21:08 1.1 --- qmail-remote.c 1997/09/13 14:35:12 *************** *** 63,69 **** void temp_noconn() { out("Z\ Sorry, I wasn't able to establish an SMTP connection. (#4.4.1)\n"); zerodie(); } void temp_read() { out("ZUnable to read message. (#4.3.0)\n"); zerodie(); } ! void temp_dnscanon() { out("Z\ CNAME lookup failed temporarily. (#4.4.3)\n"); zerodie(); } void temp_dns() { out("Z\ Sorry, I couldn't find any host by that name. (#4.1.2)\n"); zerodie(); } --- 63,70 ---- void temp_noconn() { out("Z\ Sorry, I wasn't able to establish an SMTP connection. (#4.4.1)\n"); zerodie(); } void temp_read() { out("ZUnable to read message. (#4.3.0)\n"); zerodie(); } ! char *addrtype; ! void temp_dnscanon() { out("Z"); out(addrtype); out(" \ CNAME lookup failed temporarily. (#4.4.3)\n"); zerodie(); } void temp_dns() { out("Z\ Sorry, I couldn't find any host by that name. (#4.1.2)\n"); zerodie(); } *************** *** 411,421 **** --- 412,424 ---- } + addrtype = "Sender"; addrmangle(&sender,argv[2],&flagalias,!relayhost); if (!saa_readyplus(&reciplist,0)) temp_nomem(); if (ipme_init() != 1) temp_oserr(); + addrtype = "Recipient"; flagallaliases = 1; recips = argv + 3; while (*recips)