Only allow root mail to be sent & block everything else

crspyjohn

Verified User
Joined
May 5, 2006
Messages
43
I was wondering how I would only allow root mail to be sent & block everything else.

I was thinking of blocking inbound connections from port 25 which would disable all incoming and only allow outgoing mail from the server correct?
What steps would I need to take to uninstall/disable dovecot? Is it recommended to uninstall or disable dovecot?
What steps should I take to disable exim from starting? If I disable exim from starting should I still leave the custombuild update for exim on?

Thanks!!
 
Last edited:
If you don't need exim and dovecot, you should remove it from your Linux box and disable it in CB and remove them from directadmin services monitoring list.
 
And then of course your server won't be able to send you any emails either. Better turn off Dovecot and Exim from the DirectAdmin control panel (makes it much easier to turn them on later if necessary), and alias root and admin email addresses to a location off the server. That way exim will still exist and be able to send emails out. Of course it will also send any emails originating on the server from other accounts as well. You can block that from either ACL rules in exim.conf, or filtering in exim.pl.

Jeff
 
I'd think that depends on how the emails are sent. I suppose you can point to exim on a different server, but if you're using the mail command or the sendmail command I believe you need exim (ot snother MTA) installed.

Jeff
 
Back
Top