ɬÍפʥե¡¥¤¥ë

qmail-1.03.tar.gz
fileqmail-date-localtime.patch
ucspi-tcp-0.88.tzr.gz
vpopmail-5.4.33.tar.gz
autorespond-2.0.4.tar.gz
ezmlm-0.53.tar.gz
ezmlm-idx-0.40.tar.gz
fileezmlm-idx-0.53.400.unified_41.patch
qmailadmin-1.2.16.tar.gz

¾¥¨¥é¡¼Âкö¥Ñ¥Ã¥Á
fileqmail-1.03.errno.patch
fileucspi-tcp-0.88.errno.patch
fileqmail-103.patch

¥°¥ë¡¼¥×¡¦¥æ¡¼¥¶¡¼¤ÎºîÀ®

mkdir /var/qmail
/usr/sbin/groupadd nofiles
/usr/sbin/useradd -g nofiles -d /var/qmail/alias alias
/usr/sbin/useradd -g nofiles -d /var/qmail -s /bin/false qmaild
/usr/sbin/useradd -g nofiles -d /var/qmail -s /bin/false qmaill
/usr/sbin/useradd -g nofiles -d /var/qmail -s /bin/false qmailp
/usr/sbin/groupadd qmail
/usr/sbin/useradd -g qmail -d /var/qmail -s /bin/false qmailq
/usr/sbin/useradd -g qmail -d /var/qmail -s /bin/false qmailr
/usr/sbin/useradd -g qmail -d /var/qmail -s /bin/false qmails

qmail¥¤¥ó¥¹¥È¡¼¥ë

# tar xvfz qmail-1.03.tar.gz
# cd qmail-1.03 
# patch < ../qmail-date-localtime.patch
# patch < ../qmail-1.03.errno.patch
# patch < ../qmail-103.patch
# make
# make setup check
# ./config
# ./config-fast ¥É¥á¥¤¥ó̾
# cp /var/qmail/boot/home /var/qmail/rc
# vi /var/qmail/rc

./Mailbox ¤ÎÉôʬ¤ò ./Maildir/ (¢«ºÇ¸å¤Î¥¹¥é¥Ã¥·¥å¤¬½ÅÍ×)

sendmailºï½ü

Æþ¤Ã¤Æ¤¤¤ì¤Ð°Í¸´ØÏ¢¥Ñ¥Ã¥±¡¼¥¸¤â´Þ¤á¤Æºï½ü

# rpm -qa | grep sendmail
# rpm -e sendmail
# rpm -qa | grep postfix
# rpm -e postfix
# ln -s /var/qmail/bin/sendmail /usr/lib/sendmail
# ln -s /var/qmail/bin/sendmail /usr/sbin/sendmail

CentOS6.2¤Ç¤Ïpostfix¤¬É¸½à¤Î¤è¤¦¤Ê¤Î¤Ç¡¢¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤Ï¶¯À©¾å½ñ¤­

# ln -sf /var/qmail/bin/sendmail /usr/lib/sendmail
# ln -sf /var/qmail/bin/sendmail /usr/sbin/sendmail

tcpserver¥¤¥ó¥¹¥È¡¼¥ë

# cd ..
# tar xvfz ucspi-tcp-0.88.tar.gz
# cd ucspi-tcp-0.88
# patch < ../ucspi-tcp-0.88.errno.patch
# make
# make setup check

ezmlm-idx¥¤¥ó¥¹¥È¡¼¥ë

# cd ..
# tar xvzf ezmlm-0.53.tar.gz
# tar xvzf ezmlm-idx-0.40.tar.gz
# mv ezmlm-0.53/issub.c ezmlm-0.53/issub.bak
# mv ezmlm-0.53/subscribe.c ezmlm-0.53/subscribe.bak
# mv -f ezmlm-idx-0.40/* ezmlm-0.53
# cd ezmlm-0.53
# patch < idx.patch
# patch < ../ezmlm-idx-0.53.400.unified_41.patch
# make clean
# make
# make man
# cp ezmlmrc.jp ezmlmrc
# make setup

