I am trying to install Postfix on an Ubuntu 16.04 server; this is a web server. I need Postfix for send-only for fail2ban and logwatch.

All Postfix tutorials show that apt install postfix ends with dialog windows. When I run sudo apt install mailutils all I get is a completed script, no install (that I can tell).

How do I configure my install? (there is no /etc/postfix/main.cnf)

Sorry for the lack of support info. I do not know enough to know what to give you. Ask, and I will post what I can.

  • Are you looking for sudo dpkg-reconfigure postfix? – Gerald Schneider Jan 31 '17 at 14:24
  • @GeraldSchneider I am not sure. Will that take me through the remain installation steps? – Roger Creasy Jan 31 '17 at 14:32
  • For your kind of purposes you don't need normally a fully blown MTA; you can also use nullmailer or ssmtp instead of it. – Marc Stürmer Feb 1 '17 at 6:28

After spending more time than I should have, I removed and reinstalled Postfix. This action resolved the problem. I guess I had a bad initial install.

My steps:

  1. sudo apt-get purge --auto-remove postfix
  2. sudo apt-get install mailutils

I hope this helps someone else.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.