±ÇÀå ¼Ò½ºÅ¸º¼ ¹æ¹ýÀ̳ª, ÀÚµ¿ÄÄÆÄÀÏ ÆÐÄÉÁö·ÎºÎÅÍ Å¥¸ÞÀÏÀ» ¼³Ä¡Çϼ̽À´Ï´Ù. À̹ø Ç׸ñ¿¡´Â ¸á¾Öµå¹ÎÀ̳ª ½Ã½ºÅÛ¾Öµå¹ÎÀÌ ÀڱⰡ ¿øÇÏ´Â ´ë·Î Å¥¸ÞÀÏÀ» ¿î¿µÇϱâ À§ÇØ Å¥¸ÞÀÏÀ» ¼³Á¤ÇÏ´Â µ¥ ÇÊ¿äÇÑ Á¤º¸°¡ ÀÖ½À´Ï´Ù.
¸ðµç Å¥¸ÞÀÏ ½Ã½ºÅÛ¼³Á¤ÆÄÀÏÀº alias¿¡ ÀÖ´Â .qmailÆÄÀÏÀ» »©°í´Â ¸ðµÎ /var/qmail/control¿¡ ³õ¿©Á® ÀÖ½À´Ï´Ù. qmail-control ¸ÇÆäÁö¿¡´Â ´ÙÀ½°ú °°Àº Å×À̺íÀÌ ÀÖ½À´Ï´Ù.
Control Default Used by Purpose badmailfrom none qmail-smtpd blacklisted From addresses bouncefrom MAILER-DAEMON qmail-send username of bounce sender bouncehost me qmail-send hostname of bounce sender concurrencylocal 10 qmail-send max simultaneous local deliveries concurrencyremote 20 qmail-send max simultaneous remote deliveries defaultdomain me qmail-inject default domain name defaulthost me qmail-inject default host name databytes 0 qmail-smtpd max number of bytes in message (0=no limit) doublebouncehost me qmail-send host name of double bounce sender doublebounceto postmaster qmail-send user to receive double bounces envnoathost me qmail-send default domain for addresses without "@" helohost me qmail-remote host name used in SMTP HELO command idhost me qmail-inject host name for Message-ID's localiphost me qmail-smtpd name substituted for local IP address locals me qmail-send domains that we deliver locally me FQDN of system various default for many control files morercpthosts none qmail-smtpd secondary rcpthosts database percenthack none qmail-send domains that can use "%"-style relaying plusdomain me qmail-inject domain substituted for trailing "+" qmqpservers none qmail-qmqpc IP addresses of QMQP servers queuelifetime 604800 qmail-send seconds a message can remain in queue rcpthosts none qmail-smtpd domains that we accept mail for smtpgreeting me qmail-smtpd SMTP greeting message smtproutes none qmail-remote artificial SMTP routes timeoutconnect 60 qmail-remote how long, in seconds, to wait for SMTP connection timeoutremote 1200 qmail-remote how long, in seconds, to wait for remote server timeoutsmtpd 1200 qmail-smtpd how long, in seconds, to wait for SMTP client virtualdomains none qmail-send virtual domains and users
ƯÁ¤ ÄÁÆ®·Ñ ÆÄÀÏ¿¡ ´ëÇØ Á¤º¸¸¦ ´õ ¿øÇϽøé, "Used by"¹Ø¿¡ ¿°ÅµÈ ¸ðµâ¿¡ ÇØ´çÇÏ´Â ¸ÇÆäÁö¸¦ ÂüÁ¶ÇϽʽÿÀ.
¸±·¹ÀÌ´Â ¹«¾ùÀϱî¿ä? MTA°¡ SMTP¸¦ ÅëÇؼ ¸Þ¼¼Áö¸¦ ¹Þ¾ÆµéÀÌÁö¸¸, ·ÎÄÃÁÖ¼Ò ¶Ç´Â ·ÎÄü۽ÅÀÚ°¡ ¾Æ´Ò¶§¸¦ ¸»ÇÕ´Ï´Ù.
½ºÆÔÀÌÀü½Ã´ë¿¡´Â MTA°¡ °ø°³¸±·¹ÀÌ·Î ¼³Á¤µÇ´Â °ÍÀÌ º¸ÅëÀ̾ú½À´Ï´Ù. ¼Û½ÅÀÚ/¼ö½ÅÀÚ°¡ ´©±¸µç Áö ¸áÀ» ¼ö¿ëÇÏ´Â ¹«Â÷º°¼¹ö¿´½À´Ï´Ù.
¿äÁòÀÇ MTA´Â ´ë°³ ¸±·¹À̸¦ ±ÝÁöÇϰųª, ÀÏÁ¤ÇÑ ¹ÏÀ»¸¸ÇÑ »ç¿ëÀÚ³ª ½Ã½ºÅÛ¿¡°Ô¸¸ ¸±·¹À̸¦ Çã¿ëÇÏ°í ÀÖ½À´Ï´Ù.
°ø½Ä Å¥¸ÞÀϼ³Ä¡Áö½Ã»çÇ×À» µû¸£¸é ¸±·¹ÀÌ´Â ±âº»ÀÌ ¾ÈµÇ°Ô µÇ¾îÀÖ½À´Ï´Ù. ÀÌ°ÍÀº locals¿Í virtualdomains¿¡ ÀÖ´Â µµ¸ÞÀÎ ³×Àӵ鿡 ÀÖ´Â µµ¸ÞÀÎ ³×ÀÓµéÀ» /var/qmail/control/rcpthostsÆÄÀÏ¿¡ Àû±â ¶§¹®ÀÔ´Ï´Ù. rcpthostsÅëÁ¦ÆÄÀÏÀ̸§Àº SMTP RCPT (¼ö½ÅÀÚ) ¸í·É¾î¿¡¼ À¯·¡ÇÕ´Ï´Ù. SMTP ¼¼¼Ç¿¡¼ RCPT´Â ¸Þ¼¼Áö¼ö½ÅÀÎÀÇ ÁÖ¼Ò¸¦ ¹àÈ÷´Â µ¥ ¾¹´Ï´Ù. ±×·¯¸é rcpthosts´Â RCPT ÁÖ¼Ò¿¡ ³ªÅ¸³ª´Â À¯È¿ÇÑ È£½ºÆ®³×ÀÓÀ» ¸®½ºÆ®ÇÕ´Ï´Ù.
´ëºÎºÐÀÇ ´ÜÀÏ»ç¿ëÀÚ¿Í ¼Ò±Ô¸ð ¼¹ö´Â ¸±·¹À̸¦ ¿ÏÀüÈ÷ ±ÝÁöÇÒ ¼ö ÀÖÁö¸¸, ºÐ»êµÈ »ç¿ëÀÚ °øµ¿Ã¼¸¦ Áö¿øÇÏ·Á¸é »ç¿ëÀÚ¿¡°Ô¸¸Àº ¸±·¹ÀÌ¿ëÀ¸·Î ¼¹ö¸¦ ÀÌ¿ëÇÏ°Ô ÇÒ ¼ö ÀÖ´Â ¹æ¹ýÀÌ ÇÊ¿äÇÕ´Ï´Ù. ÀÌ°ÍÀº qmail-smtpd¿¡°Ô rcpthosts ÆÄÀÏÀ» ¹«½ÃÇϵµ·Ï tcpserver¸¦ ½á¼ RELAYCLIENTȯ°æº¯¼ö¸¦ Á¤ÇÏ¸é µË´Ï´Ù.
º»¹®¼ÀÇ ¼³Ä¡Áö½Ã»çÇ×À» µû¸£¸é, ¸±·¹À̼±ÅÃÀº ±âº»ÀÔ´Ï´Ù. Ŭ¶óÀ̾ðÆ®¿¡°Ô ¸±·¹ÀÌÁ¢±Ù±ÇÇÑÀ» ÁÖ·Á¸é /etc/tcp.smtp¿¡ ´ÙÀ½À» ÷°¡ÇϽʽÿÀ.
IP address of client:allow,RELAYCLIENT=""
±×¸®°í³ª¼ SMTP Á¢±Ù±ÇÇÑ µ¥ÀÌÅͺ£À̽º¸¦ ÀçÄÄÆÄÀÏÇϽʽÿÀ.
tcprules /etc/tcp.smtp.cdb /etc/tcp.smtp.tmp < /etc/tcp.smtp chmod 644 /etc/tcp.smtp*
°ø½Ä¼³Ä¡Áö½Ã»çÇ×À» µû¶ú´Ù¸é, Chris JohnsonÀÌ Å¥¸ÞÀÏÀÌ Æ¯Á¤È£½ºÆ®¿¡°Ô¸¸ ¸±·¹À̸¦ Çã¿ëÇϵµ·Ï ¼³Á¤ÇÏ´Â ¹æ¹ýÀ» ÀûÀ¸¼ÌÀ¸´Ï http://www.palomine.net/qmail/selectiverelay.html¸¦ Âü°íÇϵµ·Ï ÇϽʽÿÀ.
È£½ºÆ®°¡ ÇÑ À̸§ÀÌ»óÀ¸·Î ¾Ë·ÁÁö¸é, ¿¹¸¦ µé¾î¼ user@host1.exampleÀ» user@example.comÀ̳ª user@mail.example.com µîÀ¸·Î ÀûÀ» ¼ö ÀÖ´Ù¸é, Å¥¸ÞÀÏ¿¡ ÀÌ·± ³»¿ëÀ» ¾Ë·Á¼ ¾î¶² ÁÖ¼Ò·Î ³»ºÎ¿¡¼ Àü´ÞÇÒ Áö, ¿ø°Ý½Ã½ºÅÛ¿¡¼ ¾î¶² ¸Þ¼¼Áö¸¦ ¹ÞÀ» Áî µîÀ» ¾Ë°Ô ÇÕ´Ï´Ù.
±×·¸°Ô ÇÏ·Á¸é, ÅëÁ¦ÆÄÀÏ µÎ °³¿¡ ¸ðµç À̸§À» ÷°¡Çϱ⸸ ÇÏ¸é µË´Ï´Ù.
¹öÃò¾óµµ¸ÞÀÎÀº ÀüÇ׸ñ¿¡¼ ¸»¾¸µå¸° ´ÙÁßÈ£½ºÆ®³×ÀÓ°ú ºñ½ÁÇÕ´Ï´Ù¸¸, ¸î°¡Áö Áß¿äÇÑ Â÷ÀÌÁ¡ÀÌ ÀÖ½À´Ï´Ù. ù°·Î, example.net¿¡ virtual.example.comÀ̶ó´Â ¹öÃò¾óµµ¸ÞÀÎÀÌ ÀÖ´Ù¸é, joe@example.net¿¡°Ô º¸³½ ¸Þ¼¼Áö´Â ´ë°³ joe@virturl.example.comÀ¸·Î º¸³½ ¸ÞÁ¦Áö¿Í °°Àº ¸áº¹½º¿¡¼ ³¡³ªÁö ¾Ê½À´Ï´Ù. ¹öÃ߾󵵸ÞÀο¡ ´ëÇÑ À̸§Àº º°°³ÀÔ´Ï´Ù.
Å¥¸ÞÀÏ¿¡¼ ¹öÃò¾óµµ¸ÞÀÎÀº virtualdomainsÆÄÀÏ¿¡ ¼³Á¤µÇ´Âµ¥, ´ÙÀ½Çü½ÄÀ¸·Î Çϳª ¶Ç´Â ±× ÀÌ»óÀ» Àû½À´Ï´Ù.
Å¥¸ÞÀÏÀº user@domainÀ» prepend-user@domainÀ¸·Î º¯È¯ÇÏ°í, ±× °á°ú¸¦ µµ¸ÞÀÎÀÌ ·ÎÄÃÀÎ °Íó·³ Ãë±ÞÇÕ´Ï´Ù. user@ºÎºÐÀº ¼±ÅÃÀÔ´Ï´Ù. »ý·«Çϸé, ¸ðµç @domainÁÖ¼Ò¿Í ÀÏÄ¡ÇÕ´Ï´Ù.
À§ÀÇ example¾¾³ª¸®¿À¸¦ ´Ù½Ã º¸¸é, example.netÀÇ ¸á¾Öµå¹ÎÀÌ john»ç¿ëÀÚÀÇ ¾Öµå¹Î ÅëÁ¦ÇÏ¿¡ virtual.example.comÀ̶ó´Â ¹öÃò¾óµµ¸ÞÀÎÀ» ¸¸µé±â À§Çؼ´Â ´ÙÀ½°ú °°ÀÌ virtualdomains¿¡ ½á³Ö¾î¾ß ÇÕ´Ï´Ù.
virtual.example.com:john
joe@virtual.example.com·Î µé¾î¿À´Â ¸Þ¼¼Áö´Â john-joe@virtual.example.comÀ¸·Î ½áÁö°í, ³»ºÎ¿¡¼ Àü´ÞµË´Ï´Ù. johnÀÌ ¾î¶»°Ô ¹öÃò¾óµµ¸ÞÀÎÀ» °ü¸®ÇÏ´Â Áö .qmailÇ׸ñÀÇ ÁÖ¼Ò¿¬Àå ºÎÇ׸ñÀ» º¸½Ã±â ¹Ù¶ø´Ï´Ù.
´ÙÁßÈ£½ºÆ®³×ÀÓ°ú °°ÀÌ ¸ðµç ¹öÃò¾óµµ¸ÞÀÎÀº rcpthosts¿¡ ¸®½ºÆ®µÇ¾î¼ qmail-smtpd°¡ ±×°÷À¸·Î ÁÖ¼ÒµÈ ¸Þ¼¼ÁöµéÀ» ¹Þ¾ÆµéÀÌ°Ô ÇÕ´Ï´Ù. ±×·¸Áö¸¸, ´ÙÁßÈ£½ºÆ®³×ÀÓ°ú Ʋ¸°Á¡Àº ¹öÃò¾óµµ¸ÞÀÎÀ» locals¿¡ ÷°¡Çؼ´Â ¾ÈµË´Ï´Ù
-------------------------------------------------------------------------------- À¯ÀÇÁ¡: DNS¿Í MX±â·ÏÀº ¹öÃò¾óµµ¸ÞÀÎÀ¸·Î °¡´Â ¸Þ¼¼Áö¸¦ ÀûÀýÇÑ ¸á¼¹ö·Î µ¹¸®µµ·Ï ¼³Ä¡µÇ¾î¾ß ÇÕ´Ï´Ù. ÀÌ°ÍÀº ³×ÀÓ¼¹ö¾Öµå¹ÎÀÌ ÇÒÀÏÀÌ°í, º» °¡À̵åÀÇ ¹üÀ§¸¦ ¹þ¾î³³´Ï´Ù. --------------------------------------------------------------------------------
Å¥¸ÞÀÏÀÇ Ç¥ÁØ ¾Ù¸®¾î½º±â¼úÀº Å¥¸ÞÀÏÀÇ ·ÎÄÃÀü´Þ±â¼úÀÌ ÀÚ¿¬È÷ ¹ßÀüÇÑ °ÍÀÔ´Ï´Ù. qmail-localÀº localpart@hostÀ» ÁÖ¼Ò·Î ÇÏ´Â ¸Þ¼¼Áö¸¦ localpart¶ó´Â À̸§ÀÇ ·ÎÄûç¿ëÀÚ¿¡°Ô Àü´ÞÇÏ·Á°í ÇÕ´Ï´Ù. ¸Â´Â »ç¿ëÀÚ°¡ ¾øÀ¸¸é ¸Þ¼¼Áö´Â Àüü Å¥¸ÞÀϽýºÅÛ¿¡¼ /var/qmail/alias°¡ Ȩµð·ºÅ丮ÀÎ pseudo-user ¾Ù¸®¾î½º »ç¿ëÀÚ¿¡°Ô Àü´ÞµË´Ï´Ù.
¿¹¸¦ µé¾î ¸Þ¼¼Áö¸¦ tom»ç¿ëÀÚ¿¡°Ô ȸ¼ÛÇÏ´Â info@example.com¾Ù¸®¾î½º¸¦ ¸¸µé°íÀÚ ÇÑ´Ù°í ÇսôÙ. example.com¿¡¼ ·í»ç¿ëÀڷμ ´ÙÀ½°ú °°ÀÌ ÇÕ´Ï´Ù.
echo tom > /var/qmail/alias/.qmail-info
.qmailÇ׸ñ°ú ÁÖ¼Ò¿¬ÀåºÎÇ׸ñ¿¡¼ ¾î¶² ¾Ù¸®¾î½º°¡ ÀÖ´Â Áö Á¤ÇÏ´Â .qmailÆÄÀÏÀ» ¾î¶»°Ô ¸¸µé°í, Àü´ÞµÇ´Â ¸Þ¼¼Áö·Î ¹«¾ùÀ» ÇØ¾ß ÇÏ´Â Áö ¼³¸íÇÕ´Ï´Ù.
Å¥¸ÞÀÏ¿¡¼ ¾Ù¸®¾î½º°¡ ½ÇÇàµÇ´Â ¹æ½Ä¶§¹®¿¡ ¾Ù¸®¾î½º°¡ Á¤´çÇÑ »ç¿ëÀÚ Àü´ÞÀ» ¹«½ÃÇÒ ¼ö´Â ¾ø´Ù´Â °ÍÀ» À¯ÀÇÇϽʽÿÀ.
fastforwardÆÐÄÉÁö¿¡´Â SendmailÀÇ ¾Ù¸®¾î½º µ¥ÀÌÅͺ£À̽º¿Í ȣȯÇÏ´Â ´ÜÀÏÆÄÀÏ¿¡ ´ÙÁß¾Ù¸®¾î½º¸¦ Àû´Â ´ëü°¡´É ¾Ù¸®¾î½º±â¼úÀÌ ÀÖ½À´Ï´Ù.
´ÙÀ½ Ç׸ñÀÎ qmail-users¿¡¼ ¾Ù¸®¾î½º¸¦ ½ÇÇàÇÒ ¼ö ÀÖ´Â ´Ù¸¥ ±â¼úÀ» ¼³¸íÇÕ´Ï´Ù.
qmail-users´Â »ç¿ëÀÚ¿¡°Ô ÁÖ¼Ò¸¦ ÇÒ´çÇÏ´Â ½Ã½ºÅÛÀÔ´Ï´Ù. ¼³Á¤ÆÄÀϵéÀÌ /var/qmail/users¿¡ ³õÀÔ´Ï´Ù. ÇÒ´çÆÄÀÏÀº ÇÒ´çÅ×À̺íÀÔ´Ï´Ù. simple°ú wildcard µî µÎ Á¾·ùÀÇ ÇÒ´çÀÌ ÀÖ½À´Ï´Ù.
-------------------------------------------------------------------------------- À¯ÀÇÁ¡: assignÀº ÇÑ ÁÙ¿¡ ÇÒ´çµéÀ» °®´Âµ¥, ´ÙÀ½ÁÙ¿¡ ¸¶Ä§Ç¥¸¦ Àû¾îÁÝ´Ï´Ù. assignÀ» ¼öµ¿À¸·Î ¸¸µå½Ã¸é ¸¶Ä§Ç¥ÁÙÀ» ÀØÁö ¸¶½Ê½Ã¿À. ---------------------------------------------------------------------------------
°£´ÜÇÑ ÇÒ´çÀº ´ÙÀ½°ú °°½À´Ï´Ù.
=address:user:uid:gid:directory:dash:extension:
address·Î ¹ÞÀº ¸Þ¼¼Áö´Â user»ç¿ëÀÚ·Î ÀÛµ¿Çϴµ¥, ƯÁ¤ uid¿Í gid·Î Çϸç, directory/.qmaildashextensionÆÄÀÏ¿¡ ¸Þ¼¼Áö¸¦ ¾î¶»°Ô Àü´ÞÇØ¾ß ÇÏ´Â Áö¸¦ ±ÔÁ¤ÇÑ´Ù´Â ¶æÀÔ´Ï´Ù.
¿ÍÀϵåÄ«µå ÇÒ´çÀº ´ÙÀ½°ú °°½À´Ï´Ù.
+prefix:user:uid:gid:directory:dash:prepend:
prefixÇü½ÄÀÇ ÁÖ¼Ò·Î ¼ö½ÅµÈ ¸Þ¼¼Áö´Â user»ç¿ëÀÚ·Î ÀÛµ¿Çϴµ¥, ƯÁ¤ uid¿Í gid·Î Çϸç, directory/.qmaildashprependÆÄÀÏ¿¡ ¸Þ¼¼Áö¸¦ ¾î¶»°Ô Àü´ÞÇØ¾ß ÇÏ´Â Áö¸¦ ±ÔÁ¤ÇÑ´Ù´Â ¶æÀÔ´Ï´Ù.
qmail-user¿¡´Â µµ¿ì¹Ì ÇÁ·Î±×·¥ÀÌ µÎ °³ Àִµ¥, qmail-newu¿Í qmail-pw2uÀÔ´Ï´Ù.
qmail-newu´Â assignÆÄÀÏÀ» ó¸®Çؼ /var/qmail/users¿¡ cdb¶ó´Â contstant µ¥ÀÌÅͺ£À̽º(CDB)ÆÄÀÏÀ» ¸¸µê´Ï´Ù. CDB´Â ¹ÙÀ̳ʸ® Çü½ÄÀ̶ó¼ ÇÒ´çÀÌ ¼öõ°³¶óµµ qmail-lspawnÀ¸·Î ¸Å¿ì »¡¸® Á¢±ÙÇÕ´Ï´Ù.
qmail-pw2u´Â ½Ã½ºÅÛ»ç¿ëÀÚµ¥ÀÌÅͺ£À̽ºÀÎ /etc/passwd¸¦ assign¿¡ ÀûÇÕÇÑ ÇÒ´çÀ¸·Î º¯È¯ÇÕ´Ï´Ù. qmail-pw2u´Â º¯È¯±ÔÄ¢À» °íÄ¡´Â ÆÄÀÏ ¸î°³¸¦ »ç¿ëÇÕ´Ï´Ù.
--------------------------------------------------------------------------------- À¯ÀÇÁ¡: qmail-pw2u¸¦ »ç¿ëÇϸé, »ç¿ëÀÚ¸¦ Ãß°¡, »èÁ¦Çϰųª UID³ª GID¸¦ ¹Ù²Ü ¶§¸¶´Ù qmail-pw2u¿Í qmail-newu¸¦ Àç°¡µ¿ÇÏ¼Å¾ß ÇÕ´Ï´Ù. ---------------------------------------------------------------------------------