E D R , A S I H C RSS

qmail_badung (rev. 1.3)

FrontPage qmail_badung

qmail ;;
emerge -C sendmail ssmtp

qmail°ú courier-authlib°ú courier-imap¼³Ä¡
# USE="maildir ssl imap" emerge qmail courier-authlib courier-imap

°³ÀÎ Á¤º¸ ÀÔ·Â
# cat /var/qmail/control/servercert.cnf
# $Header: /var/cvsroot/gentoo-x86/mail-mta/qmail/files/servercert.cnf,v
1.2 2004/07/18 03:29:51 dragonheart Exp $ # Robin H. Johnson <robbat2@gentoo.org> - October 17, 2003 # This is the openssl config file to generate keys for qmail # It is read by mkservercert

req
# you can increase this value, but be aware that it will make things much slower # this should be a power of 2!
default_bits = 1024
# leave the rest of these alone!
encrypt_key = yes
distinguished_name = req_d
prompt = no

req_dn
# 2-Letter ISO country code
C=US
# FULL name of state/province/district
# NO abbreviations!ST=Alabama
# FULL name of city
# NO abbreviations!
L=Seoul
# Full Name of your organization
# NO abbreviations!
O=badung mail
# Leave this alone unless specifically need to change it!
OU=Automatically-generated Qmail SMTP SSL key # This should be a FQDN that resolves to the IP of your server CN=badung # This should be the email address for the administrator of the server emailAddress=postmaster@badung.dnip.net
# Leave this alone!
cert_type
nsCertType = server
# ebuild /var/db/pkg/mail-mta/qmail-1.03-r*/qmail-1.03-r*.ebuild config # cd /var/qmail/alias # echo badung > .qmail-root # echo vadung > .qmail-postmaster # echo badung > .qmail-mailer-daemon badung´ë½Å¿¡ ±î³ª¸® ³ÖÀ¸¸é µÇ´Â°Å ¾Æ½ÇÅ×°í;

# rc-update add svscan default
# /etc/init.d/svscan start
# cd /service
# ln -s /var/qmail/supervise/qmail-send qmail-send # ssh badung@badung # maildirmake .maildir # qmail-inject badung << EOF
est badung e-mail!!
OF
# cd ~/.maildir/new
# ls -al
-rw------- 1 badung users 321 1¿ù 12 00:59 1105459142.16894.badung,S=246

ÀÌ»ó qmail³¡

courier pop/imap
Àúµµ ¸ô¶ú´Âµ¥ courier-authlibÇÏ°í courier-imapÀ» µÑ´Ù ¼³Ä¡ÇØ¾ß ÇѴٳ׿ä; À§¿¡¼­ ¼³Ä¡ ÇßÀ¸¹Ç·Î; # cd /etc/courier/authlib # nano authdaemonrc ¿©±â¼­ authmodulelist¸¦ authmodulelist="authpam authuserdb authshadow authcustom"
ÀÌ·¸°Ô Çß½À´Ï´Ù ¿ø·¡ authmysql ÀÌ ÀÖ¾úÁö¸¸ mysqlÀ» ¾È½á¼­ »©¹ö·È¾î¿ä ´Ù¸¥°Ç ¼Õ´í°Å ¾ø±¸¿ä

# cd /etc/courier-imap
# nano pop3d.cnfRANDFILE = /usr/share/pop3d.rand

req
default_bits = 1024
encrypt_key = yes
distinguished_name = req_dn
x509_extensions = cert_type
prompt = no

req_dn
C=US
ST=KoreaO=Courier Mail Server
OU=Automatically-generated POP3 SSL key
CN=badung
emailAddress=postmaster@badung.dnip.net


cert_type
nsCertType = server

# mkpop3dcert
# rc-update add courier-pop3d-ssl default # /etc/init.d/courier-pop3d-ssl start

# nano imapd.cnf
³»¿ëÀº pop3d.cnf¶û °°¾Æ¿ä Seoul Badung Korea ÀÌ·±°Í¸¸ ¹Ù²Ù¾ú¾î¿ä # mkimapdcert # rc-update add courier-imapd-ssl default # /etc/init.d/courier-imapd-ssl start

# cd /var/qmail/control
# nano conf-smtpd


# Configuration file for qmail-smtpd
# $Header: /var/cvsroot/gentoo-x86/mail-mta/qmail/files/conf-smtpd,v 1.3
2005/01
/03 21:31:33 hansmi Exp $

