Operating System - HP-UX
1822504 Members
2375 Online
109642 Solutions
New Discussion юеВ

Sendmail. Can I stop incoming mail

 
SOLVED
Go to solution
Tim O'Connell
Regular Advisor

Sendmail. Can I stop incoming mail

I have just got sendmail working to send to external(Internet) addresses but I want to prevent any maild being sent to my HPUX11 server. Is it possible to allow outgoing mail but prevent incoming - to stop listening on port25.

Thanks,

Tim
3 REPLIES 3
Geoff Wild
Honored Contributor
Solution

Re: Sendmail. Can I stop incoming mail

Just shut sendmail down - /sbin/init.d/sendmail stop

Change SENDMAIL_SERVER=0 in /etc/rc.config.d/mailservs

Outgoing mail will still work....

Just add /usr/sbin/sendmail -q
to cron say every hour to process anything that may not have been sent...


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Tom Smith_9
Frequent Advisor

Re: Sendmail. Can I stop incoming mail

Hi Tim,
If you don't want to allow incoming mail, you can disable Sendmail, while still using mailx to send messages.

If you need to use a specific mail relay for outbound, however, this may not work. I will have to try it and see.

Hope this helps.

-Tom
Tim O'Connell
Regular Advisor

Re: Sendmail. Can I stop incoming mail

Thanks for the prompt reply. Setting sendmail_server to 0 works

Thanks,

Tim