Re: Sendmail and Postfix

2012-06-23 Thread Alejandro Imass
On Fri, Jun 22, 2012 at 8:15 PM, Robert Bonomi  wrote:
>> From owner-freebsd-questi...@freebsd.org  Fri Jun 22 13:47:20 2012
>> To: freebsd-questions@freebsd.org
>> Date: Fri, 22 Jun 2012 13:41:46 -0500
>> From: Mark Felder 
>> Subject: Re: Sendmail and Postfix
>>
>> When you installed Postfix did you allow it to update the entries in
>> /etc/mail/mailer.conf ? If so, I wouldn't worry about the mailq binary
>> that came with the system; it's ignored.
>
> For SendMail, mailq is just a symlink to the SendMail executable.
>
> the "mail.conf" stuff (to use a polite word) installs it's own executable(s)
> under all the 'common' names that SendMail is invoked as.  These
> executables look at /etc/mailer.conf, and invoke the appropiate executable
> for the mailer that you have seleccted in mailer.conf.
>

mailer.conf is usually modified my the Postfix port and I am not sure
but I think the option is checked by default.

The lines to add to rc.conf to de-activate Sendmail and usu Postfix on
the base system are:

sendmail_enable="NO"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"
postfix_enable="YES"

-- 
Alejandro Imass


> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Sendmail and Postfix

2012-06-22 Thread Robert Bonomi
> From owner-freebsd-questi...@freebsd.org  Fri Jun 22 13:47:20 2012
> To: freebsd-questions@freebsd.org
> Date: Fri, 22 Jun 2012 13:41:46 -0500
> From: Mark Felder 
> Subject: Re: Sendmail and Postfix
>
> When you installed Postfix did you allow it to update the entries in  
> /etc/mail/mailer.conf ? If so, I wouldn't worry about the mailq binary  
> that came with the system; it's ignored.

For SendMail, mailq is just a symlink to the SendMail executable.

the "mail.conf" stuff (to use a polite word) installs it's own executable(s)
under all the 'common' names that SendMail is invoked as.  These
executables look at /etc/mailer.conf, and invoke the appropiate executable
for the mailer that you have seleccted in mailer.conf.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Sendmail and Postfix

2012-06-22 Thread Walter Hurry
On Fri, 22 Jun 2012 13:41:46 -0500, Mark Felder wrote:

> When you installed Postfix did you allow it to update the entries in
> /etc/mail/mailer.conf ? If so, I wouldn't worry about the mailq binary
> that came with the system; it's ignored.

Thanks! (Thanks too to the other responders.)

Looks like that's the step I missed. Fixed now.

Cheers.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Sendmail and Postfix

2012-06-22 Thread Chuck Swiger
Hi--

On Jun 22, 2012, at 11:19 AM, Walter Hurry wrote:
> A little digging around has revealed that there are two 'mailq' 
> executables on my system: /usr/local/bin/mailq and /usr/bin/mailq.
> 
> The first is part of the mail/postfix-current port which I have installed 
> and use, and the second is presumably part of Sendmail, which I have not 
> installed and do not use.
> 
> It seems that Sendmail is embedded somehow in the base system. What is 
> the 'approved' way to get rid of /usr/bin/mailq? Or better, remove 
> Sendmail?

BSD Unixes have shipped with Sendmail for decades, much as BIND is also
included-- so yes, Sendmail is included with the base system by default.

The approved way is to simply leave things be.  Properly written software
will honor the links setup by mailwrapper(8) and use the Postfix MTA which
you installed instead:

  
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/mail-changingmta.html

If you really want to remove sendmail entirely, you can rebuild FreeBSD with

   NO_SENDMAIL=TRUE

...set in /etc/make.conf, which will avoid building sendmail at all.

Regards,
-- 
-Chuck

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Sendmail and Postfix

2012-06-22 Thread Brian W.
During subsequent system upgrades, of you build from source, you should
watch out for thus during the mergemaster piece.

Brian
On Jun 22, 2012 11:44 AM, "Matthew Seaman"  wrote:

> On 22/06/2012 19:19, Walter Hurry wrote:
> > It seems that Sendmail is embedded somehow in the base system. What is
> > the 'approved' way to get rid of /usr/bin/mailq? Or better, remove
> > Sendmail?
>
> You don't need to remove the base system sendmail.  All you need to do
> is set up /etc/mail/mailer.conf properly -- and installing the postfix
> port should do that for you -- and then any reference to
> /usr/sbin/sendmail, /usr/bin/mailq, usr/bin/hoststat etc. will run
> postfix instead.  It's really very nicely done.
>
> See mailer.conf(5)
>
>Cheers,
>
>Matthew
>
> PS. Alright, yes.  You can prevent sendmail from being built as part of
> the base system by defining 'WITHOUT_SENDMAIL=yes' in /etc/src.conf, but
> this supposes that you want to build the system yourself, rather than
> using, say, freebsd-update(8).  See src.conf(5) and read in
> /usr/src/UPDATING and the Handbook about the procedure for building the
> system from source.
>
> --
> Dr Matthew J Seaman MA, D.Phil.
> PGP: http://www.infracaninophile.co.uk/pgpkey
>
>
>
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Sendmail and Postfix

2012-06-22 Thread Mark Felder
When you installed Postfix did you allow it to update the entries in  
/etc/mail/mailer.conf ? If so, I wouldn't worry about the mailq binary  
that came with the system; it's ignored.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Sendmail and Postfix

2012-06-22 Thread Matthew Seaman
On 22/06/2012 19:19, Walter Hurry wrote:
> It seems that Sendmail is embedded somehow in the base system. What is 
> the 'approved' way to get rid of /usr/bin/mailq? Or better, remove 
> Sendmail?

You don't need to remove the base system sendmail.  All you need to do
is set up /etc/mail/mailer.conf properly -- and installing the postfix
port should do that for you -- and then any reference to
/usr/sbin/sendmail, /usr/bin/mailq, usr/bin/hoststat etc. will run
postfix instead.  It's really very nicely done.

See mailer.conf(5)

Cheers,

Matthew

PS. Alright, yes.  You can prevent sendmail from being built as part of
the base system by defining 'WITHOUT_SENDMAIL=yes' in /etc/src.conf, but
this supposes that you want to build the system yourself, rather than
using, say, freebsd-update(8).  See src.conf(5) and read in
/usr/src/UPDATING and the Handbook about the procedure for building the
system from source.

-- 
Dr Matthew J Seaman MA, D.Phil.
PGP: http://www.infracaninophile.co.uk/pgpkey





signature.asc
Description: OpenPGP digital signature