Re: migrating 2.1 to 3.x ?

2017-08-10 Thread Voytek
On Thu, August 10, 2017 6:33 pm, Peter wrote:
> On 10/08/17 16:51, Voytek wrote:

>> mail_version = 2.11.0
>
> This is not the stock postfix for CentOS 6, so if you want to upgrade it
> on the same server you might want to check where the current postfix came
> from.  How it got there has to do with what you need to do to remove it.

Peter, thanks

I think... I've used Simon J Mudd's pages to compile, well, copy'n'paste
from his website relevant lines.

but, all in all, I think a new 'C7' server etc is a better way forward

thanks, I'll undoubtedly be asking more questions.


Voytek



Re: migrating 2.1 to 3.x ?

2017-08-10 Thread Peter
On 10/08/17 16:51, Voytek wrote:
> I currently have Postfix 2.11 /MySQL on Centos 6, looking at migrating to
> current Postfix.
> 
> current server:
> CentOS release 6.x
> mail_version = 2.11.0

This is not the stock postfix for CentOS 6, so if you want to upgrade it
on the same server you might want to check where the current postfix
came from.  How it got there has to do with what you need to do to
remove it.

Do note that GhettoForge does supply the latest postfix packages for
both CentOS 6 and 7, so if you want to just upgrade postfix on the
current server that is an option.

> new server:
> CentOS 7.3
> mail_version = 2.10.1
> 
> reading some of the ML posts: is ghettoforge the way to do it ?

That is my recommendation.  I build the GhettoForge packages myself so I
can vouch for them.

> http://ghettoforge.org/index.php/Postfix
> 
> what can or should I do with current main.cf ? master.cf

You can keep them.  postfix 2.11.0 config will actually work with
postfix 3.2.2 without any changes if you want.  The only thing you will
notice are compatibility_level warnings in the log.  To get rid of those
warnings you can follow the instructions in the COMPATIBILITY_README, or
the simplified instructions on the GhettoForge wiki page you linked to
above.

> the idea is to set new server with Postfix 3, have both running till all done
> 
> thanks for all the pointers and help
> 
> V
> (current)
> postconf -m
> 
...

It looks like you have a postfix built with most or all of the table
types compiled in.  Postfix 2.11 did not have dynamic map support so it
had to be compiled from the start with the table types that you wanted
supported.  Starting with postfix 3.0 packagers are able to separate out
many of the map types into separate packages and that is what
GhettoForge has done, so you have packages such as postfix3-mysql,
postfix3-pgsql, etc, and you just install the packages for the map types
you want in addition to the postfix-3 package.

I would encourage you to look through your main.cf and master.cf files
(or the output of postconf -nf and postconf -Mf) and come up with a list
of map types you actually use, then install those map types along with
the postfix3 package from GhettoForge.  The advantage of not installing
other map types is you don't have to install packages for the supporting
libraries of map types you don't use, for example if you install
postfix3-pgsql then you end up having to install postgresql-libs as well
as a dependency, but this is not necessary if you don't need postgresql
support.

If you need any additional help I am happy to answer questions on this
list, or you can reach me at the #postfix or #ghettoforge Freenode IRC
channels.


Peter