How to setup diffrent MTA for Virtualmin

1 post / 0 new
#1 Tue, 04/17/2018 - 09:59
krispol

How to setup diffrent MTA for Virtualmin

Hi,

We are using in our system PowerMTA. We tried to make it our default MTA but is not so easy that we thought. In this path System Settings -> Virtualmin Config -> Server Settings, and "Mail server to configure" we can setup different MTA but there is no PowerMTA. Thus we tried to setup it manually on our Centos 7 server, but when we type:

alternatives --display mta

We get this output

mta - status is manual. link currently points to /usr/sbin/sendmail.postfix /usr/sbin/sendmail.postfix - priority 30 slave mta-mailq: /usr/bin/mailq.postfix slave mta-newaliases: /usr/bin/newaliases.postfix slave mta-pam: /etc/pam.d/smtp.postfix slave mta-rmail: /usr/bin/rmail.postfix slave mta-sendmail: /usr/lib/sendmail.postfix slave mta-mailqman: /usr/share/man/man1/mailq.postfix.1.gz slave mta-newaliasesman: /usr/share/man/man1/newaliases.postfix.1.gz slave mta-sendmailman: /usr/share/man/man1/sendmail.postfix.1.gz slave mta-aliasesman: /usr/share/man/man5/aliases.postfix.5.gz Current `best' version is /usr/sbin/sendmail.postfix.

When we type:

alternatives --config mta

I'm getting only this

*+ 1 /usr/sbin/sendmail.postfix

So I tried setup powerMTA as default using - update-alternatives --set mta /usr/sbin/pmta. But I'm getting this:

/usr/sbin/pmta has not been configured as an alternative for mta

Thank you for all your feedback?