s40mail_imap

Synopsys


# This script should only be run by the top level mail script

# Whitebox comes with an imap package which provides IMAP, IMAPs, POP3 and 
# POP3s.
# The services are started via xinetd and are disabled by default.
# We will provide IMAP (143) and POP3 (110).


Script


echo "%Post: Configuring IMAP and POP services"
chkconfig --level 345 imap on
chkconfig --level 345 ipop3 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.