From owner-freebsd-questions@freebsd.org Thu Jul 9 16:43:11 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 66C1D36FC29 for ; Thu, 9 Jul 2020 16:43:11 +0000 (UTC) (envelope-from jmc-freebsd2@milibyte.co.uk) Received: from electron.ecohosting.co.uk (electron.ecohosting.co.uk [185.53.59.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4B2hnB12j1z4Glh for ; Thu, 9 Jul 2020 16:43:09 +0000 (UTC) (envelope-from jmc-freebsd2@milibyte.co.uk) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=milibyte.co.uk; s=default; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:To:From:Sender: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=+77g3JfqZ7rEdQUj05cgELvh+ASTtklnaZIsXBc+bd4=; b=SLHfVCa/dDNgbX4BtAD7+k+Pxw 91qdpPYrCNyqEOwOuq1mmzVYAgT8mo8+dQm+lR3vg10fO7qZCq3gXVb0ZHsvJEKx1+vBjtNq+O5an j0CCxJJPovq9FJRHpPEnsPOmjXB8TD5QI72iTqypyhGnV5p314Zv69nFqUP3q6XlYE78Y3JnHqkWQ juEcJ/DP1RnawZo9KaJQ6Zqhnm/fjGQKq7jzGeQJPdFyCiiguDU3Ngu6uVe4lDuic0AAjGAVi5VAZ Zm2huuHwyUmpbVAZ4hWoTjDg5dnekNZqqozxSLiZOfYwsDzUCFAAgjxezlTZf1jLtjJGOAEF+uoTT M03kOnGA==; Received: from 82-71-56-121.dsl.in-addr.zen.co.uk ([82.71.56.121]:17813 helo=curlew.milibyte.co.uk) by electron.ecohosting.co.uk with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1jtZdW-0008pa-47 for freebsd-questions@freebsd.org; Thu, 09 Jul 2020 17:43:02 +0100 Received: from [127.0.0.1] (helo=curlew.localnet) by curlew.milibyte.co.uk with esmtp (Exim 4.94) (envelope-from ) id 1jtZIN-0003RH-Vp for freebsd-questions@freebsd.org; Thu, 09 Jul 2020 17:21:11 +0100 From: Mike Clarke To: freebsd-questions@freebsd.org Subject: Re: Exim - retry time not reached for any host Date: Thu, 09 Jul 2020 17:21:11 +0100 Message-ID: <3256425.vnUxkepd50@curlew> In-Reply-To: References: <2534646.NQNxk83B2J@curlew> <1854884.R0FQcr2YjX@curlew> MIME-Version: 1.0 X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: jmc-freebsd2@milibyte.co.uk X-SA-Exim-Scanned: No (on curlew.milibyte.co.uk); SAEximRunCond expanded to false X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - electron.ecohosting.co.uk X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - milibyte.co.uk X-Get-Message-Sender-Via: electron.ecohosting.co.uk: authenticated_id: mailpool@milibyte.co.uk X-Authenticated-Sender: electron.ecohosting.co.uk: mailpool@milibyte.co.uk X-Source: X-Source-Args: X-Source-Dir: X-Rspamd-Queue-Id: 4B2hnB12j1z4Glh X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=milibyte.co.uk header.s=default header.b=SLHfVCa/; dmarc=none; spf=pass (mx1.freebsd.org: domain of jmc-freebsd2@milibyte.co.uk designates 185.53.59.181 as permitted sender) smtp.mailfrom=jmc-freebsd2@milibyte.co.uk X-Spamd-Result: default: False [-1.67 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[milibyte.co.uk:s=default]; NEURAL_HAM_MEDIUM(-0.95)[-0.946]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; HAS_X_SOURCE(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[milibyte.co.uk]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-0.998]; RCVD_COUNT_THREE(0.00)[3]; MID_RHS_NOT_FQDN(0.50)[]; R_SPF_ALLOW(-0.20)[+a]; DKIM_TRACE(0.00)[milibyte.co.uk:+]; NEURAL_HAM_SHORT(-0.23)[-0.228]; HAS_X_GMSV(0.00)[mailpool@milibyte.co.uk]; HAS_X_ANTIABUSE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; CTE_CASE(0.50)[]; ASN(0.00)[asn:12488, ipnet:185.53.56.0/22, country:GR]; RCVD_TLS_LAST(0.00)[]; HAS_X_AS(0.00)[mailpool@milibyte.co.uk] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7Bit X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Jul 2020 16:43:11 -0000 On Monday, 22 June 2020 22:03:53 BST Daniel Lysfjord via freebsd-questions wrote: > A "truss -ff" on exim would also be interesting, just > to see what it's really doing. I've now managed to get back to trying to sort this problem. Unfortunately I've introduced another variable into the mix because I've had to switch to a different service provider but since I've been seeing the same problem when trying to send through three other providers I don't think the change should be very significant. I've run truss on exim but I'll not post the entire output to the list because the file runs to over 1100 lines and also I don't know what the security implications for my email account might be by posting it publicly I ran truss for both a failed connection with 4.94 and a successful one with 4.93. I don't have enough skills to interpret the entire output but from what I can see both sessions follow a similar pattern until they have read /etc/ssl/cert.pem 3216: open("/etc/ssl/cert.pem",O_RDONLY,0666) = 9 (0x9) 3216: fstat(9,{ mode=-rw-r--r-- ,inode=471370,size=801055,blksize=131072 }) = 0 (0x0) 3216: mmap(0x0,135168,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 34378272768 (0x8011ad000) 3216: read(9,"##\n## ca-root-nss.crt -- Bundl"...,131072) = 131072 (0x20000) After about 40 lines reading /etc/ssl/cert.pem exim 4.94 continues with: 3216: read(9,0x8011adec0,131072) = 0 (0x0) 3216: close(9) = 0 (0x0) 3216: issetugid() = 0 (0x0) 3216: setitimer(0,{ 0.000000, 300.000000 },{ 0.000000, 0.000000 }) = 0 (0x0) 3216: mmap(0x0,24576,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 34385039360 (0x801821000) 3216: mmap(0x0,24576,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 34385063936 (0x801827000) 3216: getpid() = 3216 (0xc90) 3216: getpid() = 3216 (0xc90) 3216: getpid() = 3216 (0xc90) 3216: getpid() = 3216 (0xc90) 3216: getpid() = 3216 (0xc90) 3216: getpid() = 3216 (0xc90) 3216: write(7,"\^V\^C\^A\^A%\^A\0\^A!\^C\^Ck"...,298) ERR#57 'Socket is not connected' After this it goes on to write to /var/spool/exim/db/wait-remote_auth_smtp and various log files before terminating But 4.93 continues with: 88001: read(9,0x801169f00,131072) = 0 (0x0) 88001: close(9) = 0 (0x0) 88001: issetugid() = 0 (0x0) 88001: setitimer(0,{ 0.000000, 300.000000 },{ 0.000000, 0.000000 }) = 0 (0x0) 88001: mmap(0x0,24576,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 34384932864 (0x801807000) 88001: mmap(0x0,24576,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 34384957440 (0x80180d000) 88001: getpid() = 88001 (0x157c1) 88001: getpid() = 88001 (0x157c1) 88001: getpid() = 88001 (0x157c1) 88001: getpid() = 88001 (0x157c1) 88001: getpid() = 88001 (0x157c1) 88001: getpid() = 88001 (0x157c1) 88001: write(7,"\^V\^C\^A\^A%\^A\0\^A!\^C\^C\M-`"...,298) = 298 (0x12a) The successful 4.93 job then continues to negotiate a SSL connection and send the email. -- Mike Clarke