# Stuff to run before tcpserver
#QMAIL_TCPSERVER_PRE=""
# Stuff to run qmail-smtpd
#QMAIL_SMTP_PRE=""
# Stuff to after qmail-smtpd
#QMAIL_SMTP_POST=""

# this turns off the IDENT grab attempt on connecting TCPSERVER_OPTS="${TCPSERVER_OPTS} -R"

# fixcrio inserts missing CRs at the ends of lines. See:
# http://cr.yp.to/ucspi-tcp/fixcrio.html
# http://cr.yp.to/docs/smtplf.html
#QMAIL_SMTP_PRE="${QMAIL_SMTP_PRE} fixcrio"

# You might want to use rblsmtpd with this, but you need to fill in a RBL server here first# see http://cr.yp.to/ucspi-tcp/rblsmtpd.html for more details #QMAIL_SMTP_PRE="${QMAIL_SMTP_PRE} rblsmtpd -r RBL-SERVER"
# If you are interested in providing POP or IMAP before SMTP type relaying, # emerge relay-ctrl, then uncomment the next 2 lines #QMAIL_TCPSERVER_PRE="${QMAIL_TCPSERVER_PRE} envdir /etc/relay-ctrl relay-ctrl-c hdir"
#QMAIL_SMTP_PRE="${QMAIL_SMTP_PRE} relay-ctrl-check"
# In /etc/courier-imap/authdaemonrc add the next line to the end:
#authmodulelist="${authmodulelist} relay-ctrl-allow"
# Then in /etc/courier-imap/{imapd,imapd-ssl,pop3d,pop3d-ssl}
# Add this at the end
#PRERUN="${PRERUN} envdir /etc/relay-ctrl relay-ctrl-chdir"

# This next block is for SMTP-AUTH
# This provides the LOGIN, PLAIN and CRAM-MD5 types # the 'cmd5checkpw' used in $QMAIL_SMTP_AUTHCHECKPASSWORD supports
CRAM-MD5
# and reads it's data from /etc/poppasswd # see the manpage for cmd5checkpw for details on the passwords # uncomment the next four lines to enable SMTP-AUTH
QMAIL_SMTP_AUTHHOST=$(<${QMAIL_CONTROLDIR}/me)
-z "${QMAIL_SMTP_POST}" && QMAIL_SMTP_POST=/bin/true QMAIL_SMTP_CHECKPASSWORD="/bin/cmd5checkpw"
QMAIL_SMTP_POST="${QMAIL_SMTP_AUTHHOST} ${QMAIL_SMTP_CHECKPASSWORD} ${QMAIL_SMTP _POST}"


¸Ç ¸¶Áö¸·¿¡ 5ÁÙ Á¤µµ # ÁÖ¼® ÀÖ´ø°Å Ç®¾î Áá¾î¿ä

QMAIL_SMTP_CHECKPASSWORD to /var/vpopmail/bin/vchkpw) ÀÌ°Å´Â vpopmail»ç¿ë ÀÚ¿¡°Ô ÇØ´çµÇ´õ±º¿ä;;

# nano servercert.cnf ¿­¾î¼­ ÆÄÀÏ ³»¿ë °í´ë·Î ÀúÀå Çß±¸¿ä # rm -rf *.pem # mkservercert Ȥ½Ã ¹º°¡ ´Þ¶ó Áú±î ¾Æ±î ebuild ~ configÇßÁö¸¸ *.pemÆÄÀÏ Áö¿ì°í ´Ù½Ã »ý¼º # cd /service # ln -s /var/qmail/supervise/qmail-smtpd qmail-smtpd # /etc/init.d/svscan restart ¿©±â ±îÁö±¸¿ä Á¦°¡ ½ÇÆÐÇß´ø ÀÌÀ¯´Â /service¿¡ qmail-pop3d¸¦ ½ÇÇà½ÃÄÑ ¹ö·Á¼­ cou rier-imapÇÏ°í Ãæµ¹³ª¼­ ÀÎÁõÀ̾ȵƾú¾î¿ä ¤Ð.¤Ì º¸°í ÀÌ»óÇÑ ºÎºÐ ¸»¾¸ÇØ ÁÖ¼¼¿ä

