Server with all email turned off?

Hi

Apologies if this is a stupid question but I’m setting up a new server and no longer want any mail server running.

All hosted websites will use an external mail delivery system (Google Apps/Zoho Mail etc) so postfix becomes redundant and due to recent hacks on another server with spam delivery I’d rather keep postfix turned off completely.

However, how would system emails be delivered? Is there anyway to tell webmin/virtualmin to use an external SMTP mail to send system mails. By system mails I mean the likes of CSF firewall notifications, server/system monitoring etc.

I can see an option in server/system monitoring to use SMTP mail host but there’s no login options or port settings?

Does anyone know of any documentation on this or any strong reasons why its not a sensible idea to turn off the mail server if its not needed?

Many thanks

Richard

Howdy,

You would need to have something like Postfix running in order to have local email delivery.

Services like cron wouldn’t be able to deliver emails without that running.

However, there should be ways to configure it such that it won’t deliver anything outside of your server.

I haven’t tried it before, but a few options appear when Googling for “postfix prevent remote delivery”.

-Eric

Thanks very much for the response Eric, that makes a lot of sense.

Hello all,

I am sorry for similar question again. the above post is 2 years old, I am just checking my luck here for any improvements or alternative solution.

I updated my MX records to point external mail service provider and all my mail are working fine. Now I wanted to configure my server to send local/server mail in case of any issues, updates or any cron job results.

how to configure local/server mails to external service provider. Also how to disable incoming mail feature in server and disable clamav as it takes lot of ram memory. since there is no incoming mails no need to keep calmav active.

Regards