How to get rid of sendmail

How to get rid of sendmail

Post by Johannes Tot » Thu, 18 Jul 2002 23:43:18



How can I get rid of sendmail?
In rc.conf I set sendmail_enable="NONE" but it always tries to start and
prints messages to the console about unqualified domain names.

TIA
Johannes

 
 
 

How to get rid of sendmail

Post by Dave Peacoc » Fri, 19 Jul 2002 00:01:41



> How can I get rid of sendmail?
> In rc.conf I set sendmail_enable="NONE" but it always tries to start and
> prints messages to the console about unqualified domain names.

> TIA
> Johannes

Try sendmail_enable="NO" :-)

 
 
 

How to get rid of sendmail

Post by Stefan Walte » Fri, 19 Jul 2002 00:18:01


Johannes Totz maltr?tierte seine Tastatur mit:

Quote:> How can I get rid of sendmail?

grep sendmail /etc/defaults/rc.conf | grep YES | \
sed "s/YES/NO/g" >> /etc/rc.conf

Stefan
--
No reading beyond this point

 
 
 

How to get rid of sendmail

Post by Stefan Walte » Fri, 19 Jul 2002 00:36:57


Ich maltr?tierte meine Tastatur mit:

Quote:>> How can I get rid of sendmail?

> grep sendmail /etc/defaults/rc.conf | grep YES | \
> sed "s/YES/NO/g" >> /etc/rc.conf

Ahem, sorry...at least if you don't care about the comments. And the
second grep is obsolete.

Stefan
--
No reading beyond this point

 
 
 

How to get rid of sendmail

Post by Stefan Walte » Fri, 19 Jul 2002 00:48:34


Ich maltr?tierte meine Tastatur mit:

Quote:>> How can I get rid of sendmail?

> grep sendmail /etc/defaults/rc.conf | grep YES | \
> sed "s/YES/NO/g" >> /etc/rc.conf

Ahem, sorry...make that
grep sendmail /etc/defaults/rc.conf | sed "s/YES/NO/"

Stefan
--
No reading beyond this point

 
 
 

How to get rid of sendmail

Post by Alex Smit » Fri, 19 Jul 2002 08:43:20


put this in your rc.conf and stop sendmail dead in its tracks.
mta_start_script=""

> How can I get rid of sendmail?
> In rc.conf I set sendmail_enable="NONE" but it always tries to start and
> prints messages to the console about unqualified domain names.

> TIA
> Johannes

 
 
 

How to get rid of sendmail

Post by Robert Suetterlin From » Fri, 19 Jul 2002 16:59:27


Hello!

What version of FreeBSD are You running?  I.e. do You already have
/etc/rc and /etc/rc.sendmail scripts that check for mta_start_script or
sendmail_enable?

If You have these, then what You did --- setting /etc/rc.conf
sendmail_enable="NONE" --- must do the job.  In addition
mta_start_script="" (as proposed before in this thread) must also do
what You want.

Regards, Robert S.

P.S.:  Perhaps You should reconsider disabling Your MTA completely,
maybe sendmail_enable="NO" would be better, depending on what You really
want to achieve.
--

phone: (+49)89 / 30000-3546   fax: (+49)89 / 30000-3950

 
 
 

How to get rid of sendmail

Post by Johannes Tot » Fri, 19 Jul 2002 19:21:19


Thanks all!

mta_start_script="" and sendmail_enable="NONE" did the trick.

Johannes

 
 
 

How to get rid of sendmail

Post by newbi » Fri, 19 Jul 2002 20:05:42



Quote:> Try sendmail_enable="NO" :-)

AFAIK "NONE" is for 4.6 and "NO" is for freebsd 4.5 and below. Am I right ?
 
 
 

How to get rid of sendmail

Post by mic.. » Fri, 19 Jul 2002 22:06:32





>> Try sendmail_enable="NO" :-)
> AFAIK "NONE" is for 4.6 and "NO" is for freebsd 4.5 and below. Am I right ?

I  think you are right. In 4.6 sendmail is no more suid to root. Hence
two copies of sendmail are running, the one listening on port 25 being
non privileged. There are two mail queues, two config files and so on.
If you put sendmail=NO the copy listening on external world does not run
but the copy listening on localhost still runs to deliver local mail,
such as produced by the security scripts. With NONE, sendmail does not
run at all, and this is the strange thing since the previous poster claimed
to have sendmail running in this case. In any case sendmail=NONE should be
used only if another MTA like postfix is running, otherwise local mail
will have problem. In fact with postfix there are several programs, one
listens on port 25 and can be disabled, the other does address rewriting,
etc. Hence it is very easy to tailor postfix to particular needs, and to
have non suid programs, while for sendmail they have to run 2 copies.
Personnally i have encountered problems running sendmail via uucp in the
new setting, and have been obliged to return to old setting. Perhaps
this is because i have not understood the correct config of the mail
submission agent in this case.

--
Michel Talon

 
 
 

How to get rid of sendmail

Post by Johannes Tot » Sat, 20 Jul 2002 08:00:00


Quote:> With NONE, sendmail
> does not run at all, and this is the strange thing since the previous
> poster claimed to have sendmail running in this case.

Yes, it always tried to start up. I'm using FreeBSD 4.6 and this box is
just a firewall with natd. There's no need to run sendmail and I wondered
how it can be started despite I disbled it.

Now, mta_start_script="" and sendmail_enable="NONE" disabled it completely
(at least I hope).

Johannes

 
 
 

1. Getting rid of sendmail syslog entries

I can't figure out how to get rid of all the sendmail log entries in my
sylog file.  I've tried adding the entries mail.none and sendmail.none to
my /etc/syslog.conf file put the sendmail send and receive entries still
keep popping up.  Any clues?  
Examples would be much appreciated.  Thanks

--
-------------------------

2. DLT-device troubles

3. Newbie question. Getting rid of Sendmail

4. sendmail.cf question

5. Solaris v7, sendmail, and getting rid of hostname..

6. SMC EtherPower II Drivers for OSR5

7. !!Getting rid of auto start programs at start/Dialing up freeserve!!

8. getting rid of 'Lame server on ...' messages

9. Getting Rid of LILO

10. Newbe: Help getting rid of lilo on 98 disk....

11. Getting rid of "F?" prompt on system boot?

12. Getting rid of cores?