On 2010/03/23 18:28, Uwe Dippel wrote: > After continuous upgrades of OpenBSD from 4.0 to 4.6, I always issued > the usual > /usr/local/sbin/postfix-enable > This time, it comes back with > can't find /etc/mailer.conf.postfix, postfix not enabled > > Never had this before, and can't find any mailer.conf.postfix on the system. > Yes, I also googled, but there is not much of an indication what went wrong. > On another machine, running 4.5, there is also no such file.
It's probably already enabled, check in /etc/mailer.conf. It used to be necessary to re-enable it after each upgrade but that was fixed (I thought it was before 4.6 though I could be mistaken..). The message from postfix-enable could be improved, maybe like this (*untested*). any comments? Index: snapshot/Makefile =================================================================== RCS file: /cvs/ports/mail/postfix/snapshot/Makefile,v retrieving revision 1.200 diff -u -p -r1.200 Makefile --- snapshot/Makefile 12 Dec 2009 08:35:58 -0000 1.200 +++ snapshot/Makefile 23 Mar 2010 10:58:37 -0000 @@ -1,6 +1,7 @@ # $OpenBSD: Makefile,v 1.200 2009/12/12 08:35:58 jakob Exp $ VERSION= 2.7-20091209 +PATCHLEVEL= 0 MASTER_SITES= ${MASTER_SITE_POSTFIX:=experimental/} Index: snapshot/files/postfix-enable =================================================================== RCS file: /cvs/ports/mail/postfix/snapshot/files/postfix-enable,v retrieving revision 1.5 diff -u -p -r1.5 postfix-enable --- snapshot/files/postfix-enable 5 Jul 2006 06:21:09 -0000 1.5 +++ snapshot/files/postfix-enable 23 Mar 2010 10:58:37 -0000 @@ -1,6 +1,6 @@ #!/bin/sh # -# $OpenBSD: postfix-enable,v 1.5 2006/07/05 06:21:09 jakob Exp $ +# $OpenBSD: postfix-enable,v 1.8 2008/02/01 16:37:53 jakob Exp $ if [ -f /etc/mailer.conf.postfix ]; then if [ -f /etc/mailer.conf ]; then @@ -19,5 +19,9 @@ if [ -f /etc/mailer.conf.postfix ]; then echo "NOTE: do not forget to remove the \"sendmail clientmqueue runner\"" echo " from root's crontab." else - echo "can't find /etc/mailer.conf.postfix, postfix not enabled" + if [ -f /etc/mailer.conf.pre-postfix ]; then + echo "postfix appears to be already enabled, check /etc/mailer.conf" + else + echo "can't find /etc/mailer.conf.postfix, postfix not enabled" + fi fi Index: stable/Makefile =================================================================== RCS file: /cvs/ports/mail/postfix/stable/Makefile,v retrieving revision 1.126 diff -u -p -r1.126 Makefile --- stable/Makefile 29 Aug 2009 21:58:17 -0000 1.126 +++ stable/Makefile 23 Mar 2010 10:58:37 -0000 @@ -1,6 +1,7 @@ # $OpenBSD: Makefile,v 1.126 2009/08/29 21:58:17 sthen Exp $ VERSION= 2.6.5 +PATCHLEVEL= 0 MASTER_SITES= ${MASTER_SITE_POSTFIX:=official/} Index: stable/files/postfix-enable =================================================================== RCS file: /cvs/ports/mail/postfix/stable/files/postfix-enable,v retrieving revision 1.8 diff -u -p -r1.8 postfix-enable --- stable/files/postfix-enable 1 Feb 2008 16:37:53 -0000 1.8 +++ stable/files/postfix-enable 23 Mar 2010 10:58:37 -0000 @@ -19,5 +19,9 @@ if [ -f /etc/mailer.conf.postfix ]; then echo "NOTE: do not forget to remove the \"sendmail clientmqueue runner\"" echo " from root's crontab." else - echo "can't find /etc/mailer.conf.postfix, postfix not enabled" + if [ -f /etc/mailer.conf.pre-postfix ]; then + echo "postfix appears to be already enabled, check /etc/mailer.conf" + else + echo "can't find /etc/mailer.conf.postfix, postfix not enabled" + fi fi