Àû¾îÁֽŴë·Î ±×´ë·Î ÇÑ ÈÄ mail()À» ½ÇÇàÇØ ºÃ´õ´Ï À¥¼¹ö·Î ¸ÞÀÏÀÌ ¿À°í ¸ÞÀϼ¹ö¿¡´Â
¾Æ¹«·± ·Î±×°¡ ¾ø´Â°Í °°½À´Ï´Ù.
À¥¼¹ö ·Î±×ÀÔ´Ï´Ù.
---------------------------------------------------------------------
Sep 20 23:27:00 localhost sendmail[8470]: h8KER0G08470: from=nobody, size=172,
class=0, nrcpts=1, msgid=<200309201427.h8KER0G08470@localhost.localdomain>,
relay=nobody@localhost
Sep 20 23:27:00 localhost sendmail[8473]: h8KER0G08470: to=¤·¤·¤·<user@mail.aaa.co.kr>, ctladdr=nobody
(99/99), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30172, dsn=2.0.0,
stat=Sent
Sep 20 23:27:20 localhost sendmail[8480]: h8KERKl08480: from=nobody, size=216,
class=0, nrcpts=1, msgid=<200309201427.h8KERKl08480@localhost.localdomain>,
relay=nobody@localhost
Sep 20 23:27:20 localhost sendmail[8483]: h8KERKl08480: to=¤·¤·¤·<user@aaa.co.kr>, ctladdr=nobody (99/99),
delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30216, dsn=2.0.0, stat=Sent
---------------------------------------------------------------------
¸ÞÀϼ¹ö¿¡´Â ÇØ´ç ·Î±×°¡ ¾ø³×¿ä.
¿©±â¼ À¥¼¹öÀÇ local-host-namesÀÇ ¼³Á¤À» Áö¿ì°í º¸³»¸é ¿¹ÀüÀÇ ¿¡·¯°¡ À¥¼¹ö¿Í
¸ÞÀϼ¹ö¿¡ µ¿½Ã¿¡ ´Ù½Ã ¶å´Ï´Ù.
[»êÀÌ]´ÔÀÌ ³²±â½Å ±Û:
>
>[À̼®ÁØ]´ÔÀÌ ³²±â½Å ±Û:
>
>>1. php 4.3.1
>>
>>2. apache 1.3.27
>>
>>3. À¥¼¹ö¿¡¼ ¼¾µå¸ÞÀÏÀº ¼³Ä¡¸¸ µÇ¾îÀÖ°í ±¸µ¿Àº ¾ÈÇÏ°í ÀÖ½À´Ï´Ù.
>>
>>4. 2Â÷³×ÀÓ¼¹öµµ ±¸µ¿¾ÈÇÏ°í ÀÖ±¸¿ä,
>>
>>5. À¥¼¹öÀÇ php.ini¼³Á¤ÀÔ´Ï´Ù.
>>---------------------------------------------------------------------
>>[mail function]
>>; For Win32 only.
>>SMTP = 211.111.111.112(¸ÞÀϼ¹ö·Î
µÇ¾î ÀÖ½À´Ï´Ù.)
>>
>>; For Win32 only.
>>sendmail_from = me@localhost.com
>>
>>; For Unix only. You may supply arguments as well (default: "sendmail -t
-i").
>>;sendmail_path =
>>---------------------------------------------------------------------
>>
>>6.Àû¾îÁֽŠÄڵ带 ½ÇÇà½ÃŲ °á°úÀÔ´Ï´Ù.
>>---------------------------------------------------------------------
>>MX check: 1
>>getmxrr check :1
>>Array ( [0] => mail.aaa.co.kr ) Array ( [0] => 0 )
>>---------------------------------------------------------------------
>>
>
>ÇöÀç±îÁö¶ó¸é php ¿¡¼ ¸®Á¹ºùÇÑ °á°ú´Â ¸ðµÎ Á¤»óÀ̳׿ä.
>
>DNS ¸®Á¹ºù°úÁ¤¿¡¼´Â ÀÌ»óÀ̾ø°í,
>
>À¥¼¹öÀÇ sendmail ÀÌ aaa.co.kr µµ¸ÞÀο¡ ´ëÇÑ ¸ÞÀÏÀ» ¸ðµÎ ¹Þ¾Æ¹ö¸®´Â
>¹®Á¦Á¡À¸·Î ¾ÐÃàµÇ³×¿ä.
>
>À¥¼¹ö¿¡¼
>
># cd /etc/mail
># > local-host-names
># > domaintable
># > mailertable
># > virtusertable
># makemap hash domaintable < domaintable
># makemap hash mailertable < mailertable
># makemap hash virtusertable < virtusertable
>
>ÀÌ·¸°Ô ÃʱâÈ ÇÕ´Ï´Ù.
>
>±×¸®°í À¥¼¹öÀÇ sendmail À» ±¸µ¿Çϼ¼¿ä.
>
># /etc/rc.d/init.d/sendmail start
>
>ÇöÀç À¥¼¹öÀÇ sendmail Àº ¼ö½Å ±â´ÉÀº ¾ø°í º¸³»´Â ±â´É¸¸
>ÀÖ½À´Ï´Ù.
>
>±×¸®°í, php.ini ¿¡¼
>
>SMTP = localhost
>
>·Î ¹Ù²Ù°í ¾ÆÆÄÄ¡¸¦ ´Ù½Ã ½ÃÀÛÇϼ¼¿ä.
>
>
>¸ÞÀϼ¹ö¿¡¼´Â
>
>sendmail.cf ÆÄÀÏÀ» ¿¾î¼ Á¤È®ÇÏ°Ô
>
>Cwlocalhost
>Fw/etc/mail/local-host-names
>
>ÀÌ·¸°Ô ¼³Á¤µÇ¾î ÀÖ´ÂÁö È®ÀÎÇÏ°í
>local-host-names ¿¡ aaa.co.kr °ú mail.aaa.co.kr ÀÌ
>µî·ÏµÇ¾î ÀÖ´ÂÁö ÀçÈ®ÀÎÇϼ¼¿ä.
>
>
>ÃÖÁ¾ÀûÀ¸·Î
>
>À¥¼¹öÀÇ PHP ¿¡¼ mail() ÇÔ¼ö¸¦ ÀÌ¿ëÇÏ¿©
>
>user@aaa.co.kr
>user@mail.co.kr
>
>À¸·Î º¸³»±â Å×½ºÆ®ÇÑ °á°ú¿Í
>À̹ø¿¡´Â À¥¼¹öÀÇ ¸ÞÀϷαװ¡ ¾Æ´Ñ ¸ÞÀϼ¹öÀÇ ¸ÞÀϷα׸¦
>Æ÷½ºÆÃÇØÁÖ¼¼¿ä.
>
>
>À̹ø¿¡ ¾ÈµÇ¸é
>Á÷Á¢ ¿ø°ÝÀ¸·Î Á¢¼ÓÇؼ È®ÀÎÇÏ´Â ¹æ¹ý¹Û¿¡ ¾ø°Ú±º¿ä.
========================================
|