From nobody Wed Nov 06 03:41:15 2024 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XjrbS2kzJz5c1ym for ; Wed, 06 Nov 2024 03:41:24 +0000 (UTC) (envelope-from bob@proulx.com) Received: from havoc.proulx.com (havoc.proulx.com [198.99.81.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4XjrbR0vRHz44wv for ; Wed, 6 Nov 2024 03:41:23 +0000 (UTC) (envelope-from bob@proulx.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=proulx.com header.s=dkim2048 header.b=BVtLF9c9; spf=pass (mx1.freebsd.org: domain of bob@proulx.com designates 198.99.81.74 as permitted sender) smtp.mailfrom=bob@proulx.com; dmarc=pass (policy=none) header.from=proulx.com Received: from joseki.proulx.com (localhost [127.0.0.1]) by havoc.proulx.com (Postfix) with ESMTPS id 9A858B0 for ; Tue, 5 Nov 2024 20:41:15 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proulx.com; s=dkim2048; t=1730864475; bh=x177LdfR5BC5XyIkyw05PGd2PE/SoA2aU6fou8XdHgk=; h=Date:From:To:Subject:References:In-Reply-To:From; b=BVtLF9c9IBdq0YkpHqrQqNvOI3N1una7N54a1Um9oLkrMQwA8BLH5GRth2OTiy/ix tI+JEfNmXfcISg6koih/n3D7Hg4nVbeKDIKeQSjE6gScItQ8XEH463D21VtdSFjmBS 69YPMJ8827cjHHgVTT3mKl1hi7pQrFaVzaXKq6pN+q8UW/EW6xonsM8IOvWhl+qG6f Tf6rf2F7Wz+LFclJcstLpOL1/wKIcG5UoNjXEUOEdjv2+r0gAFkqGTfslMz4LUTtXI BUcS0LDOx3lSkm9SlYMXAFxpF0CXZmKijUZrA7CjZ7uq+TpfFOlloRBOYkecYlWBci 0RVuFPUNCD03w== Received: from madness.proulx.com (madness.proulx.com [192.168.230.122]) by joseki.proulx.com (Postfix) with ESMTP id 6C7727A068 for ; Tue, 5 Nov 2024 20:41:15 -0700 (MST) Received: by madness.proulx.com (Postfix, from userid 1000) id 5D98081016; Tue, 05 Nov 2024 20:41:15 -0700 (MST) Date: Tue, 5 Nov 2024 20:41:15 -0700 From: Bob Proulx To: freebsd-questions@freebsd.org Subject: Re: Name resolution in FreeBSD/Postfix Message-ID: <20241105203524638613094@bob.proulx.com> Mail-Followup-To: freebsd-questions@freebsd.org References: <30b4b3ca-1872-480a-93bb-f0c85908515f@quillandmouse.com> List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <30b4b3ca-1872-480a-93bb-f0c85908515f@quillandmouse.com> X-Spamd-Result: default: False [-4.00 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.998]; DMARC_POLICY_ALLOW(-0.50)[proulx.com,none]; R_DKIM_ALLOW(-0.20)[proulx.com:s=dkim2048]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; ASN(0.00)[asn:397142, ipnet:198.99.80.0/22, country:US]; MISSING_XM_UA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+]; MID_RHS_MATCH_FROMTLD(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; ARC_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; DKIM_TRACE(0.00)[proulx.com:+] X-Rspamd-Queue-Id: 4XjrbR0vRHz44wv X-Spamd-Bar: --- Paul M. Foster wrote: > Trying to configure Postfix to route local mail (internet is later). During > a telnet conversation with Postfix to send it mail for a local user, it I highly recommend using the swaks mail test utility to help with this type of testing. It's much easier than chatting using telnet. Try it and I am sure you will like it! swaks --to=rwp@localhost --server=localhost > chokes on paulf@localhost recipient, with a 451 4.3.0 error. This is my > user, and it's in the /etc/passwd file. So I don't understand why it doesn't > understand the recipient email address. And yes, localhost is 127.0.0.1 in > the /etc/hosts file. It all depends upon your postfix configuration but localhost is probably not listed in mydestination. rwp@madness:~$ postconf mydestination mydestination = $myhostname, localhost.$mydomain, localhost Bob