public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: "J. Roeleveld" <joost@antarean.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Help with local mail, please
Date: Wed, 14 Feb 2024 12:35:18 +0100	[thread overview]
Message-ID: <4914468.31r3eYUQgx@iris> (raw)
In-Reply-To: <4880323.GXAFRqVoOG@cube>

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 = <hostname.TLD>
mydomain = <TLD>
myorigin = <TLD>
mynetworks = <full list of local networks, ex. :  192.168.0.0/24, 
192.168.1.0/24>
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




  parent reply	other threads:[~2024-02-14 11:35 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-13 15:52 [gentoo-user] Help with local mail, please Peter Humphrey
2024-02-13 17:20 ` Arve Barsnes
2024-02-13 22:11   ` Peter Humphrey
2024-02-13 22:39     ` Arve Barsnes
2024-02-14 11:35 ` J. Roeleveld [this message]
2024-02-16  5:19   ` Peter Humphrey
2024-02-16 12:30     ` J. Roeleveld
2024-02-16 15:47       ` Peter Humphrey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4914468.31r3eYUQgx@iris \
    --to=joost@antarean.org \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox