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

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

Please comment if any issues.

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
Scroll to Top