Good point, Viktor. "sendmail" didn't register in my head when I first read that.

Motty,

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
#
sendmail        /usr/local/sbin/sendmail
send-mail       /usr/local/sbin/sendmail
mailq           /usr/local/sbin/sendmail
newaliases      /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[1135]: fatal: open
/etc/postfix-out/main.cf: No such file or directory
Jun 29 08:22:24 host1 postfix/postfix-script[1273]: starting the Postfix
mail system
Jun 29 08:22:24 host1 outgoing/postfix-script[1265]: starting the Postfix
mail system
Jun 29 08:22:24 host1 postfix/master[1276]: daemon started -- version
2.10-20120520, configuration /usr/local/etc/postfix
Jun 29 08:22:24 host1 outgoing/master[1277]: 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!
Motty
-----Original Message-----
From: owner-postfix-us...@postfix.org
[mailto:owner-postfix-us...@postfix.org] On Behalf Of Viktor Dukhovni
Sent: Friday, June 29, 2012 8:20 AM
To: postfix-users@postfix.org
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 MAIL_CONFIG=/etc/postfix-out".

The sendmail(1) command is used to submit messages into the local maildrop
queue, generally the Postfix start script does not do that.



Reply via email to