Re: Newbie question - main.cf.proto

2021-12-06 Thread Benny Pedersen

On 2021-12-06 21:25, Scott Kitterman wrote:


When you installed the package you selected "No configuration", so
it's not particularly surprising you have no configuration.  Use
dpkg-reconfigure postfix and pick a different option for configuration
and you will have a main.cf.  Internet Site is probably the most
useful for a starting place.


postfix runs fine if it have a main.cf complete empty, it will then just 
use all default settings from postconf-d as all default, no need imho to 
add non default lines if default is ok


i dont understand why so many makes mistakes on this :/


Re: Newbie question - main.cf.proto

2021-12-06 Thread Viktor Dukhovni
On Mon, Dec 06, 2021 at 03:18:11PM -0500, Herndon Elliott wrote:

> I am just getting started with trying to install postifx and get it running
> on a single Ubuntu 18.04 server.  The documentation talks at length about
> changes to be made in "/etc/postfix/main.cf" file, but there is no such
> file in my install.  I have a main.cf.proto, but no main.cf  The only
> mention I can find the documentation of these files is " multi-instance
> template files "
> 
> So am I supposed to rename (or better yet, copy) main.cf.proto as main.cf
> before making the changes to it??
> 
> The installation instructions certainly could be a bit more explicit about
> this for a beginner

The lack of a main.cf file is a choice made by the O/S distribution.
When installing the package, you must have opted for "no configuration",
rather than a specific configuration (local only, inbound server, ...).

The upstream "make install", when building Postfix from source does
create a main.cf file.

So your issue is with Ubuntu/Debian, not Postfix.

That said, yes, create a "main.cf" file that meets your needs.  You can
start with an empty file, or a copy of "main.cf.proto".

Personally, I always start with empty files, but I'm already quite
familiar with the options I want to set, and prefer to avoid the clutter
of all the comments, that for me obscure the big picture.  For you the
comment blocks for each of the common settings may be more helpful.

-- 
Viktor.


Re: Newbie question - main.cf.proto

2021-12-06 Thread Scott Kitterman



On December 6, 2021 8:18:11 PM UTC, Herndon Elliott  
wrote:
>I am just getting started with trying to install postifx and get it running
>on a single Ubuntu 18.04 server.  The documentation talks at length about
>changes to be made in "/etc/postfix/main.cf" file, but there is no such
>file in my install.  I have a main.cf.proto, but no main.cf  The only
>mention I can find the documentation of these files is " multi-instance
>template files "
>
>So am I supposed to rename (or better yet, copy) main.cf.proto as main.cf
>before making the changes to it??
>
>The installation instructions certainly could be a bit more explicit about
>this for a beginner

When you installed the package you selected "No configuration", so it's not 
particularly surprising you have no configuration.  Use dpkg-reconfigure 
postfix and pick a different option for configuration and you will have a 
main.cf.  Internet Site is probably the most useful for a starting place.

Scott K


Newbie question - main.cf.proto

2021-12-06 Thread Herndon Elliott
I am just getting started with trying to install postifx and get it running
on a single Ubuntu 18.04 server.  The documentation talks at length about
changes to be made in "/etc/postfix/main.cf" file, but there is no such
file in my install.  I have a main.cf.proto, but no main.cf  The only
mention I can find the documentation of these files is " multi-instance
template files "

So am I supposed to rename (or better yet, copy) main.cf.proto as main.cf
before making the changes to it??

The installation instructions certainly could be a bit more explicit about
this for a beginner

Thanks in advance.

Herndon Elliott
"If the truth shall kill them, let them die."  -- Ayn Rand
ΜΟΛΩΝ ΛΑΒΕ  "molon labe"