Re: wrong postfix binary
Greg Troxel <[email protected]>
| Newsgroups | gmane.os.netbsd.help |
|---|---|
| Message-ID | <[email protected]> |
Arne Kaiser <[email protected]> writes: >> Martti Kuparinen wrote: >> >>> # cat /etc/rc.conf.d/postfix >>> >>> required_files='/usr/pkg/etc/postfix/main.cf' >>> start_cmd='/usr/pkg/sbin/postfix start' >>> stop_cmd='/usr/pkg/sbin/postfix stop' >>> reload_cmd='/usr/pkg/sbin/postfix reload' Make sure you have postfix_command="/usr/pkg/sbin/${name}" Read /etc/rc.d/postfix to understand how it uses the variables. >> # cat /etc/mailer.conf >> >> sendmail /usr/pkg/sbin/sendmail >> send-mail /usr/pkg/sbin/sendmail >> mailq /usr/pkg/sbin/sendmail >> newaliases /usr/pkg/sbin/sendmail > strange, the /etc/mailer.conf and the /etc/rc.conf/postfix are exactly like > yours, but postfix is still starting from the wrong startscript with the > wrong binary and the wrong config. Is it possible that the new defaults work > only after a reboot (I tried only postfix reload so far)? Yes, the rc.conf stuff only happens at boot. /etc/rc.d/postfix restart (not reload, and using the rc.d script) probably will start the new postfix, but you perhaps should "/usr/sbin/postfix stop". (In general you should be rebooting to verify that it comes up right on boot anyway.)
signature.asc
(application/pgp-signature, 185 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (NetBSD) iD8DBQFGk9dN+vesoDJhHiURAo1XAJ4sK5Ltz6iyOfgkevmKtZyP6sIQ/ACeJdlN 0+tLGH7xkJ/+fGGb7z5fI48= =yRMn -----END PGP SIGNATURE-----