¤³¤Î¤Þ¤Þ¤À¤È¥á¡¼¥ê¥ó¥°¥ê¥¹¥È¤Ï±¿±Ä¤Ç¤­¤Ê¤¤¤é¤·¤¤

autorespond¥¤¥ó¥¹¥È¡¼¥ë

# cd ..
# tar xvzf autorespond-2.0.4.tar.gz
# cd autorespond-2.0.4

autorespond¤ò¥³¥ó¥Ñ¥¤¥ë¤¹¤ëÁ°¤Ëautorespond.c¤Î265¹ÔÌܤ˼¡¤Î1¹Ô¤òÁÞÆþ¤·¤Æ¤«¤é¥³¥ó¥Ñ¥¤¥ë¡£

:265
265# fprintf(fdm,"Content-Type: text/plain; charset=\"ISO-2022-JP\"\n" );
266# mfp = fopen( msg, "rb" );
# gcc -Wall -o autorespond autorespond.c
# cp autorespond /var/qmail/bin/

vpopmail¥¤¥ó¥¹¥È¡¼¥ë

# /usr/sbin/groupadd vchkpw
# /usr/sbin/useradd -g vchkpw -s /bin/false vpopmail
# cd ..
# tar xvzf vpopmail-5.4.33.tar.gz
# cd vpopmail-5.4.33

--enable-roaming-users : POP before SMTPµ¡Ç½¤ò»ÈÍÑ
1ʸ»ú¤Î¥¢¥«¥¦¥ó¥È¤òºî¤ë¾ì¹ç¤Ï¥½¡¼¥¹¤ò½ñ¤­´¹¤¨¤ëɬÍפ¬¤¢¤ë(ÊÀ³²¤¢¤ë¤«¤â)

# ./configure --enable-roaming-users=y
# make
# make install-strip

cron¤ÎÀßÄê

vpopmail¤¬smtpÍѤ˵ö²Ä¤·¤¿IP¤òËè»þ30ʬ¤ËÄê´üŪ¤ËÁݽü¤¹¤ë¤è¤¦¤ËÀßÄê

# crontab -e
30 * * * * /home/vpopmail/bin/clearopensmtp

qmailadmin¥¤¥ó¥¹¥È¡¼¥ë

# cd ..
# tar xvzf qmailadmin-1.2.16.tar.gz
# cd qmailadmin-1.2.16
# ./configure --enable-htmldir=/usr/local/apache2/htdocs \
--enable-cgibindir=/usr/local/apache2/cgi-bin \
--enable-imagedir=/usr/local/apache2/htdocs/images/qmailadmin \
--enable-imageurl=/images/qmailadmin
# make clean
# make
# make install-strip

¥Õ¥¡¥¤¥ë¤ÎÀèƬ¤Î¹Ô¤òiso-2022-jp¤ËÊѹ¹¤·¡¢JIS¥³¡¼¥É¤ËÊÑ´¹

# vi /usr/local/share/qmailadmin/lang/ja
# cd /usr/local/share/qmailadmin/lang
# lv -Oj ja > ja.jis
# mv ja.jis ja

lv¤¬Ìµ¤¤¾ì¹ç¤Ï

# nkf -j ja > ja.jis

¥É¥á¥¤¥óÄɲÃ

example.comÉôʬ¤ÏÀßÄꤹ¤ë¥É¥á¥¤¥ó¤ò»ØÄê

# cd /home/vpopmail/bin
# ./vadddomain example.com
Please enter password for postmaster: ****
enter password again: ****

Ê̤Υɥᥤ¥ó¤ò¥¨¥ê¥¢¥¹¤È¤·¤Æ»ÈÍѤ¹¤ë¾ì¹ç¤Ï

# ./vaddaliasdomain example-alias.com example.com

ÍÆÎÌÀ©¸Â

ÆÃÄê¤Î¥á¡¼¥ë¥É¥ì¥¹¤ò5MB¤ËÀ©¸Â¤¹¤ë¾ì¹ç

# /home/vpopmail/bin/vsetuserquota ¥á¡¼¥ë¥¢¥É¥ì¥¹ 5m

¥É¥á¥¤¥óÁ´ÂΤÇ5MB¤ËÀ©¸Â¤¹¤ë¾ì¹ç

# /home/vpopmail/bin/vsetuserquota ¥É¥á¥¤¥ó 5m

À©¸Â¤ò¤Ï¤º¤¹¾ì¹ç

# /home/vpopmail/bin/vsetuserquota ¥á¡¼¥ë¥¢¥É¥ì¥¹ noquota

¥Ç¥Õ¥©¥ë¥ÈÀ©¸Â¤ò¤¹¤ë¾ì¹ç
10MB = 10 * 1024 * 1024

# su vpopmail
$ cd /home/vpopmail/domains/example.com
$ vi .qmailadmin-limits
default_quota 10485760

µ¯Æ°¥¹¥¯¥ê¥×¥ÈºîÀ®

# vi /etc/rc.d/init.d/qmaild
#!/bin/sh
#
# Startup script for the Qmail&VPopmail
#
# chkconfig: 345 85 15
# description: QMAIL
# processname: qmaild
# pidfile: /var/run/qmaild.pid

# Source function library.
. /etc/rc.d/init.d/functions

# See how we were called.
case "$1" in
  start)
        echo -n "Starting qmaild: "
        /usr/local/bin/tcpserver -H -R -x /home/vpopmail/etc/tcp.smtp.cdb \
         -c 100 -u qmaild -g nofiles 0 smtp \
          /var/qmail/bin/qmail-smtpd 2>&1 \
           | /var/qmail/bin/splogger smtpd &
        /usr/local/bin/tcpserver -H -R -l0 0 110 \
         /var/qmail/bin/qmail-popup example.com \
          /home/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir 2>&1 \
           | /var/qmail/bin/splogger pop3d &
        /var/qmail/rc &
        echo "ok"
        touch /var/lock/subsys/qmaild
        ;;
  stop)
        echo -n "Shutting down qmail: "
        kill $(/sbin/pidof tcpserver)
        kill $(/sbin/pidof qmail-send)
        echo "ok"
        rm -f /var/lock/subsys/qmaild
        ;;
  restart)
        $0 stop
        $0 start
        ;;
  *)
        echo "Usage: $0 {start|stop|restart}"
        exit 1
esac
exit 0
# chmod 755 /etc/rc.d/init.d/qmaild
# /sbin/chkconfig --add qmaild

qmail¤À¤±¤Î¾ì¹ç¤È°ã¤Ã¤Æ tcp.smtp.cdb ¤Î¾ì½ê¤Ï /etc/tcp.smtp.cdb ¤Ç¤Ï¤Ê¤¯¤Æ /home/vpopmail/etc/tcp.smtp.cdb ¤Ë¤Ê¤ë¤Î¤ÇÃí°Õ
µ¯Æ°»þ¤Ë /usr/local/bin/tcpserver -H -R -x /etc/tcp.smtp.cdb ¤È¤ä¤Ã¤Æ¤·¤Þ¤¦¤È

