dovecot

rpm -qa |grep dovecot

http://dovecot.org/releases/ http://dovecot.org/releases/2.2/dovecot-2.2.15.tar.gz

./configure
make
make install

useradd  -c Dovecot -s /sbin/nologin -d /var/empty/dovecot dovecot


protocols = imap pop3

mail_location = maildir:~/Maildir
/usr/local/sbin/dovecot
doveconf: Fatal: Error in configuration file /usr/local/etc/dovecot/conf.d/10-ssl.conf line 12: ssl_cert: Can't open file /etc/ssl/certs/dovecot.pem: No such file or directory


ssl = no

#ssl_cert = </etc/ssl/certs/dovecot.pem
#ssl_key = </etc/ssl/private/dovecot.pem
doveconf: Fatal: Error in configuration file /usr/local/etc/dovecot/dovecot.conf: default_login_user doesn't exist: dovenull

useradd  -c Dovecot -s /sbin/nologin -d /var/empty/dovenull dovenull

default_login_user = dovenull
doveconf: Fatal: Error in configuration file /usr/local/etc/dovecot/dovecot.conf: default_internal_user doesn't exist: dovecot


default_internal_user = dovecot

ps aux|grep dovecot
#!/bin/bash
#
# /etc/rc.d/init.d/dovecot
#
# Starts the dovecot daemon
#
# chkconfig: 235 65 35
# description: Dovecot Imap Server
# processname: dovecot
# config: /usr/local/etc/dovecot/dovecot.conf
# config: /etc/sysconfig/dovecot
# pidfile: /usr/local/var/run/dovecot/master.pid
# Source function library.
. /etc/init.d/functions
if [ -f /etc/sysconfig/dovecot -a $UID -eq 0 ]; then
	. /etc/sysconfig/dovecot
fi
RETVAL=0
PATH=$PATH:/usr/local/sbin
prog="Dovecot Imap"
exec="/usr/local/sbin/dovecot"
config="/usr/local/etc/dovecot/dovecot.conf"
pidfile="/usr/local/var/run/dovecot/master.pid"
lockfile="/var/lock/subsys/dovecot"
start() {
	[ $UID -eq 0 ] || exit 4
	[ -x $exec ] || exit 5
	[ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon --pidfile $pidfile $exec $OPTIONS
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
}
stop() {
	[ $UID -eq 0 ] || exit 4
	echo -n $"Stopping $prog: "
	killproc -p $pidfile $exec
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}
reload() {
	[ $UID -eq 0 ] || exit 4
	echo -n $"Reloading $prog: "
	killproc -p $pidfile $exec -HUP
	RETVAL=$?
	echo
}
#
#	See how we were called.
#
case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	force-reload|restart)
		stop
		sleep 1
		start
		RETVAL=$?
		;;
	condrestart|try-restart)
		if [ -f $lockfile ]; then
			stop
			sleep 3
			start
		fi
		;;
	status)
		status -p $pidfile $exec
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {condrestart|try-start|start|stop|restart|reload|force-reload|status}"
	RETVAL=2
	[ "$1" = 'usage' ] && RETVAL=0
esac
exit $RETVAL

su - auctest1
mkdir Maildir
cd Maildir/
mkdir new
mkdir cur
mkdir tmp
cd ../
chmod -R 700 Maildir/

dovecot



トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS