1838250 Members
4697 Online
110125 Solutions
New Discussion

Re: No inbound mails

 
SOLVED
Go to solution
Joey Sta. Cruz III
Occasional Contributor

No inbound mails

Hi,

Would anyone know how to configure sendmail not to accept inbound mails aside from removing entry on the aliases file.

We have one machine here that we want to perform outbound mails only and no inbound mails.

Any help would be greatly appreciated.
Thanks
Joey
5 REPLIES 5
Craig Rants
Honored Contributor
Solution

Re: No inbound mails

Joey,
You can turn it off and you will still be able to send outbound

/sbin/init.d/sendmail stop

Then turn it off at boot

mv /sbin/rc2.d/S40sendmail /sbin/rc2.d/s540sendmail

Good Luck,
C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
David Lodge
Trusted Contributor

Re: No inbound mails

Kill it off - sendmail is only needed to recieve mails, not to send then. It isn't even needed to route mails internally to the server.

dave
David Lodge
Trusted Contributor

Re: No inbound mails

Note, the best way to disable sendmail is to edit /etc/rc.config.d/mailservs and set SENDMAIL_SERVER to 0

dave
Marco Paganini
Respected Contributor

Re: No inbound mails

Hello

You may just disable sendmail (as explained by other contributors). But be advised that your systems will NOT be able to receive any kind of 'remote' mail! If you have only one server, it should be fine since programs call sendmail directly to deliver mail. However, if you have multiple servers on the same 'internal' environment that exchange mail, you may have a problem.

Regards,
Paga
Keeping alive, until I die.
Robin Wakefield
Honored Contributor

Re: No inbound mails

Hi,

I would actually edit the /sbin/init.d/sendmail script and remove the "-bd" switch from the sendmail line. That way, the sendmail process will be running in "queue process mode", so that if your outbound mails stall for any reason, they will be retried.

If not, put "/usr/lib/sendmail -q" in cron to run every 15 or 30 minutes.

Rgds, Robin.