Report this

What is the reason for this report?

How do i uninstall Postfix. Will Fail2Ban still be able to email me?

Posted on October 8, 2015

I setup mailgun to forward my emails to gmail. I use gmail aliases to send emails from my domains. Mailgun.com is a free alternative to using google apps.

1.) How do i uninstall postfix? 2.) Will fail2ban still be able to email me if i do uninstall postfix? 3.) Can i remove pop3 110, 995 ports from firewall? 4.) Can i remove imap ports 83, 587 from firewall? 5.) Can i remove SMTP port 25 from firewall? I have a ubuntu 14.04 LEMP server.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi,

1.) How do i uninstall postfix?

You can uninstall Postfix by running:

sudo apt-get remove postfix

2.) Will fail2ban still be able to email me if i do uninstall postfix?

By default, no. fail2ban needs a Mail Transfer Agent such as Postfix in order to send emails.

However, you can disable email notifications and set up a script that sends email alerts through Mailgun whenever a host is banned or unbanned:

3.) Can i remove pop3 110, 995 ports from firewall? 4.) Can i remove imap ports 83, 587 from firewall? 5.) Can i remove SMTP port 25 from firewall?

Once you’ve uninstalled Postfix, yes, you can safely remove them. To make sure that they are not used anymore, run the following command which lists all open/active ports along with the processes that are bound to them:

sudo netstat -plutn

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.