Disable all Mail but outgoing / use external Mailserver

I don’t like to have the Mail-Server open to use for the virtualserver-instances (webspaces) from virtualmin.
But I need to send mails via PHP to the internet.

If I check running processes, I see that dovecot runs:

Two questions here:

  1. How could I completely disable the mail-functionality for users, but keep the outgoing mails which I do need for php-scripts? (Even would be awesome to be able to hide those menues in the virtualmin menu)
    I know about only to stop dovecot service. But will this make trouble with virtualmin in any way?
  2. As another option: How could I configure virtualmin to use an external Mail-Server (and also an external webmail-interface?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.