Uwe Dippel wrote:
On Tue, Mar 23, 2010 at 6:59 PM, Stuart Henderson <s...@spacehopper.org> wrote:
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..).

No, alas not:
$ telnet 127.0.0.1 25
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
220 coit.uniten.edu.my ESMTP Sendmail 8.14.3/8.14.3; Tue, 23 Mar 2010
19:11:13 +0800 (SGT)

Please, check the error message in the install message:
--- postfix-2.5.6 -------------------
system(/bin/sh, -c, /usr/local/sbin/postfix stop) failed:  exit(1)

How to recover from here?
(I have no idea, why the postfix stop failed! It has always been
running as long as the system was 4.5)

Uwe

Next step also failed:

I tried postfix-disable (even though it was not active), which went through; followed by postfix-enable, which also went through this time, as always before.
I rebooted to make sure, and what I get is - sendmail!

It seems to be bastardly stubborn at keeping its place in 4.6, at least here.

Which is now the suggested, and clean and sustainable version to tell sendmail to p*** off; please?

These are the commands run *after* the first reboot:
# /usr/local/sbin/postfix status
postfix/postfix-script: the Postfix mail system is not running
# /usr/local/sbin/postfix start postfix/postfix-script: starting the Postfix mail system
# /usr/local/sbin/postfix status
postfix/postfix-script: the Postfix mail system is not running
# /usr/local/sbin/postfix-enable
can't find /etc/mailer.conf.postfix, postfix not enabled
# /usr/local/sbin/postfix-disable
postfix mailer.conf disabled, old mailer.conf enabled
# /usr/local/sbin/postfix-enable old /etc/mailer.conf saved as /etc/mailer.conf.pre-postfix
postfix /etc/mailer.conf enabled

NOTE: do not forget to add sendmail_flags="-bd" to
     /etc/rc.conf.local to startup postfix correctly.

NOTE: do not forget to add "-a /var/spool/postfix/dev/log" to
     syslogd_flags in /etc/rc.conf.local and restart syslogd.

NOTE: do not forget to remove the "sendmail clientmqueue runner"
     from root's crontab.
# /usr/local/sbin/postfix status postfix/postfix-script: the Postfix mail system is not running # /usr/local/sbin/postfix start postfix/postfix-script: starting the Postfix mail system
# /usr/local/sbin/postfix status
postfix/postfix-script: the Postfix mail system is not running
# less /var/log/maillog
...
postfix/master[25923]: fatal: bind 0.0.0.0 port 25: Address already in use
...

No surprises here.

/etc/rc.conf.local looks okay as well:
...
# we want sendmail to accept mail from the Internet: no, we sit on postfix !
#sendmail_flags="-L sm-mta -bd -q30m"

# postfix wants other flags:
sendmail_flags="-bd"

# postfix needs its own syslogd flags
syslogd_flags="-a /var/spool/postfix/dev/log"


Uwe

Reply via email to