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 4DE0815808B for ; Wed, 14 Feb 2024 11:35:28 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A9BC3E2A28; Wed, 14 Feb 2024 11:35:21 +0000 (UTC) Received: from gw2.antarean.org (gw2.antarean.org [141.105.125.208]) by pigeon.gentoo.org (Postfix) with ESMTP id 1C5EAE2A0A for ; Wed, 14 Feb 2024 11:35:20 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by gw2.antarean.org (Postfix) with ESMTP id 4TZbj36bYDz8sd4 for ; Wed, 14 Feb 2024 11:35:19 +0000 (UTC) X-Virus-Scanned: amavisd-new at antarean.org Received: from gw2.antarean.org ([127.0.0.1]) by localhost (gw2.antarean.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 613Dyhs5vfCS for ; Wed, 14 Feb 2024 11:35:19 +0000 (UTC) Received: from mailstore1.adm.antarean.org (localhost [127.0.0.1]) by gw2.antarean.org (Postfix) with ESMTP id 4TZbj33Q6bz8sYL for ; Wed, 14 Feb 2024 11:35:19 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mailstore1.adm.antarean.org (Postfix) with ESMTP id 4TZbj32VN3z1H for ; Wed, 14 Feb 2024 11:35:19 +0000 (UTC) X-Virus-Scanned: amavisd-new at antarean.org Received: from mailstore1.adm.antarean.org ([127.0.0.1]) by localhost (mailstore1.adm.antarean.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02I6k5QF8tah for ; Wed, 14 Feb 2024 11:35:19 +0000 (UTC) Received: from iris.localnet (iris.adm.antarean.org [10.55.16.47]) by mailstore1.adm.antarean.org (Postfix) with ESMTPA id 4TZbj26r4vz17 for ; Wed, 14 Feb 2024 11:35:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=antarean.org; s=default; t=1707910519; bh=j2C1QM0aENtPE0fz/0CecRdGR2I1ZOw9nLHkF8goo9A=; h=From:To:Subject:Date:In-Reply-To:References; b=WYVuIed7NthLMGIyGvq7qrM/bKClTEwXBDF7la576q8+8Do/Mc/TUiqPinyx3jmsR 2eOYTzKHPhbSI9HKta5VCdhK5GertfY6gewnGztUyXIfa06P/2RWf/f9t5IV75pnjm Bhf2yeL9y63zt8/bMscXgSeAVBDYSgLCT8tO7PVQ= From: "J. Roeleveld" To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Help with local mail, please Date: Wed, 14 Feb 2024 12:35:18 +0100 Message-ID: <4914468.31r3eYUQgx@iris> In-Reply-To: <4880323.GXAFRqVoOG@cube> 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-Archives-Salt: 6859957c-d834-43de-98fe-ed4632b7a965 X-Archives-Hash: 99a26e618363a090769ee4323f99e478 On Tuesday, February 13, 2024 4:52:03 PM CET Peter Humphrey wrote: > Hello list, > > For years, I've been using postfix to accept mail from LAN hosts, and from > the Internet via my ISP. This has never worked as I want it - it's just so > complex to set up and understand. Well, it is for a bear of little brain > like me. > > Can someone tell me how to make postfix accept all mail addressed to any > host or user on the LAN - and not forward any mail to anywhere at all? It's > running on a single-homed host on the LAN, and all other hosts are also > single homed. Any of four hosts can originate mail, and I have fetchmail > running on the same host to collect POP3 mail from my ISP. Dovecot serves > IMAP4 to KMail clients on the LAN. > > At present, postfix is insisting on forwarding mail addressed to root on a > LAN machine, but it's supposed to be acting on behalf of that machine. Two > other hosts' mails never show up anywhere. > > Or perhaps there's a more suitable MTA out there? I've been using postfix for longer than I can remember. The config entries I changed from default are: --- main.cf --- myhostname = mydomain = myorigin = mynetworks = smtpd_relay_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination ------- Also, are all emails sent to "mydomain" or do you have additional domains configured? If the latter, did you set "virtual_alias_domains = hash:/etc/postfix/ virtual_domains" Include all virtual domains the file and converted the file to a .db ? -- Joost