SysAdmin

How to change MTA on Centos5.6 – RHEL based server

JJ
Jobin Joseph · Founder and CEO
·Published 5 March 2012·1 min read

Here you can see, how to change MTA qmail to any other you can set as simple sendmail or postfix, exim or qmail.

`[root@JobNix~]#ll /etc/alternatives/mta`
lrwxrwxrwx 1 root root 23 Aug 31 03:39 /etc/alternatives/mta -> /var/qmail/bin/sendmail

[root@JobNix ~]# alternatives –config mta

There are 4 programs which provide ‘mta’.

Selection Command
———————————————–
*+ 1 /var/qmail/bin/sendmail
2 /usr/sbin/sendmail.exim
3 /usr/sbin/sendmail.postfix
4 /usr/sbin/sendmail.sendmail

Enter to keep the current selection[+], or type selection number: 2

“`
[root@JobNix ~]# /etc/init.d/qmail stop


Stopping : [root@JobNix ~]# /etc/init.d/exim restart


Shutting down exim: [ OK ]


Starting exim: [ OK ]“`

[root@JobNix ~]# echo ” Test mail” | mail -s ” Test mail from $HOSTNAME ” test@jobnix.in

Please comment if any issues.

Jobin Joseph
Jobin Joseph, Founder and CEO
5x AWS Certified, ISO 27001:2022 Lead Implementer, 17+ years building cloud infrastructure for regulated industries.
About Jobin →

Reading this because your AWS bill or uptime is a problem?

30 minutes, direct with the founder, no sales pitch: one specific recommendation for your AWS workload.

Book a free 30-minute review
30 min Free Consultation →