Part 10 - Uninstalling Sendmail/Postfix > 리눅스 Tip

본문 바로가기
 

Part 10 - Uninstalling Sendmail/Postfix

페이지 정보

작성자 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 댓글 0건 조회 15,091회 작성일 09-01-31 08:23

본문

Part 10 - Uninstalling Sendmail/Postfix
qmail mta installation guide
Well, the moment you've been waiting for is finally here. We're going to uninstall the current MTA from the server. On some systems, this means removing Sendmail while on many systems it involves removing Postfix (another popular MTA). Either way, we're going to remove the current MTA and replace it with our new qmail installation. However, since Sendmail (or rather the path to Sendmail) is such a commonly used item among tons of server operations and cronjobs, you will see that, after we uninstall Sendmail, we will actually make an artificial Sendmail that is nothing more than a direct injection into Qmail.
Anyway, let's do it...
Since this installation concerns Redhat, I'm going to assume that either have Sendmail or Postfix installed as an RPM. If you have it installed from source instead, we'll cover that as well.
Removing Sendmail
First, you'll want to check and see if your Sendmail installation is an RPM installation or a source installation. A good way to tell, of couse, is to simply ask....
rpm -qa | grep sendmail
If Sendmail is installed as an RPM, you will see an output similar to this:
sendmail-x.x.x.x
sendmail-doc-x.x.x.x
sendmail-devel-x.x.x.x
sendmail-cf-x.x.x.x
If it's installed as an RPM, you can uninstall Sendmail quite easily by running the followinng commands:
/etc/rc.d/init.d/sendmail stop (to stop Sendmail)
rpm -e --nodeps sendmail-x.x.x.x
rpm -e --nodeps sendmail-doc-x.x.x.x
rpm -e --nodeps sendmail-devel-x.x.x.x
rpm -e --nodeps sendmail-cf-x.x.x.x
That's it! Sendmail is gone! Keep in mind that if you had an rpm installation and you ever want to return to Sendmail, you can simple install the RPMs again with no trouble (assuming you remove Qmail).
However, if the RPM query produces no output, you most likely have a source install of Sendmail. In that case...
/etc/rc.d/init.d/sendmail stop (to stop Sendmail)
mv /usr/lib/sendmail /usr/lib/sendmail.old
mv /usr/sbin/sendmail /usr/sbin/sendmail.old
chmod 0 /usr/lib/sendmail.old /usr/sbin/sendmail.old
Removing Postfix
First, let's see if you actually have Postfix installed...
rpm -qa | grep postfix
If it's installed, you'll get an output similar to this:
postfix-x.x-x
So let's remove it...
/etc/rc.d/init.d/postfix stop
rpm -e --nodeps postfix-x.x-x
Establishing an "artificial" Sendmail path
Now we will need to set up an "artificial" Sendmail, which is just a symbolic link to Qmail's Sendmail. This is needed to ensure that the myriad of systemic mail scripts are still able to send mail! Qmail's "Sendmail" is nothing more than a direct injection into Qmail itself...
ln -s /var/qmail/bin/sendmail /usr/lib/sendmail
ln -s /var/qmail/bin/sendmail /usr/sbin/sendmail
That's it! If all has gone well, Sendmail or Postfix should be uninstalled and the Qmail Sendmail should be in its place.
Now it's time to give qmail a final test and then crank it up!

Proceed to Part 11

댓글목록

등록된 댓글이 없습니다.

Total 138건 4 페이지
리눅스 Tip 목록
번호 제목 글쓴이 조회 날짜
84 no_profile 차동박 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 15560 06-25
83 no_profile 차동박 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 15546 06-28
82 no_profile 차동박 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 15510 05-29
81 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 15440 09-07
80 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 15421 06-11
79 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 15408 03-12
78 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 15361 01-31
77 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 15311 08-07
76 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 15236 09-06
75 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 15225 01-31
74 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 15213 08-09
73 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 15195 01-31
72 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 15183 01-31
71 no_profile 차동박 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 15165 05-13
70 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 15100 09-07
열람중 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 15092 01-31
68 no_profile 차동박 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 15089 06-19
67 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 15081 05-22
게시물 검색