Date: Thu, 24 Jul 2003 11:59:03 +0200 From: Simon Barner <barner@in.tum.de> To: freebsd-questions@freebsd.org Subject: Re: Warning about invalid sendmail option at startup Message-ID: <20030724095903.GA482@zi025.glhnet.mhn.de> In-Reply-To: <20030724092023.GA881@anoat.phoenix> References: <20030724092023.GA881@anoat.phoenix>
next in thread | previous in thread | raw e-mail | index | archive | help
--bp/iNruPH9dso1Pn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, > I just replaced sendmail with postfix. Works great, but I get this warnin= g at > boot time (right after starting sshd, though I dont see why it would be > related to ssh): > sendmail: illegal option -- O > sendmail: fatal: usage: sendmail [option] >=20 > So obviously the postfix sendmail replacement program doesn't take the -O > option (whatever this does). I remember having the same message with qmail > before, too. How do I know where this warning comes from so that I can co= rrect > the sendmail invocation? If you installed postfix via the ports collection, there should have been the following message: <quote> If you have postfix configured in your /etc/mail/mailer.conf (answered yes = to the previous question) and would like to enable postfix to start at boot ti= me, please set these variables in your /etc/rc.conf file: sendmail_enable=3D"YES" sendmail_flags=3D"-bd" sendmail_outbound_enable=3D"NO" sendmail_submit_enable=3D"NO" sendmail_msp_queue_enable=3D"NO" This will disable Sendmail completely. Alternatively to the above settings, you can enable postfix to start with the other local services, for example, after your database server starts if you need it to be running for postfix. To do this, set in your rc.conf fil= e: sendmail_enable=3D"NONE" =20 Then make the following symbolic link: cd /usr/local/etc/rc.d ln -s /usr/local/sbin/postfix postfix.sh Also, you will want to disable some Sendmail-specific daily maintenance routines in your /etc/periodic.conf file: daily_clean_hoststat_enable=3D"NO" daily_status_mail_rejects_enable=3D"NO" = =20 daily_status_include_submit_mailq=3D"NO" daily_submit_queuerun=3D"NO" If you are using SASL, you need to make sure that postfix has access to read the sasldb file. This is accomplished by adding postfix to group mail and making the /usr/local/etc/sasldb* file(s) readable by group mail (this shou= ld be the default for new installs). If you are upgrading from postfix version prior to 2.0, please see the READ= ME files for recommended changes to your configuration. </quote> I think theses instructions should stop postfix complaining about invalid options. Cheers, Simon --bp/iNruPH9dso1Pn Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE/H63nCkn+/eutqCoRAh1tAKCmpoBukwqbPmShW7QTTTbCH45osQCgpUyj zimqvXz50yu5GkV+DXa3rzI= =U7gj -----END PGP SIGNATURE----- --bp/iNruPH9dso1Pn--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030724095903.GA482>
