1581, 8/80 ȸ¿ø°¡ÀÔ  ·Î±×ÀΠ 
   h41d35
   Sendmail ¼Ò½º·Î ¼³Ä¡Çϱâ

http://www.hackerschool.org/HS_Boards/zboard.php?id=Free_Lectures&no=49 [º¹»ç]


/********************************************************************************/
Á¦  ¸ñ : Sendmail ¼Ò½º ¼³Ä¡Çϱ⠠                
ÀÛ¼ºÀÚ : h41d35@Realskulls.Team                                                  
/********************************************************************************/

1. Sendmail À̶õ?
  ¼¾µå¸ÞÀÏÀ̶õ.. ÀÎÅͳݿ¡¼­ ¸ÞÀÏÀ» ÁÖ°í ¹ÞÀ»¼ö ÀÖ´Â Á߰迪ÇÒÀ» ÇÏ´Â ¼­¹öµ¥¸ó Áï
ÀÏÁ¾ÀÇ ÀÎÅͳݿ¡¼­ ¸ÞÀÏÀ» ÁÖ°í ¹Þ´Â ÇÁ·Î±×·¥ÀÌ´Ù.


2. ÀÌÀü ¹öÀü Á¦°Å

[root@bitLab root]# rpm -qa | grep sendmail //¼³Ä¡µÇ¾î ÀÖ´Â ¼¾µå¸ÞÀÏÀ» º¸¿©Áà
sendmail-cf-8.12.5-7
sendmail-8.12.5-7
sendmail-devel-8.12.5-7

// Àڱ⠽ýºÅÛ¿¡ ´Ù¸¥ ¹öÀüÀÇ ¼¾µå¸ÞÀÏÀÌ ¼³Ä¡ µÇ¾î ÀÖÀ» ¼ö ÀÖ½À´Ï´Ù.
// '8.12.5-7' ¿ä°Ô ¹öÀüÀÓ...^^

[root@bitLab root]# rpm -e --nodeps sendmail-8.12.5-7  //Á¦°Å ¸í·É¾î
[root@bitLab root]# rpm -e --nodeps sendmail-cf-8.12.5-7
[root@bitLab root]# rpm -e --nodeps sendmail-devel-8.12.5-7

  
3.Sendmail ¼Ò½º ´Ù¿î ¹Þ±â

[root@bitLab root]# ncftp
[root@bitLab root]# open ftp.sendmail.org
[root@bitLab root]# cd /pub/sendmail
[root@bitLab root]# get sendmail.8.12.9.tar.gz


4.Sendmail ½ÇÇà ÆÄÀÏ »ý¼º

[root@bitLab work]# tar xvfz sendmail.8.12.9.tar.gz //ÀÔÃàÇ®°í..Go~~
[root@bitLab work]# cd sendmail-8.12.9
[root@bitLab work]# make
[root@bitLab sendmail-8.12.9]# make install       //½ÇÇàÆÄÀÏ ÀνºÅç


5.Sendmail ¼³Á¤ÆÄÀÏ »ý¼º
  
[root@bitLab sendmail-8.12.9]# cd cf/cf           //µð·ºÅ丮 À̵¿
[root@bitLab cf]# mv generic-linux.mc sendmail.mc //À̸§ ¹Ù²ãÁÖ°í..Go~~
[root@bitLab cf]# sh Build sendmail.cf            //¼³Á¤ÆÄÀÏ »ý¼º
[root@bitLab cf]# make install-cf                 //¼³Á¤ÆÄÀÏ ÀνºÅç


6.Sendmail ±âŸ ¼³Á¤ÆÄÀÏ ¼³Á¤

[root@bitLab cf]# cd /etc/mail
[root@bitLab mail]# ls
  helpfile  sendmail.cf  statistics  submit.cf

[root@bitLab mail]# vi access
  192.168.25      RELAY                            //Áß°è ¾ÆÀÌÇÇ ¼³Á¤
  127.0.0.1       RELAY
  localhost       RELAY
  localhost.localdomain   RELAY

  
[root@bitLab mail]# vi aliases
  webmaster:  root

[root@bitLab mail]#touch local-host-names          //ºóÆÄÀÏ »ý¼º


[root@bitLab mail]# makemap hash access < access   //access.db ¸¦ °»½Å
[root@bitLab mail]# newaliases                     //aliases.db ¸¦ °»½Å

[root@bitLab sbin]# mkdir /var/spool/mqueue        //µð·ºÅ丮 »ý¼º
[root@bitLab sbin]# chmod 775 /var/spool/mqueue    //±ÇÇѼ³Á¤


7.Sendmail ½ÇÇà

[root@bitLab sbin]# /usr/sbin/sendmail -Ac -q1h    //Áß°è¿ë µ¥¸ó
[root@bitLab sbin]# /usr/sbin/sendmail -bd -q1h    //Á¦Ãâ¿ë µ¥¸ó


