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

본문 바로가기
 

Part 10 - Uninstalling Sendmail/Postfix

페이지 정보

작성자 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 댓글 0건 조회 15,080회 작성일 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 137건 4 페이지
리눅스 Tip 목록
번호 제목 글쓴이 조회 날짜
83 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 14651 05-22
82 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 12586 05-22
81 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 15070 05-22
80 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 14052 05-21
79 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 17152 05-10
78 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 19358 05-08
77 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 15402 06-11
76 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 8915 02-02
75 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 8474 01-31
74 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 16165 01-31
73 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 18024 01-31
72 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 17150 01-31
71 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 15712 01-31
70 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 16387 01-31
69 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 14842 01-31
68 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 14108 01-31
67 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 15181 01-31
열람중 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 15081 01-31
게시물 검색