| | | Hilfe zum Thema FreeBSD ?
FreeBSD-Handbuch <en>
<de> |
| Qmail
Howto FreeBSD + mysql + vpopmail + sqwebmail |
Konatkt
? | | |

|
Neu: qmail + mysql
+ vpopmail + sqwebmail
| |
Installieren von mysql ...mehr |
| |
Installieren von qmail ...mehr |
| |
Installieren von vpopmail
...mehr |
| |
Installieren von ispell ...mehr |
| |
Installieren von sqwebmail ...mehr |
| |
Installieren von qmailadmin ...mehr |
| |
Installieren von ucspi-tcp ...mehr |
| |
qmail startup & logging
...mehr
|
| |
Installieren von vqregister
...mehr
|
| |
Updates mit portupgrade ...mehr
|
|
|
|
| |
| Qmail
System Startup Script |
1. #
cd /usr/local/etc/rc.d
2. # vi qmail.sh
#!/bin/sh
case "$1" in
start)
echo -n "Starting qmail: svscan"
if cd /var/qmail/supervise; then
env - PATH="/var/qmail/bin:/usr/local/bin:/usr/bin:/bin"
svscan &
echo $! > /var/run/svscan.pid
fi
echo "."
;;
stop)
echo -n "Stopping qmail: svscan"
kill `cat /var/run/svscan.pid`
echo -n " qmail"
svc -dx /var/qmail/supervise/*
echo -n " logging"
svc -dx /var/qmail/supervise/*/log
echo "."
;;
stat)
cd /var/qmail/supervise
svstat * */log
;;
doqueue|alrm)
echo "Sending ALRM signal to qmail-send."
svc -a /var/qmail/supervise/qmail-send
;;
queue)
qmail-qstat
qmail-qread
;;
reload|hup)
echo "Sending HUP signal to qmail-send."
svc -h /var/qmail/supervise/qmail-send
echo "Sending HUP signal to qmail-pop3d."
svc -h /var/qmail/supervise/qmail-pop3d
;;
pause)
echo "Pausing qmail-send"
svc -p /var/qmail/supervise/qmail-send
echo "Pausing qmail-smtpd"
svc -p /var/qmail/supervise/qmail-smtpd
echo "Pausing qmail-pop3d"
svc -p /var/qmail/supervise/qmail-pop3d
;;
cont)
echo "Continuing qmail-send"
svc -c /var/qmail/supervise/qmail-send
echo "Continuing qmail-smtpd"
svc -c /var/qmail/supervise/qmail-smtpd
echo "Continuing qmail-pop3d"
svc -c /var/qmail/supervise/qmail-pop3d
;;
restart)
echo "Restarting qmail:"
echo "* Stopping qmail-smtpd."
svc -d /var/qmail/supervise/qmail-smtpd
echo "* Sending qmail-send SIGTERM and restarting."
svc -t /var/qmail/supervise/qmail-send
echo "* Restarting qmail-smtpd."
svc -u /var/qmail/supervise/qmail-smtpd
echo "* Sending qmail-pop3d SIGTERM and restarting."
svc -t /var/qmail/supervise/qmail-pop3d
;;
cdb)
tcprules /etc/tcp.smtp.cdb /etc/tcp.smtp.tmp < /etc/tcp.smtp
chmod 644 /etc/tcp.smtp*
echo "Reloaded /etc/tcp.smtp."
;;
*)
echo "Usage: $0 {start|stop|restart|doqueue|reload|stat|pause|cont|cdb|queue}"
exit 1
esac
exit 0
|
| Relay
Permissions |
| |
1. cd /etc
2. vi /etc/tcp.smtp
127.0.0.1:allow,RELAYCLIENT=""
198.168.1.:allow,RELAYCLIENT=""
200.200.200.:allow,RELAYCLIENT=""
:allow
3. /usr/local/bin/tcprules /etc/tcp.smtp.cdb
/etc/tcp.smtp.tmp < /etc/tcp.smtp
4. chmod 644 /etc/tcp.smtp.cdb
|
| |
| Sqwebmail
Auth Start Script |
1.
cd /usr/local/etc/rc.d
2. vi sqwebauth.sh
#!/bin/sh
#---------------------------------------------------------------------------
#
# AUTH-SQWEBMAIL /usr/local/etc/rc.d/sqwebauth.sh
# -----------------------------------
#
# last edit-date: [Sun Apr 21 12:05:27 2002]
#
#---------------------------------------------------------------------------
case "$1" in
start)
echo -n "starting sqwebmail auth "
/usr/local/libexec/sqwebmail/authlib/authdaemond start
;;
stop)
echo -n "stopping sqwebmail auth "
/usr/local/libexec/sqwebmail/authlib/authdaemond stop
;;
*)
echo "Usage: `basename $0` {start|stop}" >&2
exit 64
;;
esac |
| hier
geht's weiter ... |
|
|
|
|
|