Hi: after the last cvsup, my FreeBSD 6.0, i386 is not capable to start postfix. I'm using the link in the /usr/local/etc/rc.d/postfix.sh to start the postfix program. Looking in the code, I saw that we need to change this in a file in /usr/local/etc/postfix/postfix-script to have the "faststart" flag.. Someone else find this problem? -- Paniago -- Carlos F. A. Paniago pan@cnptia.embrapa.br http://www.cnptia.embrapa.br/ Fone: +55 (19) 3789-5815
On Thu, Jan 05, 2006 at 12:05:08PM -0200, Carlos Fernando Assis Paniago wrote:> Hi: after the last cvsup, my FreeBSD 6.0, i386 is not capable to start > postfix. I'm using the link in the /usr/local/etc/rc.d/postfix.sh to > start the postfix program. Looking in the code, I saw that we need to > change this in a file in /usr/local/etc/postfix/postfix-script to have > the "faststart" flag.. Someone else find this problem? > > -- > Paniago > > -- > Carlos F. A. Paniago pan@cnptia.embrapa.br > http://www.cnptia.embrapa.br/ Fone: +55 (19) 3789-5815Hello, You have probably merged the mailer.conf when you have done a new world. Look at /etc/mail/mailer.conf if its look like the following lines. # # 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 By the way, my postfix is started at boot in using rc.conf This starts sendmail with the -bd flag who launch postfix sendmail_enable="YES" sendmail_flags="-bd" These lines disables others sendmail daemons sendmail_submit_enable="NO" sendmail_outbound_enable="NO" sendmail_msp_queue_enable="NO" If you want to start postfix after to be log in, just use "postfix start" I hope that help you. Sincerely yours, Ulrich Blondel
Carlos Fernando Assis Paniago wrote:> Hi: after the last cvsup, my FreeBSD 6.0, i386 is not capable to start > postfix. I'm using the link in the /usr/local/etc/rc.d/postfix.sh to > start the postfix program. Looking in the code, I saw that we need to > change this in a file in /usr/local/etc/postfix/postfix-script to have > the "faststart" flag.. Someone else find this problem?The way that it is suggested to start postfix in the pkg-message (by placing a link to /usr/local/sbin/postfix in /usr/local/etc/rc.d) is no longer valid with the new rc.d code in -stable. I've attached a script that works for me to start and stop postfix. Please remove the symlink you have in /usr/local/etc/rc.d now, and put this script in its place. Make sure that the script is executable (chmod 755 /usr/local/etc/rc.d/postfix.sh), then 'echo postfix_enable=yes >> /etc/rc.conf.local' and reboot. Then please let us know for sure that this worked for you. If the maintainer would like help including this in the port, I'd be glad to do so. If you want to create the update yourself, take a look at ports/misc/compat5x to see how to integrate this, or I'd be glad to work on it with you. hth, Doug -- This .signature sanitized for your protection -------------- next part -------------- #!/bin/sh # # $FreeBSD$ # # PROVIDE: postfix # REQUIRE: DAEMON # KEYWORD: shutdown # # Define these postfix_* variables in one of these files: # /etc/rc.conf # /etc/rc.conf.local # /etc/rc.conf.d/postfix # # DO NOT CHANGE THESE DEFAULT VALUES HERE # postfix_enable="${postfix_enable-NO}" . /etc/rc.subr name=postfix rcvar=`set_rcvar` start_cmd=${name}_start stop_cmd=${name}_stop postfix_start() { /usr/local/sbin/postfix start } postfix_stop() { /usr/local/sbin/postfix stop } load_rc_config ${name} run_rc_command "$1"