# cat °¢Á¾ ÆÄÀÏ;
/var/qmail/controlÀÇ me locals rcpthostsµîµîÀº badung.dnip.netÀ¸·Î ÅëÀÏ rcpthosts´Â smtp»ç¿ëÇؼ­ ¸ÞÀÏ º¸³¾¶§ ÀÌ ¾È¿¡ ÁÖ¼Ò°¡ ¾øÀ¸¸é Çã¿ëÀÌ ¾ÈµÇ´õ±º¿ä badung@badung /var/qmail/control $ cat rcpthosts badung.dnip.net hanafos.com nate.com msn.com

ÀÌ·¸°Ô;
Âü /var/qmail/control/conf-pop3d¿¡¼­
QMAIL_POP3_CHECKPASSWORD="/bin/cmd5checkpw"
ÀÌ ºÎºÐ ÁÖ¼® Ç®¾ú¾î¿ä
±×¸®°í Àú´Â badung°¡ À¯Àú ³×ÀÓÀÌ°í À̸ÞÀÏ ÀÎÁõ ºñ¹øÀº ½ÇÁ¦·Î ½© ¾ÏÈ£·Î Á¢¼ÓÇß¾î¿ä jenix¿Ë ¸»·Î´Â ÀÎÁõ ¹æ½ÄÀ» ¹Ù²Ù°í ÇØ¾ß ºñ¹ø º¯°æÀÌ °¡´ÉÇϵ¥¿ä ÀÏ´Ü ¿©±â±îÁö;


* Ãß°¡¸ÞÀÏ 1¹ø
õµÕ»õ ±âÁØÀ¸·Î ¼³Á¤ÇϽǶ§¿ä
pop3 sms ssl üũÇؼ­ 9xxÆ÷Æ® ¾²¸é µÇ±¸¿ä
smtp´Â sslÀÌ ¾Æ´Ï¶ó TLSüũ ÇÏ¼Å¾ß ÇØ¿ä
±×¸®°í pop3 ¸ÞÀÏÀÎÁõ ¾ÏÈ£´Â ±î³¯¿Ë ½© Á¢¼ÓÇÒ¶§ ºñ¹øÀ̱¸¿ä
smtp ´Â /etc/poppasswdÆÄÀÏ ¾È¿¡ id:pw½ÄÀ¸·Î ÁöÁ¤ÇØÁÖ½Ã¸é ±×°Å »ç¿ëÇØ¿ä
°í·Î ±× ÆÄÀÏ µéÅ°¸é ½ºÆÔ¸ÞÀÏÀÇ ±Ù¿øÁö°¡ µÇ¿ä;
²¥¸£¸¤

* Ãß°¡¸ÞÀÏ 2¹ø
¿À´Ã ¾Æħ¿¡ jenix¿ËÀÌ ¾Ë·Á ÁֽŰǵ¥¿ä õµÕ»õ¿¡¼­ °èÁ¤ Ãß°¡ ÇÏ°í pop¿Í
smtp»ç¿ë½Ã ÀÚ²Ù ÀÎÁõ ⠶߸é¿ä /etc/courier-imap/pop3d.cnfÇÏ°í
/var/qmail/control/server...cnf ÀÌ ÆÄÀÏ ³»¿¡¼­ CN= ÀÌ ºÎºÐÀº ±î³ª¸® ÀÌ·¸
°Ô¸¸ ÇÏÁö ¸¶½Ã°í ½ÇÁ¦ µµ¸ÞÀÎÀ» Àû¾î¾ß ÇØ¿ä Àú°°Àº °æ¿ì
badung@badung.dnip.netÁß¿¡ badung.dnip.netºÎºÐ¸¸ Àû¾îÁá¾î¿ä Àú·¸°Ô °íÃÄ
ÁֽŠÈÄ¿¡´Â °¢ °¢ µð·ºÅ丮ÀÇ pop3d.pemÇÏ°í server...pemÀ» Áö¿ì½Ã°í mkpop
°Å½Ã±â¶û mkserver°Å½Ã±â¸¦ °¢ °¢ ½ÇÇàÇϽðí õµÕ»õ¸¦ »õ·Î ½ÇÇà ÇϽðí ÀÎ
Áõ¼­ °ü·Ã ¸» ¶ß¸é Ç×»ó Çã¿ëÇÏ°Ú´Ù°í üũ Çѹø¾¿¸¸ ÇØÁÖ½Ã¸é ´ÙÀ½ºÎÅÍ ¾È¶ß
³×¿ä ²Ù¹÷.
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2005-01-12 17:13:31
Processing time 0.0442 sec