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

05. March 2012 SysAdmin 0

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

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

[[email protected] ~]# 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

“`
[[email protected] ~]# /etc/init.d/qmail stop


Stopping : [[email protected] ~]# /etc/init.d/exim restart


Shutting down exim: [ OK ]


Starting exim: [ OK ]“`

[[email protected] ~]# echo ” Test mail” | mail -s ” Test mail from $HOSTNAME ” [email protected]

Please comment if any issues.


Leave a Reply

Your email address will not be published. Required fields are marked *