°Ô½Ã¹° 260°Ç
   
[Redhat] sendmail ¼­¹ö»ó¿¡¼­ ¸ÞÀÏ º¸³»±â
±Û¾´ÀÌ : theko ³¯Â¥ : 2012-02-27 (¿ù) 17:07 Á¶È¸ : 2834
¡á Ä¿¸Çµå »ó¿¡¼­ ³»¿ëÀ» Á÷Á¢ ÀÔ·ÂÇÒ ¶§

# mail -s "Á¦¸ñ" ¼ö½ÅÀÚÀ̸ÞÀÏ
¸ÞÀÏ ³»¿ë
.
#

À§¿¡¼­ "." Àº ³¡À» ÀǹÌÇÕ´Ï´Ù. "." ´ë½Å ^D¸¦ »ç¿ëÇϱ⵵ ÇÕ´Ï´Ù.

¡á ½ºÅ©¸³Æ®»ó¿¡¼­ ³»¿ëÀ» Á÷Á¢ ÀÔ·ÂÇÒ ¶§

#!/usr/bin/ksh

mail -s "Á¦¸ñ" ¼ö½ÅÀÚÀ̸ÞÀÏ << EOF
¸ÞÀϳ»¿ë
EOF

exit 0

¡á ½ºÅ©¸³Æ®»ó¿¡¼­ ÆÄÀϳ»¿ëÀ» ¸ÞÀÏ·Î º¸³¾ ¶§

#!/usr/bin/ksh

mail -s "Á¦¸ñ" ¼ö½ÅÀÚÀ̸ÞÀÏ < È­Àϸí

exit 0

¡á ½ºÅ©¸³Æ®»ó¿¡¼­ ÷ºÎÈ­ÀÏ·Î º¸³¾ ¶§

#!/usr/bin/ksh

uuencode ÆÄÀÏ¸í µ¿ÀÏÈ­Àϸí | mail -s "Á¦¸ñ" ¼ö½ÅÀÚÀ̸ÞÀÏ

exit 0

Âü°í·Î sendmail ¸í·É¾î¸¦ »ç¿ëÇÒ ¶©, ´ÙÀ½°ú °°ÀÌ ÇÏ¸é µË´Ï´Ù.

# sendmail -f¼Û½ÅÀÚÀ̸ÞÀÏ ¼ö½ÅÀÚÀ̸ÞÀÏ
From: ¼Û½ÅÀÚÀ̸ÞÀÏ
To: ¼ö½ÅÀÚÀ̸ÞÀÏ
Subject: Á¦¸ñ
¸ÞÀϳ»¿ë

À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

miwit.com sir.co.kr DNS Powered by DNSEver.com DNS Powered by DNSEver.com