Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Jan 2004 10:29:48 -0600
From:      Joel Gudknecht <joelg@mail1.marathonmultimedia.com>
To:        Andrew Boothman <andrew@cream.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Switch MTA -> Postfix
Message-ID:  <20040116162948.GA2097@mail1.marathonmultimedia.com>
In-Reply-To: <400806DC.1070109@cream.org>
References:  <20040116152533.GA2014@mail1.marathonmultimedia.com> <400806DC.1070109@cream.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jan 16, 2004 at 03:44:28PM +0000, Andrew Boothman wrote:
> Joel Gudknecht wrote:
> >Do the daily/weekly/monthly scripts need a lot of tweaking to still
> >mail reports to root after switching from sendmail to postfix?
> >
> >Are the changes necessary documented anywhere?
> 
> Changing your MTA is documented on 
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/mail-changingmta.html

I've changed the MTA to postfix just fine.
 
> If you're talking about making sure that the normal periodic script 
> reports are emailed back to you: those scripts simply use 
> /usr/sbin/sendmail, which is a mailwrapper(8) which should always point 
> to your actual sendmail binary. The scripts themselves don't need any 
> changes for you to continue to recieve their results.

If I follow the advice from /usr/ports/mail/postfix/pkg-message which states:

-----------------------------------------------------------------------
Also, you will want to disable some Sendmail-specific daily maintenance
 routines in your /etc/periodic.conf file:

daily_clean_hoststat_enable="NO" daily_status_mail_rejects_enable="NO"
daily_status_include_submit_mailq="NO"
daily_submit_queuerun="NO"
--------------------------

The reports stop completely.

> However, some items in those scripts are no longer needed if you move 
> away from sendmail(tm). These are documented in 
> /usr/ports/mail/postfix/pkg-message.

Before I did this I didn't have a periodic.conf at all, relying on the scripts,
which generated these errors:

Jan 16 03:01:01 postfix postfix/sendmail[2177]: fatal: unsupported: -bh
Jan 16 03:01:02 postfix postfix/sendmail[2178]: fatal: unsupported: -bH

Any thoughts?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040116162948.GA2097>