aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/debian_rc
blob: 7bbdbdc8440302660efe427e8fc067ae7a1c6e4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/sh
#
# To start fetchmail as a system service, copy this file to
# /etc/init.d/fetchmail and run "update-rc.d fetchmail
# defaults".  A fetchmailrc file containg hosts and
# passwords for all local users should be placed in /root
# and should contain a line of the form "set daemon <nnn>".
#
# To remove the service, delete /etc/init.d/fetchmail and run
# "update-rc.d fetchmail remove".

DAEMON=/usr/bin/fetchmail

set -e
test -f $DAEMON || exit 0

case "$1" in
  start)
        echo -n "Starting mail retrieval agent: "
        if start-stop-daemon --start --quiet --exec $DAEMON; then echo "fetchmail."
        else echo "fetchmail already running."; fi
        ;;
  stop)
        echo -n "Stopping mail retrieval agent: "
        start-stop-daemon --stop --quiet --exec $DAEMON
        echo "fetchmail."
        ;;
  force-reload|restart)
        echo -n "Restarting mail retrieval agent: "
        start-stop-daemon --stop --quiet --exec $DAEMON
        start-stop-daemon --start --quiet --exec $DAEMON
        echo "fetchmail."
        ;;
  *)
        echo "Usage: /etc/init.d/fetchmail {start|stop|restart}"
        exit 1
        ;;
esac

exit 0
:14 EST 2004 </tr></table> <hr /> <h1>Fetchmail's Test List</h1> <p>Here are the server types on my regression-test list:</p> <table border=1 width=80% align=center summary="Server list"> <tr> <td><strong>Protocol &amp; Version:</strong></td> <td><strong>Special Options:</strong></td> </tr> <tr><td>IMAP: CommuniGate IMAP server</td><td>IMAPrev1 STARTTLS AUTH=CRAM-MD5 AUTH=DIGEST-MD5</td> <tr><td>POP3: CommuniGate POP3 server</td><td>CAPA LAST APOP CRAM-MD5</td> <tr><td>POP3: IntraStore POP3 mail server</td><td>!CAPA LAST</td> <tr><td>APOP: IntraStore POP3 mail server</td><td>!CAPA LAST APOP</td> <tr><td>IMAP: IntraStore IMAP mail server</td><td>IMAPrev1 IDLE AUTH=CRAM-MD5 AUTH=SKEY AUTH=ANONYMOUS</td> <tr><td>POP3: Eudora EIMS</td><td>CAPA LAST APOP SASL CRAM-MD5 NTLM</td> <tr><td>POP3: gmx.de pop server</td><td>!CAPA UIDL</td> <tr><td>IMAP: IMail IMAP server</td><td>IMAP4rev1 AUTH=CRAM-MD5</td> <tr><td>IMAP: Microsoft Exchange</td><td>IDLE AUTH=NTLM</td> <tr><td>POP3: qpopper 3.1.2 (Eudora) patched with mysql</td><td>CAPA UIDL</td> <tr><td>IMAP: Courier IMAP</td><td>IMAP4rev1</td> <tr><td>POP3: Courier POP3</td><td>CAPA UIDL</td> <tr><td>APOP: Qpopper using APOP</td><td>!CAPA</td> <tr><td>IMAP: UW IMAP</td><td>IMAPrev1</td> <tr><td>IMAP: Courier IMAP</td><td>IMAP4rev1</td> <tr><td>POP3: Qpopper 4.0.5</td><td>CAPA UIDL</td> </tr></table> <p>If you control a post-office server that is not one of the types listed here, please consider lending me a test account. Note that I do <em>not</em> need shell access, just the permissions to send mail to a mailbox the server looks at and to fetch mail off of it.</p> <p>I'd like to have weird things like a POP2 server on here. Also more closed-source servers because they tend to be broken in odd ways. These are the real robustness tests.</p> <hr /> <table width="100%" cellpadding=0 summary="Canned page header"><tr> <td width="30%">Back to <a href="/~esr">Eric's Home Page</a> <td width="30%" align=center>Up to <a href="/~esr/sitemap.html">Site Map</a> <td width="30%" align=right>Mon Jan 12 15:52:14 EST 2004 </tr></table> <br clear="left" /> <ADDRESS>Eric S. Raymond <A HREF="mailto:esr@thyrsus.com">&lt;esr@thyrsus.com&gt;</A></ADDRESS> </BODY> </HTML>