Stuart Henderson wrote:
hmm. it seems like you probably installed the default mailer.conf
from etc46.tgz, overwriting the postfix one.
This is what I call overlap. I had just done my studies, and came out
with exactly the same conclusion.
I guess a number of people use postfix, and mailer.conf shouldn't be
there (Upgrade Guide) in the first place.
Because then, after reboot, incidentally, automagically Sendmail will be
back, while the user thinks it is (still) postfix; or postfix to be
re-enabled. But that's not the case any longer with the more recent
code: enable-postfix tries to shut down postfix and fails:
system(/bin/sh, -c, /usr/local/sbin/postfix stop) failed: exit(1)
Good, now it ought to know that it didn't run. But it is blind to this
fact, and removes all traces of a postfix-mailer:
postfix mailer.conf disabled, old mailer.conf enabled.
The old mailer.conf was the sendmail one, so whatever one does, it
toggles between sendmail and sendmail.
Actually, this is a bit of shoddy programming: assuming that the user
knows what he's running. It is out of sync by one toggle now, and the
mailer.conf of postfix has no handle any longer, respectively is lost.
(I have yet to find out, where the mailer.conf.postfix went, though.)
Does it make sense to check the content of mailer.conf before toggling
forth and back?
Uwe