553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)
¤Ê¤É¤ÈÅܤé¤ì¤Æ¤·¤Þ¤¦¤Î¤ÇÃí°Õ(»ä¤Ï¤³¤ì¤Ëµ¤¤¬ÉÕ¤«¤º¤Ë¤Ï¤Þ¤ê¤Þ¤·¤¿

²èÁü¤¬¸«¤¨¤ë¤è¤¦¤Ëhttpd.conf¤ËAliasÀßÄê

Alias /images/qmailadmin/ "/usr/local/apache2/htdocs/images/qmailadmin/"

http://example.com/cgi-bin/qmailadmin ¤Ë¥¢¥¯¥»¥¹¤·¤Æ´ÉÍý¤¹¤ë

¥¯¥é¥¤¥¢¥ó¥È¥½¥Õ¥ÈÀßÄê

¥æ¡¼¥¶¡¼ID : ºîÀ®¥¢¥«¥¦¥ó¥È%example.com (% ¤ò¤Ä¤±¤ë¤È¤³¤í¤ËÃí°Õ)

Á÷¿®¤Ï¼õ¿®¸å¤Ë¤·¤«¤Ç¤­¤Ê¤¤¤Î¤ÇÃí°Õ

smtp¤¬Î©¤Á¾å¤¬¤é¤Ê¤¤¡Ê550 relay not permitted ¥¨¥é¡¼¡Ë

³°Éô¤«¤é¥á¡¼¥ë¤òÁ÷¿®¤·¤Æ¤â 550 relay not permitted ¤Î¥¨¥é¡¼¥á¡¼¥ë¤¬Ê֤äƤ­¤ÆÁ÷¿®¤¬¤Ç¤­¤Ê¤¤¾õÂÖ¡£

¥µ¡¼¥Ð¤ò¸«¤ë¤Èsmtp¤¬Î©¤Á¾å¤¬¤Ã¤Æ¤¤¤Ê¤¤¾õÂÖ¡£

¥á¡¼¥ë¤Î¥í¥°¤ò¸«¤ë¤È¡¢tcpserver: fatal: unable to bind: address already used ¤Î¥¨¥é¡¼¡£

25È֥ݡ¼¥È¤¬¤¹¤Ç¤Ë»ÈÍѤµ¤ì¤Æ¤¤¤ë¾õÂÖ¡£

# netstat -anp | grep LIST

¤Ç³Îǧ¤¹¤ë¤È¡¢exim¤È¤¤¤¦¤â¤Î¤¬¥Ý¡¼¥È¤ò»ÈÍѤ·¤Æ¤¤¤Þ¤·¤¿¡£

# /etc/rc.d/init.d/exim stop

¤Ç¥µ¡¼¥Ó¥¹¤òÄä»ß¡£
¤Þ¤¿¡¢¥µ¡¼¥ÐºÆµ¯Æ°¤Ê¤É¤Çexim¤¬µ¯Æ°¤·¤Ê¤¤¤è¤¦¤Ë¥µ¡¼¥Ó¥¹¤Î¼«Æ°µ¯Æ°¤ò²ò½ü¡£

¥¹¥Ñ¥àÂкö

ÆÃÄê¤Î¥¢¥É¥ì¥¹¤ä¥É¥á¥¤¥ó¤«¤éÁ÷¤é¤ì¤Æ¤¯¤ë¾ì¹ç¤Ï°Ê²¼¤Î¥Õ¥¡¥¤¥ë¤òºîÀ®¤·¤Æµ­½Ò¤·¤Æ¤ª¤±¤Ð¼õ¿®µñÈݤǤ­¤ë¤è¤¦¤Ç¤¹¡£

# vi /var/qmail/control/badmailfrom
@example.com
test@example.com

źÉÕ¥Õ¥¡¥¤¥ë: fileqmail-103.patch 1324·ï [¾ÜºÙ] fileqmail-1.03.errno.patch 758·ï [¾ÜºÙ] fileezmlm-idx-0.53.400.unified_41.patch 813·ï [¾ÜºÙ] fileqmail-date-localtime.patch 715·ï [¾ÜºÙ] fileucspi-tcp-0.88.errno.patch 707·ï [¾ÜºÙ]

¥È¥Ã¥×   ÊÔ½¸ Åà·ë º¹Ê¬ ¥Ð¥Ã¥¯¥¢¥Ã¥× źÉÕ Ê£À½ ̾Á°Êѹ¹ ¥ê¥í¡¼¥É   ¿·µ¬ °ìÍ÷ ¸¡º÷ ºÇ½ª¹¹¿·   ¥Ø¥ë¥×   ºÇ½ª¹¹¿·¤ÎRSS
Last-modified: 2021-09-19 (Æü) 19:09:33