From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A2A2D15808B for ; Tue, 13 Feb 2024 22:11:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B7EEFE2A40; Tue, 13 Feb 2024 22:11:45 +0000 (UTC) Received: from smarthost01c.ixn.mail.zen.net.uk (smarthost01c.ixn.mail.zen.net.uk [212.23.1.22]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6342CE2A29 for ; Tue, 13 Feb 2024 22:11:45 +0000 (UTC) Received: from [82.69.80.10] (helo=cube.localnet) by smarthost01c.ixn.mail.zen.net.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1ra105-0026Yj-SX for gentoo-user@lists.gentoo.org; Tue, 13 Feb 2024 22:11:43 +0000 From: Peter Humphrey To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Help with local mail, please Date: Tue, 13 Feb 2024 22:11:43 +0000 Message-ID: <4908276.31r3eYUQgx@cube> In-Reply-To: References: <4880323.GXAFRqVoOG@cube> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Originating-smarthost01c-IP: [82.69.80.10] Feedback-ID: 82.69.80.10 X-Archives-Salt: c4540387-f7b8-4430-9b10-47208b614b1a X-Archives-Hash: 0055d9c3e946e837c159f1385af8c27a On Tuesday, 13 February 2024 17:20:40 GMT Arve Barsnes wrote: > I'm not sure I quite understood where you're having problems, but I > have a machine that accepts mail from the LAN through postfix, so I'll > show some of my setup. Replace any <> with your hostnames. > On the LAN machine I don't have postfix, I only send mail directly to > the machine with 'sendmail', but I found that I have in > /etc/mail/mailertable: > 192.168. smtp: > esmtp: > And in /etc/mail/local-host-names I have set - > maybe that does something, but I send mail directly with sendmail > either way. I think those entries must be for sendmail. > On the postfix machine I have in /etc/postfix/aliases: > root: arve > This should make all mail to root be delivered to me. Yes, I have root: prh, but postfix still tries to forward mail for root@ to instead of hanging on to it. > It also contains a bunch of aliases that I'm not sure if is necessary: > arve@ arve > arve@.lan arve > arve@.localdomain arve > arve@.lan arve I hadn't thought of doing that. When I tried it, postfix complained "Names must be local" and wouldn't accept my root@ entries. > In /etc/postfix/main.cf there is this, and I assume at least some of > this makes this all work: > myhostname = .lan > inet_interfaces = $myhostname, localhost > mydestination = $myhostname, localhost.$mydomain, localhost, Isn't the same as $myhostname? > mynetworks = 192.168.0.0/24, 127.0.0.0/8 I'll try setting mynetworks and see what happens. Thanks, Arve. -- Regards, Peter.