8.Sendmail µ¿ÀÛ Å×½ºÆ®

  [root@bitLab root]# telnet localhost 25
  mail from : [º¸³»´ÂÀÌ ¸ÞÀÏ ÁÖ¼Ò] Enter
  rcpt to :   [¹Þ´ÂÀÌ ¸ÞÀÏ ÁÖ¼Ò]   Enter
  data        Enter
  [³»¿ë]
  .       Enter   // Á¡À» Âï°í Enter ÃÄ¾ß ºüÁ® ³ª°¨....^^
  quit        Enter

  Hit : 12958     Date : 2003/09/12 07:34



    
lawsoul ÁÁÀºÁ¤º¸ °¨»çÇÕ´Ï´Ù.

¼¾µå¸ÅÀÏ. ¸»±×´ë·Î ¸ÞÀÏÀ»º¸³½´Ù±º¿ä.

Áö±ÝÀº ¸®´ª½º¸¦ ±ò¾Æ³õ±â¸¸ ÇÑ»óŶó.

Çò°¥¸®´Â ºÎºÐÀÌ ¸¹³×¿ä. Áö±Ýµµ ¾²ÀÌ´ÂÁöµµ ±À±ÀÇÏ°í¿ä.

´ÙÀ½¿¡ Áß±ÞÀÚ¼öÁØÀÌ µÇ¸é ´Ù½ÃÇѹø º¸·¯¿Í¾ß°Ú³×¿ä.

¿À·¡µÈ ±ÛÀÌÁö¸¸ °¨»çÇÕ´Ï´Ù.
2012/01/16  
1441   ³×Æ®¿öÅ© °³³ä ÈÖ¾îÀâ±â 4[14]     ¼ÒÀ¯
09/13 13302
1440   ³×Æ®¿öÅ© °³³ä ÈÖ¾îÀâ±â 3[17]     ¼ÒÀ¯
09/12 13272
1439   * À©µµ¿ì ÇØÅ·ÀÇ ±âº» ¿ø¸®*[29]     oes2
08/26 13255
1438   ¿øÀç¾Æºü´ÔÀÇ gcc 2.96¿¡¼­ÀÇ ¹öÆÛ ±¸Á¶ °­ÁÂ.[9]     ttongfly
09/19 13207
1437   [802.11] How to Attack WiFi Phishing??[2]     DCos
02/27 13161
1436   [Project] Àü±â,ÀüÀÚ »ó½Ä ¹× »þÇÁ½ÉÀ¸·Î Àü±¸¸¸µé±â. - 3[16]     ¾ÆÀÌÇÁ¸®µå
02/03 13157
1435   [802.11] How to Crack WPA[6]     DCos
02/17 13146
1434   °³ÀÎÁ¤º¸ ÀÌ¿ë³»¿ª ÅëÁöÁ¦µµ¶õ     HongMK900
08/13 13121
1433   [Á¤¸®] ÇØÄð °­ÁÂ½Ç ³»¿ë 14~48pÁö Á¤¸®[7]     W.H.
03/13 13068
1432   À©µµ¿ì ¸í·É¾î[12]     whqkdnf000
10/26 12988
1431   [Æß]Ptrace¸¦ ÀÌ¿ëÇÑ Àç¹Ì´Â ÇØÅ·.[4]     ^^
02/08 12983
1430   ¹è¿­ ³»¿¡¼­ ·£´ýÇÑ n°³ ÃßÃâÇϱâ[2]     kjwon15
12/05 12979
  Sendmail ¼Ò½º·Î ¼³Ä¡Çϱâ[1]     h41d35
09/12 12957
1428   "ÇØÄ¿°¡ µÇ·Á¸é ¹«¾ùÀ» ¾Ë¾Æ¾ß Çϳª¿ä?" ÀÇ ´äº¯(¹ßÃé)[48]     mati
08/01 12932
1427   3¹ø°c°­ÁÂÀÔ´Ï´Ù~¤»[8]     ±«µµjs
07/14 12928
1426   ³×Æ®¿öÅ© °³³ä ÈÖ¾îÀâ±â 5[10]     ¼ÒÀ¯
09/14 12924
1425   ±¸±Û ÇØÅ·?[7]     nsh009
11/06 12923
1424   [Æß]½º´ÏÇÎ[1]     loveaaav
03/24 12922
1423   [C±âÃÊ] 11 - ÇÔ¼ö ¸Å°³º¯¼ö·Î ¹è¿­À» ³Ñ±â·Á¸é?      sihun1113
05/01 12902
1422   I. ¸®´ª½º ±¸Á¶ ¹× ÀÏ¹Ý ¸í·É¾î.     ±«µµjs
07/04 12870
[1][2][3][4][5][6][7] 8 [9][10]..[80]

Copyright 1999-2024 Zeroboard / skin by Hackerschool.org / Secure Patch by Hackerschool.org