s40mail_dovecot

Synopsys


# This script should only be run by the top level mail script
# Dovecot is a fast a cool IMAP and POP3 provider

Script


echo "%Post: Configuring IMAP and POP services"

mv /etc/dovecot.conf /etc/dovecot.conf-$VERSION
sed -e 's/^#\(default_mail_env = \)$/\1maildir:%h\/mail/' \
	/etc/dovecot.conf-$VERSION > /etc/dovecot.conf

chkconfig --level 345 dovecot on

Examples and Testing


# testing imap
# telnet localhost 143
# ? login <username> <password>
# ? OK [CAPABILITY IMAP4REV1 IDLE NAMESPACE MAILBOX-REFERRALS BINARY 
# UNSELECT SCAN SORT THREAD=REFERENCES THREAD=ORDEREDSUBJECT MULTIAPPEND] 
# User <username> authenticated
# ? LIST " " ""
# 

# testing pop3
# telnet localhost 110
# user <username>
# +OK User name accepted, password please
# pass <password>
# +OK Mailbox open, 7 messages
# stat
# +OK 7 6336
# list
# +OK Mailbox scan listing follows
# 1 388
# 2 556
# 3 614
# 4 724
# 5 1520
# 6 832
# 7 1702
# .
# retr 1
# +OK 388 octets
# [message 1 is displayed]
# dele 1
# +OK Message deleted
# quit
# +OK Sayonara 



Marked up in XHTML - ©2005 Thoughtful Solutions Ltd.