PDA

View Full Version : Disable sendmail on boot


jemate18
January 28th, 2009, 13:35
On bootstrap, sendmail keeps me waiting for 10 to 20 seconds and flushes the message unqualified hostname ..... ..

How do I disable the sendmail?

I remember disabling it once in solaris 10 by using
svcadm disable sendmail

How do I do it in FreeBSD. Thanks again...

Follow up, if I disable sendmail, will all the mail function be disabled? like the mailing of info to root and other stuff?

DutchDaemon
January 28th, 2009, 13:40
In rc.conf:
sendmail_submit_enable="NO" # Start a localhost-only MTA for mail submission
sendmail_outbound_enable="NO" # Dequeue stuck mail (YES/NO).
sendmail_msp_queue_enable="NO" # Dequeue stuck clientmqueue mail (YES/NO).

You won't receive system mail. Better give your server a hostname and put it in /etc/hosts.

Nightweaver
January 28th, 2009, 13:40
Just add:

sendmail_enable="NONE"
sendmail_msp_queue_enable="NO"
sendmail_outbound_enable="NO"
sendmail_submit_enable="NO"

to /etc/rc.conf.

Mail function should work OK as far as I know.:)

DutchDaemon
January 28th, 2009, 13:42
I don't think so, because system mail gets offered to 127.0.0.1 for further delivery. And Sendmail won't be there to handle it.

jemate18
January 28th, 2009, 13:47
in my /etc/hosts
127.0.0.1 mybsd

and still on bootstrap, sendmail says unqualified hostname

DutchDaemon
January 28th, 2009, 13:50
It needs a fully qualified hostname, like mybsd.my.domain or mybsd.domain.local.

jemate18
January 28th, 2009, 14:01
I have just restarted and no more unqualified error. I have added mybsd.my.domain in my /etc/hosts and retaining the system mail to active mode

Thanks again [solved]