"Turning off Apple's MTA" after postfix port install
Charlie Allom
yeled at macports.org
Mon Sep 25 22:35:13 PDT 2006
On Mon, Sep 25, 2006 at 10:00:29PM -0700, Mark Duling wrote:
> Charlie Allom <yeled at macports.org> writes:
> >> sudo mv /usr/sbin/sendmail /usr/sbin/sendmail.old
> >> sudo ln -s /opt/local/sbin/sendmail /usr/sbin/sendmail
> >
> >this can be accomplished various ways. I use my $PATH personally.
>
> You mean put MacPorts paths first? I did that and all was well except the
> one thing I needed postfix for. Namely, sending mail with the 'mail'
> executable on the MTA host. I guess 'mail' isn't part of postfix and
> Apple's 'mail' executable must be hardcoded to use /usr/sbin/sendmail
15:08 eris:~% strings /usr/bin/mail|grep sendmail
%*s [- sendmail-options ...]
sendmail
/usr/sbin/sendmail
> I can't find a postfix-watch command. But I suppose it wouldn't matter
> anyway if Apple's LaunchDaemon is removed?
sure
> So would it be ok if I modified the ui_msgs from this:
>
> ui_msg "To get postfix working, you need to copy sample configuration "
> ui_msg "files and to edit them (${prefix}/etc/postfix/*.sample)."
> ui_msg "You may also want to turn your system's MTA off."
>
> to this:
>
> ui_msg "\n
> To get postfix working, you need to copy the sample configuration
> files and edit them (${prefix}/etc/postfix/*.sample). You may also
> want to turn off Apple's built-in MTA. For example, on 10.4:
>
> -Delete /System/Library/LaunchDaemons/org.postfix.master.plist
> -Replace the built-in sendmail file with a symlink to MacPorts' sendmail:
> sudo mv /usr/sbin/sendmail /usr/sbin/sendmail.org
> ln -s ${prefix}local/sbin/sendmail /usr/sbin/sendmail \n"
>
>
go for it.
--
hail eris
http://rubberduck.com/
More information about the macports-dev
mailing list