|
sendmail12.10 ¼³Ä¡Çϱâ^^
1. Sendmail ¼Ò½º ¹Þ±â
- Sendmail ¼Ò½º ±¸Çϱâ
ftp://ftp.sendmail.org/pub/sendmail/sendmail8.12.10.tar.gz
2. Sendmail8.12.5 ÄÄÆÄÀÏ Çϱâ
2.1 ÇöÀç ½ÇÇà ÁßÀÎ daemonÀ» stop
# /etc/init.d/sendmail stop
2.2 ¹À½ ¾ÐÃàÀ» ÇØÁ¦
# PATH=$PATH:/usr/local/bin:/usr/ccs/bin;export PATH ꏮ
# gzip -cd sendmail.8.12.5.tar.gz | tar xvf -
# cd sendmail-8.12.5
# sh Build
3. sendmail.cf »ý¼º
# cd cf/cf
# vi generic-solaris.mc
.....
FEATURE(access_db,`dbm -T<TMPF> /etc/mail/access')dnl
wq!
# m4 ../m4/cf.m4 generic-solaris.mc > sendmail.cf
# cp /etc/mail/* /etc/backup_directory
# sh Build install-cf
// sendmail.cf, submit.cf ¡æ /etc/mail º¹»ç µÈ´Ù.
# ln -s /etc/mail/sendmail.cf /etc/sendmail.cf
4. sendmail ¼³Ä¡
4.1 ±âÁ¸¿¡ ¼³Ä¡µÈ ³»¿ë backup!
# cp /usr/lib/sendmail /usr/lib/sendmail.org
4.2 ¼³Ä¡
# groupadd -g 25 smmsp
# useradd -g 25 -u 25 -c RunAsUser smmsp
# cd ../../sendmail
# sh Build install
// sendmail ¡æ /usr/lib Ä«ÇÇ, group : smmsp, SETGID ¼³Á¤
/var/spool/clientmqueue ¡æ owner: smmsp, group: smmsp, 770
4.3 makemap, mailstats ¼³Ä¡
# cd ..
# cd makemap
# sh Build install
//makemap ¡æ /usr/sbin¿¡ Ä«ÇÇ µÈ´Ù.
# cd ../mailstats
# sh Build install
//mailstats ¡æ /usr/sbin¿¡ Ä«ÇÇ µÈ´Ù.
☼ /etc/mail/sendmail.cf ÆÄÀÏ ¼öÁ¤
5. Relay ¼³Á¤
# vi /etc/mail/access
211.227.240 RELAY
:wq!
# makemap dbm /etc/mail/access < /etc/mail/access
6. ½ÇÇà
# /etc/init.d/sendmail start ¶Ç´Â
# /usr/lib/sendmail -bd -q1h
¢¹ -bd : background ·Î ½ÇÇà
¢¹ -q1h : ¸ÞÀÏ Àü¼ÛÀÌ Á¦´ë·Î µÇÁö ¾Ê¾ÒÀ»½Ã ¸ÞÀÏ Å¥¿¡ ÀúÀåÇÏ°í Çѽ𣿡 Çѹø¾¿ ½Ãµµ
7. Test
# /usr/lib/sendmail -v getdoing@daum.net < /dev/null
getdoing@daum.net... Connecting to mx8.hanmail.net. via esmtp...
220 rmail-119.hanmail.net ESMTP welcome to HanMail.Net(tm) ready at Mon, 4 Feb 2002 12:39:19 +0900
>>> EHLO javaman.honam.ac.kr
250-rmail-119.hanmail.net Hello [211.227.240.22], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-EXPN
250-VERB
250-8BITMIME
250-SIZE 15360000
250-DSN
.............................
221 2.0.0 rmail-119.hanmail.net closing connection
#
|