qmail 에서 virtual 도메인 설정

/home/vpopmail/etc/
defaultdomain #파일
test.com

/var/qmail/control/
defaultdomain #파일 내용 수정
test.com
test1.com
test2.com
test3.com
test4.com

/var/qmail/control/
virtualdomains 파일 내용 수정

#virtualdomain:기본도메인
test1.co.kr:test.co.kr
test2.co.kr:test.co.kr
test3.co.kr:test.co.kr
test4.co.kr:test.co.kr

/var/qmail/supervise/qmail-smtpd
run #파일 수정

#!/bin/sh
QMAILDUID=id -u vpopmail
NOFILESGID=id -g vpopmail
MAXSMTPD=cat /var/qmail/control/concurrencyincoming
QMAILQUEUE=”/var/qmail/bin/simscan”
export QMAILQUEUE

rbldns=”-r bl.spamcop.net”
rbldns=”-r spamlist.or.kr”
rbldns=”-r dnsbl.sorbs.net”
rbldns=”-r blackholes.mail-abuse.org”
rbldns=”-r cbl.abuseat.org”
rbldns=”-r dnsbl.njabl.org”
rbldns=”-r list.dsbl.org”
rbldns=”-r multi.surbl.org”
rbldns=”-r opm.blitzed.org”
rbldns=”-r relays.mail-abuse.org”
rbldns=”-r sbl-xbl.spamhaus.org”
rbldns=”-r zen.spamhaus.org”

exec /usr/local/bin/softlimit -m 200000000 \
/usr/local/bin/tcpserver -v -H -R -l 0 \
-x /home/vpopmail/etc/tcp.smtp.cdb -c “$MAXSMTPD” \
-u “$QMAILDUID” -g “$NOFILESGID” 0 smtp \
/usr/local/bin/rblsmtpd -t 30 -b $rbldns \
/var/qmail/bin/qmail-smtpd \
/home/vpopmail/bin/vchkpw /bin/true 2>&1