FreeBSD/インストール10.1_4
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
]
開始行:
#contents
----------------------------
** courier-imap [#r1746252]
echo 'courier_authdaemond_enable="YES"' >> /etc/rc.conf
echo 'courier_imap_imapd_enable="YES"' >> /etc/rc.conf
echo 'courier_imap_imapd_ssl_enable="YES"' >> /etc/rc.conf
cd /usr/local/etc/courier-imap
cp imapd.cnf.dist imapd.cnf
vi imapd.cnf 編集
vi /usr/local/etc/courier-imap/imapd
- MAXDAEMONS=40
- MAXPERIP=4
+ MAXDAEMONS=400
+ MAXPERIP=20
cd /usr/local/share/courier-imap/
vi mkimapdcert 編集 有効期限 365 to 3650
./mkimapdcert
./mkdhparams
-- courier-unicode-1.4 のバージョンUPによる不具合解消
libcourier-unicode.so.1@ -> libcourier-unicode.so.3.0.0
** qmail [#ldcbcb72]
/var/qmail/scripts/enable-qmail
cd ~alias
echo '&info@zenno.com' > .qmail-root
echo '&root' > .qmail-postmaster
echo '&root' > .qmail-mailer-daemon
cd /var/qmail/control
touch badmailfrom
touch badmailto
echo '5000' > bouncemaxbytes
echo '120' > concurrencylocal
echo '120' > concurrencyremote
echo '10485760' > databytes
echo '#' > doublebounceto
echo '30' > maxrcpt
echo '21600' > queuelifetime
ln -s rcpthosts senderhosts
touch smtproutes
echo "#\!/bin/sh" > /var/qmail/rc
echo 'exec env - PATH="/var/qmail/bin:$PATH" \' >> /var/...
echo "qmail-start ./Maildir/" >> /var/qmail/rc
chmod +x /var/qmail/rc
** SSL証明書 [#n729712b]
cp /usr/local/share/courier-imap/imapd.pem /var/qmail/c...
CA 通す -- 未対応課題
** daemontools [#yf334e10]
echo 'svscan_enable="YES"' >> /etc/rc.conf
mkdir /var/qmail/services
cd /var/qmail/services
mkdir qmail smtpd smtpd2 smtpd3 smtpsd pop3d pop3sd
chmod +t *
mkdir qmail/log smtpd/log smtpd2/log smtpd3/log smtpsd/l...
cd qmail
echo "#\!/bin/sh" > run
echo "PATH=/var/qmail/bin:/usr/local/bin:/bin:/usr/bin" ...
echo "exec /var/qmail/rc" >> run
echo "#\!/bin/sh" > log/run
echo "exec /usr/local/bin/setuidgid qmaill /usr/local/bi...
echo "/var/log/qmail/qmail" >> log/run
cd ../smtpd
echo "#\!/bin/sh" > run
echo "PATH=/var/qmail/bin:/usr/local/bin:/bin:/usr/bin" ...
echo "exec tcpserver -c 120 -H -R -l $HOST -v -u 82 -g 8...
echo "-x /usr/local/vpopmail/etc/tcp.smtp0.cdb \" >> run
echo "0 smtp fixcrio recordio qmail-smtpd \" >> run
echo "$HOST /usr/local/vpopmail/bin/vchkpw false 2>&1" >...
echo "#\!/bin/sh" > log/run
echo "exec /usr/local/bin/setuidgid qmails /usr/local/bi...
echo "-* \" >> log/run
echo "+tcpserver:* \" >> log/run
echo "+*AUTH* \" >> log/run
echo "+*MAIL* \" >> log/run
echo "+*RCPT* \" >> log/run
echo "+*\>\ 4* \" >> log/run
echo "+*\>\ 5* \" >> log/run
echo "/var/log/qmail/smtpd" >> log/run
cd ../smtpd2
echo "#\!/bin/sh" > run
echo "PATH=/var/qmail/bin:/usr/local/bin:/bin:/usr/bin" ...
echo "exec tcpserver -c 120 -H -R -l $HOST -v -u 82 -g 8...
echo "-x /usr/local/vpopmail/etc/tcp.smtp.cdb \" >> run
echo "0 587 fixcrio recordio qmail-smtpd \" >> run
echo "$HOST /usr/local/vpopmail/bin/vchkpw false 2>&1" >...
echo "#\!/bin/sh" > log/run
echo "exec /usr/local/bin/setuidgid qmails /usr/local/bi...
echo "-* \" >> log/run
echo "+tcpserver:* \" >> log/run
echo "+*AUTH* \" >> log/run
echo "+*MAIL* \" >> log/run
echo "+*RCPT* \" >> log/run
echo "+*\>\ 4* \" >> log/run
echo "+*\>\ 5* \" >> log/run
echo "/var/log/qmail/smtpd2" >> log/run
cd ../smtpd3
echo "#\!/bin/sh" > run
echo "PATH=/var/qmail/bin:/usr/local/bin:/bin:/usr/bin" ...
echo "exec tcpserver -c 120 -H -R -l $HOST -v -u 82 -g 8...
echo "-x /usr/local/vpopmail/etc/tcp.smtp3.cdb \" >> run
echo "0 1587 fixcrio recordio qmail-smtpd \" >> run
echo "$HOST /usr/local/vpopmail/bin/vchkpw true 2>&1" >>...
echo "#\!/bin/sh" > log/run
echo "exec /usr/local/bin/setuidgid qmails /usr/local/bi...
echo "-* \" >> log/run
echo "+tcpserver:* \" >> log/run
echo "+*AUTH* \" >> log/run
echo "+*MAIL* \" >> log/run
echo "+*RCPT* \" >> log/run
echo "+*\>\ 4* \" >> log/run
echo "+*\>\ 5* \" >> log/run
echo "/var/log/qmail/smtpd3" >> log/run
cd ../smtpsd
echo "#\!/bin/sh" > run
echo "PATH=/var/qmail/bin:/usr/local/bin:/bin:/usr/bin" ...
echo "exec tcpserver -c 120 -H -R -l $HOST -v -u 82 -g 8...
echo "-x /usr/local/vpopmail/etc/tcp.smtp.cdb -s -n /var...
echo "0 smtps fixcrio recordio qmail-smtpd \" >> run
echo "$HOST /usr/local/vpopmail/bin/vchkpw false 2>&1" >...
echo "#\!/bin/sh" > log/run
echo "exec /usr/local/bin/setuidgid qmails /usr/local/bi...
echo "-* \" >> log/run
echo "+tcpserver:* \" >> log/run
echo "+*AUTH* \" >> log/run
echo "+*MAIL* \" >> log/run
echo "+*RCPT* \" >> log/run
echo "+*\>\ 4* \" >> log/run
echo "+*\>\ 5* \" >> log/run
echo "/var/log/qmail/smtpsd" >> log/run
cd ../pop3d
echo "#\!/bin/sh" > run
echo "PATH=/var/qmail/bin:/usr/local/bin:/bin:/usr/bin" ...
echo "exec tcpserver -HRv -c 600 -b 600 \" >> run
echo "-l0 0 pop3 recordio qmail-popup $HOST \" >> run
echo "/home/vpopmail/bin/vchkpw qmail-pop3d Maildir 2>&1...
echo "#\!/bin/sh" > log/run
echo "exec /usr/local/bin/setuidgid qmailp /usr/local/bi...
echo "-* \" >> log/run
echo "+tcpserver:* \" >> log/run
echo "+*USER* \" >> log/run
echo "+*PASS* \" >> log/run
echo "+*APOP* \" >> log/run
echo "+*-ERR* \" >> log/run
echo "/var/log/qmail/pop3d" >> log/run
cd ../pop3sd
echo "#\!/bin/sh" > run
echo "PATH=/var/qmail/bin:/usr/local/bin:/bin:/usr/bin" ...
echo "exec tcpserver -HRsv -c 120 -b 120 -n /var/qmail/c...
echo "-l0 0 pop3s recordio qmail-popup $HOST \" >> run
echo "/home/vpopmail/bin/vchkpw qmail-pop3d Maildir 2>&1...
echo "#\!/bin/sh" > log/run
echo "exec /usr/local/bin/setuidgid qmailp /usr/local/bi...
echo "-* \" >> log/run
echo "+tcpserver:* \" >> log/run
echo "+*USER* \" >> log/run
echo "+*PASS* \" >> log/run
echo "+*APOP* \" >> log/run
echo "+*-ERR* \" >> log/run
echo "/var/log/qmail/pop3sd" >> log/run
cd ../
chmod +x */run
chmod +x */log/run
-zfs snap -r zroot/ROOT@30
mkdir /var/log/qmail
cd /var/log/qmail
mkdir qmail smtpd smtpd2 smtpd3 smtpsd pop3d pop3sd
chown qmaill:qnofiles qmail
chown qmails:qnofiles smtp*
chown qmailp:qnofiles pop3*
chmod 700 *
mkdir /var/service
cd /var/service
ln -s /var/qmail/services/qmail qmail
ln -s /var/qmail/services/smtpd smtpd
ln -s /var/qmail/services/smtpd2 smtpd2
ln -s /var/qmail/services/smtpd3 smtpd3
ln -s /var/qmail/services/smtpsd smtpsd
ln -s /var/qmail/services/pop3d pop3d
ln -s /var/qmail/services/pop3sd pop3sd
[[FreeBSD/インストール10.1_5]]
[[FreeBSD/インストール10.1]]
----
[[FreeBSD]]
終了行:
#contents
----------------------------
** courier-imap [#r1746252]
echo 'courier_authdaemond_enable="YES"' >> /etc/rc.conf
echo 'courier_imap_imapd_enable="YES"' >> /etc/rc.conf
echo 'courier_imap_imapd_ssl_enable="YES"' >> /etc/rc.conf
cd /usr/local/etc/courier-imap
cp imapd.cnf.dist imapd.cnf
vi imapd.cnf 編集
vi /usr/local/etc/courier-imap/imapd
- MAXDAEMONS=40
- MAXPERIP=4
+ MAXDAEMONS=400
+ MAXPERIP=20
cd /usr/local/share/courier-imap/
vi mkimapdcert 編集 有効期限 365 to 3650
./mkimapdcert
./mkdhparams
-- courier-unicode-1.4 のバージョンUPによる不具合解消
libcourier-unicode.so.1@ -> libcourier-unicode.so.3.0.0
** qmail [#ldcbcb72]
/var/qmail/scripts/enable-qmail
cd ~alias
echo '&info@zenno.com' > .qmail-root
echo '&root' > .qmail-postmaster
echo '&root' > .qmail-mailer-daemon
cd /var/qmail/control
touch badmailfrom
touch badmailto
echo '5000' > bouncemaxbytes
echo '120' > concurrencylocal
echo '120' > concurrencyremote
echo '10485760' > databytes
echo '#' > doublebounceto
echo '30' > maxrcpt
echo '21600' > queuelifetime
ln -s rcpthosts senderhosts
touch smtproutes
echo "#\!/bin/sh" > /var/qmail/rc
echo 'exec env - PATH="/var/qmail/bin:$PATH" \' >> /var/...
echo "qmail-start ./Maildir/" >> /var/qmail/rc
chmod +x /var/qmail/rc
** SSL証明書 [#n729712b]
cp /usr/local/share/courier-imap/imapd.pem /var/qmail/c...
CA 通す -- 未対応課題
** daemontools [#yf334e10]
echo 'svscan_enable="YES"' >> /etc/rc.conf
mkdir /var/qmail/services
cd /var/qmail/services
mkdir qmail smtpd smtpd2 smtpd3 smtpsd pop3d pop3sd
chmod +t *
mkdir qmail/log smtpd/log smtpd2/log smtpd3/log smtpsd/l...
cd qmail
echo "#\!/bin/sh" > run
echo "PATH=/var/qmail/bin:/usr/local/bin:/bin:/usr/bin" ...
echo "exec /var/qmail/rc" >> run
echo "#\!/bin/sh" > log/run
echo "exec /usr/local/bin/setuidgid qmaill /usr/local/bi...
echo "/var/log/qmail/qmail" >> log/run
cd ../smtpd
echo "#\!/bin/sh" > run
echo "PATH=/var/qmail/bin:/usr/local/bin:/bin:/usr/bin" ...
echo "exec tcpserver -c 120 -H -R -l $HOST -v -u 82 -g 8...
echo "-x /usr/local/vpopmail/etc/tcp.smtp0.cdb \" >> run
echo "0 smtp fixcrio recordio qmail-smtpd \" >> run
echo "$HOST /usr/local/vpopmail/bin/vchkpw false 2>&1" >...
echo "#\!/bin/sh" > log/run
echo "exec /usr/local/bin/setuidgid qmails /usr/local/bi...
echo "-* \" >> log/run
echo "+tcpserver:* \" >> log/run
echo "+*AUTH* \" >> log/run
echo "+*MAIL* \" >> log/run
echo "+*RCPT* \" >> log/run
echo "+*\>\ 4* \" >> log/run
echo "+*\>\ 5* \" >> log/run
echo "/var/log/qmail/smtpd" >> log/run
cd ../smtpd2
echo "#\!/bin/sh" > run
echo "PATH=/var/qmail/bin:/usr/local/bin:/bin:/usr/bin" ...
echo "exec tcpserver -c 120 -H -R -l $HOST -v -u 82 -g 8...
echo "-x /usr/local/vpopmail/etc/tcp.smtp.cdb \" >> run
echo "0 587 fixcrio recordio qmail-smtpd \" >> run
echo "$HOST /usr/local/vpopmail/bin/vchkpw false 2>&1" >...
echo "#\!/bin/sh" > log/run
echo "exec /usr/local/bin/setuidgid qmails /usr/local/bi...
echo "-* \" >> log/run
echo "+tcpserver:* \" >> log/run
echo "+*AUTH* \" >> log/run
echo "+*MAIL* \" >> log/run
echo "+*RCPT* \" >> log/run
echo "+*\>\ 4* \" >> log/run
echo "+*\>\ 5* \" >> log/run
echo "/var/log/qmail/smtpd2" >> log/run
cd ../smtpd3
echo "#\!/bin/sh" > run
echo "PATH=/var/qmail/bin:/usr/local/bin:/bin:/usr/bin" ...
echo "exec tcpserver -c 120 -H -R -l $HOST -v -u 82 -g 8...
echo "-x /usr/local/vpopmail/etc/tcp.smtp3.cdb \" >> run
echo "0 1587 fixcrio recordio qmail-smtpd \" >> run
echo "$HOST /usr/local/vpopmail/bin/vchkpw true 2>&1" >>...
echo "#\!/bin/sh" > log/run
echo "exec /usr/local/bin/setuidgid qmails /usr/local/bi...
echo "-* \" >> log/run
echo "+tcpserver:* \" >> log/run
echo "+*AUTH* \" >> log/run
echo "+*MAIL* \" >> log/run
echo "+*RCPT* \" >> log/run
echo "+*\>\ 4* \" >> log/run
echo "+*\>\ 5* \" >> log/run
echo "/var/log/qmail/smtpd3" >> log/run
cd ../smtpsd
echo "#\!/bin/sh" > run
echo "PATH=/var/qmail/bin:/usr/local/bin:/bin:/usr/bin" ...
echo "exec tcpserver -c 120 -H -R -l $HOST -v -u 82 -g 8...
echo "-x /usr/local/vpopmail/etc/tcp.smtp.cdb -s -n /var...
echo "0 smtps fixcrio recordio qmail-smtpd \" >> run
echo "$HOST /usr/local/vpopmail/bin/vchkpw false 2>&1" >...
echo "#\!/bin/sh" > log/run
echo "exec /usr/local/bin/setuidgid qmails /usr/local/bi...
echo "-* \" >> log/run
echo "+tcpserver:* \" >> log/run
echo "+*AUTH* \" >> log/run
echo "+*MAIL* \" >> log/run
echo "+*RCPT* \" >> log/run
echo "+*\>\ 4* \" >> log/run
echo "+*\>\ 5* \" >> log/run
echo "/var/log/qmail/smtpsd" >> log/run
cd ../pop3d
echo "#\!/bin/sh" > run
echo "PATH=/var/qmail/bin:/usr/local/bin:/bin:/usr/bin" ...
echo "exec tcpserver -HRv -c 600 -b 600 \" >> run
echo "-l0 0 pop3 recordio qmail-popup $HOST \" >> run
echo "/home/vpopmail/bin/vchkpw qmail-pop3d Maildir 2>&1...
echo "#\!/bin/sh" > log/run
echo "exec /usr/local/bin/setuidgid qmailp /usr/local/bi...
echo "-* \" >> log/run
echo "+tcpserver:* \" >> log/run
echo "+*USER* \" >> log/run
echo "+*PASS* \" >> log/run
echo "+*APOP* \" >> log/run
echo "+*-ERR* \" >> log/run
echo "/var/log/qmail/pop3d" >> log/run
cd ../pop3sd
echo "#\!/bin/sh" > run
echo "PATH=/var/qmail/bin:/usr/local/bin:/bin:/usr/bin" ...
echo "exec tcpserver -HRsv -c 120 -b 120 -n /var/qmail/c...
echo "-l0 0 pop3s recordio qmail-popup $HOST \" >> run
echo "/home/vpopmail/bin/vchkpw qmail-pop3d Maildir 2>&1...
echo "#\!/bin/sh" > log/run
echo "exec /usr/local/bin/setuidgid qmailp /usr/local/bi...
echo "-* \" >> log/run
echo "+tcpserver:* \" >> log/run
echo "+*USER* \" >> log/run
echo "+*PASS* \" >> log/run
echo "+*APOP* \" >> log/run
echo "+*-ERR* \" >> log/run
echo "/var/log/qmail/pop3sd" >> log/run
cd ../
chmod +x */run
chmod +x */log/run
-zfs snap -r zroot/ROOT@30
mkdir /var/log/qmail
cd /var/log/qmail
mkdir qmail smtpd smtpd2 smtpd3 smtpsd pop3d pop3sd
chown qmaill:qnofiles qmail
chown qmails:qnofiles smtp*
chown qmailp:qnofiles pop3*
chmod 700 *
mkdir /var/service
cd /var/service
ln -s /var/qmail/services/qmail qmail
ln -s /var/qmail/services/smtpd smtpd
ln -s /var/qmail/services/smtpd2 smtpd2
ln -s /var/qmail/services/smtpd3 smtpd3
ln -s /var/qmail/services/smtpsd smtpsd
ln -s /var/qmail/services/pop3d pop3d
ln -s /var/qmail/services/pop3sd pop3sd
[[FreeBSD/インストール10.1_5]]
[[FreeBSD/インストール10.1]]
----
[[FreeBSD]]
ページ名: