On 6/27/25 9:22 AM, Robert Moskowitz via users wrote:
I want to create a simple howto for local mail delivery with postfix.
I did a LOT with postfix ~7 years ago, and found many of my notes this
morning.
Thing is that google AI did not show the preferred way to edit main.cf
which is to use "postconf -e 'line'".
Surprised? ;)
Wietse Venema did a fantastic job in constructing postfix and tools to
best maintain it. One does NOT edit main.cf directly. main.cf is
processed in order, thus the last occurrence of a variable setting is
the one used. "postconf -e" does this append to end very nicely.
So I want to start from scratch for all you that want a simple set of
steps for postfix local delivery. But I stepped on my main.cf.
Thus can someone point me to, or send me an unaltered F41 main.cf? My
googling did not find it.
Tangential, but have you looked at:
https://www.server-world.info/en/note?os=Fedora_42&p=mail&f=1
The guy who runs that site does a pretty amazing job of telling you
*what* to do. He doesn't tell you anything about the "why." You will
want to read up on each of the things he tells you to do.
But if you just want to get Postfix up and running, it's very easy to
read along and adapt the steps to your environment. I use postconf -e
for each of the things he says to edit in the main.cf, but you can do it
either way. It makes no difference at all whether you edit the file
manually or use postconf -e. The only that matters is what the postfix
daemon reads when it starts.
I found it pretty useful to get a functioning Postfix server up and
running, then customized it afterwards.
--
Thomas
--
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue