Postfix upgrade preserving old features

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Postfix upgrade preserving old features

Scappatura Rocco
Hello,

I have a Postfix+MySQL+Courier-IMAP Postoffice platform.

The version of Postfix used is 2.1.4. I'ld like  to upgrade it to the
latest stable version.

I would like to preserve old features. But I don't remeber exactly how I
have set up AUXLIBS and CCARGS. Neverthless I know their setting are
still valids for latest version of postfix.

Could someone gime some hint on how to upgrade postfix preserving the
exact features of the version actuelly installed?

TIA,

rocsca
Reply | Threaded
Open this post in threaded view
|

Re: Postfix upgrade preserving old features

Wietse Venema
Rocco Scappatura:

> Hello,
>
> I have a Postfix+MySQL+Courier-IMAP Postoffice platform.
>
> The version of Postfix used is 2.1.4. I'ld like  to upgrade it to the
> latest stable version.
>
> I would like to preserve old features. But I don't remeber exactly how I
> have set up AUXLIBS and CCARGS. Neverthless I know their setting are
> still valids for latest version of postfix.

Postfix installs this information in /etc/postfix/makedefs.out
(this file may be in a different place, or it may be deleted, when
you got your Postfix via someone else).

> Could someone gime some hint on how to upgrade postfix preserving the
> exact features of the version actuelly installed?

You can cut-and-paste the value on the right-hand side of the
"EXPORT =" line in that file. It is in shell syntax.

$ make makefiles AUXLIBS='...' CCARGS='...' OPT='...' DEBUG='...'
$ make
# make upgrade

        Wietse


Reply | Threaded
Open this post in threaded view
|

RE: Postfix upgrade preserving old features

Scappatura Rocco
> > I have a Postfix+MySQL+Courier-IMAP Postoffice platform.
> >
> > The version of Postfix used is 2.1.4. I'ld like  to upgrade
> it to the
> > latest stable version.
> >
> > I would like to preserve old features. But I don't remeber
> exactly how
> > I have set up AUXLIBS and CCARGS. Neverthless I know their
> setting are
> > still valids for latest version of postfix.
>
> Postfix installs this information in
> /etc/postfix/makedefs.out (this file may be in a different
> place, or it may be deleted, when you got your Postfix via
> someone else).
>
> > Could someone gime some hint on how to upgrade postfix
> preserving the
> > exact features of the version actuelly installed?
>
> You can cut-and-paste the value on the right-hand side of the
> "EXPORT =" line in that file. It is in shell syntax.
>
> $ make makefiles AUXLIBS='...' CCARGS='...' OPT='...' DEBUG='...'
> $ make
> # make upgrade

Great!!

Thanks,

rocsca
Reply | Threaded
Open this post in threaded view
|

RE: Postfix upgrade preserving old features

Scappatura Rocco
> > > I have a Postfix+MySQL+Courier-IMAP Postoffice platform.

> > >
> > > The version of Postfix used is 2.1.4. I'ld like  to upgrade
> > it to the
> > > latest stable version.
> > >
> > > I would like to preserve old features. But I don't remeber
> > exactly how
> > > I have set up AUXLIBS and CCARGS. Neverthless I know their
> > setting are
> > > still valids for latest version of postfix.
> >
> > Postfix installs this information in
> > /etc/postfix/makedefs.out (this file may be in a different
> place, or
> > it may be deleted, when you got your Postfix via someone else).
> >
> > > Could someone gime some hint on how to upgrade postfix
> > preserving the
> > > exact features of the version actuelly installed?
> >
> > You can cut-and-paste the value on the right-hand side of
> the "EXPORT
> > =" line in that file. It is in shell syntax.
> >
> > $ make makefiles AUXLIBS='...' CCARGS='...' OPT='...' DEBUG='...'
> > $ make
> > # make upgrade
Sorry again list.

At the time since I have installed Postfix, I have patched Postfix with
the attacched patch. Is it still necessary? In case, where could I get
it the version for the latest stable version of Postfix?

rocsca

