RE: 2instances Postfix on FreeBSD 9
- Thanks for all your help! I copied script to /usr/local/etc/rc.d/mailout.sh
And forgot to update to /usr/local/etc/postfix-out
It was invoking the /etc/postfix-out
My fault, I overlook at the script. I'm sorry!
Thanks for your help!
From: Rod K [mailto:postfix@...]
Sent: Friday, June 29, 2012 8:43 AM
Subject: Re: 2instances Postfix on FreeBSD 9
Good point, Viktor. "sendmail" didn't register in my head when I first read
It is NOT postfix calling sendmail as it is called before either postfix
instance start script is called.
Search your logs for other errors like that. I bet you'll find a few.
My theory is that something else is calling sendmail. If you installed both
instances from ports you installed postfix-sendmail twice. I imagine that
what's happening is that you installed Postfix2 second and gave it an
alternate install directory from standard Postfix. This would have
overridden /etc/mail/mailer.conf with the alternate locations.
Check /etc/mail/mailer.conf to ensure it looks like this:
# Execute the Postfix sendmail program, named /usr/local/sbin/sendmail #
On 6/29/2012 11:34 AM, motty.cruz wrote:
> I can't think of any shell script that invokes that setting; below the
> beginning of the logs:
> Jun 29 08:22:23 host1 postfix/sendmail: fatal: open
> /etc/postfix-out/main.cf: No such file or directory Jun 29 08:22:24
> host1 postfix/postfix-script: starting the Postfix mail system
> Jun 29 08:22:24 host1 outgoing/postfix-script: starting the
> Postfix mail system Jun 29 08:22:24 host1 postfix/master: daemon
> started -- version 2.10-20120520, configuration /usr/local/etc/postfix
> Jun 29 08:22:24 host1 outgoing/master: daemon started -- version
> 2.10-20120520, configuration /usr/local/etc/postfix-out
> As you can see the scripts is the only problem, I'm afriad to put in
> production and other issue may came up later.
> Thanks for your help!
> -----Original Message-----
> From: owner-postfix-users@...
> [mailto:owner-postfix-users@...] On Behalf Of Viktor Dukhovni
> Sent: Friday, June 29, 2012 8:20 AM
> To: postfix-users@...
> Subject: Re: 2instances Postfix on FreeBSD 9
> On Fri, Jun 29, 2012 at 11:16:11AM -0400, Rod K wrote:
>> It would probably be in the startup script in /usr/local/etc/rc.d
> It seems unlikely that the Postfix start-up script would explicity try
> to send email via a secondary Postfix instance. Perhaps some other
> init script or shell script it invokes has "export
> The sendmail(1) command is used to submit messages into the local
> maildrop queue, generally the Postfix start script does not do that.
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2012.0.2180 / Virus Database: 2437/5100 - Release Date: 06/29/12