postfix-2.1.4-trash.patch (36K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

RE: Postfix upgrade preserving old features

Scappatura Rocco
 

> > > > I have a Postfix+MySQL+Courier-IMAP Postoffice platform.
> > > >
> > > > The version of Postfix used is 2.1.4. I'ld like  to upgrade
> > > it to the
> > > > latest stable version.
> > > >
> > > > I would like to preserve old features. But I don't remeber
> > > exactly how
> > > > I have set up AUXLIBS and CCARGS. Neverthless I know their
> > > setting are
> > > > still valids for latest version of postfix.
> > >
> > > Postfix installs this information in
> /etc/postfix/makedefs.out (this
> > > file may be in a different
> > place, or
> > > it may be deleted, when you got your Postfix via someone else).
> > >
> > > > Could someone gime some hint on how to upgrade postfix
> > > preserving the
> > > > exact features of the version actuelly installed?
> > >
> > > You can cut-and-paste the value on the right-hand side of
> > the "EXPORT
> > > =" line in that file. It is in shell syntax.
> > >
> > > $ make makefiles AUXLIBS='...' CCARGS='...' OPT='...' DEBUG='...'
> > > $ make
> > > # make upgrade

After upgrading I get the folowing errors:

Jun 13 16:25:32 mail4 postfix/postdrop[16620]: warning:
mail_queue_enter: create file maildrop/373018.16620: Permission denied
Jun 13 16:25:42 mail4 postfix/postdrop[16620]: warning:
mail_queue_enter: create file maildrop/372019.16620: Permission denied
Jun 13 16:25:52 mail4 postfix/postdrop[16620]: warning:
mail_queue_enter: create file maildrop/372019.16620: Permission denied
Jun 13 16:26:02 mail4 postfix/postdrop[16620]: warning:
mail_queue_enter: create file maildrop/371219.16620: Permission denied
Jun 13 16:26:12 mail4 postfix/postdrop[16620]: warning:
mail_queue_enter: create file maildrop/370636.16620: Permission denied

Note that I never used postdrop. How could I suppress these errors?

rocsca

Reply | Threaded
Open this post in threaded view
|

Re: Postfix upgrade preserving old features

Victor Duchovni
On Fri, Jun 13, 2008 at 04:28:35PM +0200, Rocco Scappatura wrote:

>  
> > > > > I have a Postfix+MySQL+Courier-IMAP Postoffice platform.
> > > > >
> > > > > The version of Postfix used is 2.1.4. I'ld like  to upgrade
> > > > it to the
> > > > > latest stable version.
> > > > >
> > > > > I would like to preserve old features. But I don't remeber
> > > > exactly how
> > > > > I have set up AUXLIBS and CCARGS. Neverthless I know their
> > > > setting are
> > > > > still valids for latest version of postfix.
> > > >
> > > > Postfix installs this information in
> > /etc/postfix/makedefs.out (this
> > > > file may be in a different
> > > place, or
> > > > it may be deleted, when you got your Postfix via someone else).
> > > >
> > > > > Could someone gime some hint on how to upgrade postfix
> > > > preserving the
> > > > > exact features of the version actuelly installed?
> > > >
> > > > You can cut-and-paste the value on the right-hand side of
> > > the "EXPORT
> > > > =" line in that file. It is in shell syntax.
> > > >
> > > > $ make makefiles AUXLIBS='...' CCARGS='...' OPT='...' DEBUG='...'
> > > > $ make
> > > > # make upgrade
>
> After upgrading I get the folowing errors:
>
> Jun 13 16:25:32 mail4 postfix/postdrop[16620]: warning:
> mail_queue_enter: create file maildrop/373018.16620: Permission denied
> Jun 13 16:25:42 mail4 postfix/postdrop[16620]: warning:
> mail_queue_enter: create file maildrop/372019.16620: Permission denied
> Jun 13 16:25:52 mail4 postfix/postdrop[16620]: warning:
> mail_queue_enter: create file maildrop/372019.16620: Permission denied
> Jun 13 16:26:02 mail4 postfix/postdrop[16620]: warning:
> mail_queue_enter: create file maildrop/371219.16620: Permission denied
> Jun 13 16:26:12 mail4 postfix/postdrop[16620]: warning:
> mail_queue_enter: create file maildrop/370636.16620: Permission denied
>
> Note that I never used postdrop. How could I suppress these errors?

You have, it is called by sendmail(1) to do the actual work of creating
the maildrop queue file. You just never knew you used it.

Run "postfix set-permissions". This should have happened when you
ran "postfix upgrade". Make sure that "postdrop" is setgid to the
right group.

--
        Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.

To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:[hidden email]?body=unsubscribe%20postfix-users>

If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.
Reply | Threaded
Open this post in threaded view
|

RE: Postfix upgrade preserving old features

Scappatura Rocco
> > After upgrading I get the folowing errors:
> >
> > Jun 13 16:25:32 mail4 postfix/postdrop[16620]: warning:
> > mail_queue_enter: create file maildrop/373018.16620:
> Permission denied
> > Jun 13 16:25:42 mail4 postfix/postdrop[16620]: warning:
> > mail_queue_enter: create file maildrop/372019.16620:
> Permission denied
> > Jun 13 16:25:52 mail4 postfix/postdrop[16620]: warning:
> > mail_queue_enter: create file maildrop/372019.16620:
> Permission denied
> > Jun 13 16:26:02 mail4 postfix/postdrop[16620]: warning:
> > mail_queue_enter: create file maildrop/371219.16620:
> Permission denied
> > Jun 13 16:26:12 mail4 postfix/postdrop[16620]: warning:
> > mail_queue_enter: create file maildrop/370636.16620:
> Permission denied
> >
> > Note that I never used postdrop. How could I suppress these errors?
>
> You have, it is called by sendmail(1) to do the actual work
> of creating the maildrop queue file. You just never knew you used it.
>
> Run "postfix set-permissions". This should have happened when
> you ran "postfix upgrade". Make sure that "postdrop" is
> setgid to the right group.

I already did.. Anyway, it was an old istance of postdrop that tried to
write in some place where it couldn't..

So:

# rcpostfix stop
# killall postdrop
# rcpostifix start

solved the issue..

thanks,

rocsca
Reply | Threaded
Open this post in threaded view
|

Re: Postfix upgrade preserving old features

Victor Duchovni
On Fri, Jun 13, 2008 at 05:16:44PM +0200, Rocco Scappatura wrote:

> > > After upgrading I get the folowing errors:
> > >
> > > Jun 13 16:25:32 mail4 postfix/postdrop[16620]: warning:
> > > mail_queue_enter: create file maildrop/373018.16620:
> > Permission denied
> > > Jun 13 16:25:42 mail4 postfix/postdrop[16620]: warning:
> > > mail_queue_enter: create file maildrop/372019.16620:
> > Permission denied
> > > Jun 13 16:25:52 mail4 postfix/postdrop[16620]: warning:
> > > mail_queue_enter: create file maildrop/372019.16620:
> > Permission denied
> > > Jun 13 16:26:02 mail4 postfix/postdrop[16620]: warning:
> > > mail_queue_enter: create file maildrop/371219.16620:
> > Permission denied
> > > Jun 13 16:26:12 mail4 postfix/postdrop[16620]: warning:
> > > mail_queue_enter: create file maildrop/370636.16620:
> > Permission denied
> > >
> > > Note that I never used postdrop. How could I suppress these errors?
> >
> > You have, it is called by sendmail(1) to do the actual work
> > of creating the maildrop queue file. You just never knew you used it.
> >
> > Run "postfix set-permissions". This should have happened when
> > you ran "postfix upgrade". Make sure that "postdrop" is
> > setgid to the right group.
>
> I already did.. Anyway, it was an old istance of postdrop that tried to
> write in some place where it couldn't..
>
> So:
>
> # rcpostfix stop
> # killall postdrop
> # rcpostifix start
>
> solved the issue..

The "postdrop" program is not a daemon, but perhaps postdrop was running
while you were upgrading and you changed the mail_owner user or your
old postdrop was not setgid.... Postdrop does try to open the output
file every 10 seconds hoping it will work next time...

--
        Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.

To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:[hidden email]?body=unsubscribe%20postfix-users>

If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.