~ubuntu-branches/ubuntu/hoary/courier/hoary

« back to all changes in this revision

Viewing changes to courier/doc/FAQ.html

  • Committer: Bazaar Package Importer
  • Author(s): Thom May
  • Date: 2004-11-29 12:09:34 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20041129120934-kkn0xj11j0n1n6lo
Tags: 0.47-3ubuntu1
* Nathaniel McCallum
 - debian/*.init: pretty initscripts
 - debian/control: version depends on lsb-base

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version="1.0" encoding="iso-8859-1"?>
2
1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
3
2
       "http://www.w3.org/TR/html4/loose.dtd">
4
 
<html xmlns="http://www.w3.org/1999/xhtml">
 
3
<html>
5
4
<head>
6
 
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
7
 
  <meta name="MSSmartTagsPreventParsing" content="TRUE" />
 
5
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
 
6
  <meta name="MSSmartTagsPreventParsing" content="TRUE">
8
7
  <title>Courier FAQ</title>
9
 
  <!-- $Id: FAQ.html,v 1.36 2004/05/08 02:24:22 mrsam Exp $ -->
 
8
  <!-- $Id: FAQ.html,v 1.38 2004/08/07 16:18:10 mrsam Exp $ -->
10
9
  <!-- Copyright 2000-2003 Double Precision, Inc.  See COPYING for -->
11
10
  <!-- distribution information. -->
12
 
  <link rel="icon" href="icon.gif" type="image/gif" />
 
11
  <link rel="icon" href="icon.gif" type="image/gif">
13
12
</head>
14
13
 
15
 
<body text="#000000" bgcolor="#FFFFFF" link="#0000EE" vlink="#551A8B"
16
 
alink="#FF0000">
 
14
<body>
17
15
<h1>Courier FAQ</h1>
18
16
 
19
17
<p>This is a beginning of a modest FAQ. Contributors:</p>
29
27
  <li>Configuration issues
30
28
    <ul>
31
29
      <li><a href="#configloop">The <code>configure</code> script is stuck in
32
 
        an infinite loop</a><br />
33
 
        <br />
34
 
      </li>
 
30
        an infinite loop</a></li>
35
31
      <li><a href="#authlib">What's the deal with authentication modules? Why
36
 
        can't I get OpenLDAP/MySQL/Vpopmail/PAM/whatever working?</a><br />
37
 
        <br />
38
 
      </li>
 
32
        can't I get OpenLDAP/MySQL/Vpopmail/PAM/whatever working?</a></li>
39
33
      <li><a href="#gdbmdb">Configuration script reports the following error,
40
34
        and stops: "Cannot find either the gdbm or the db library", or it
41
35
        fails in the <code>gdbmobj</code> or <code>bdbobj</code>
42
 
        subdirectory</a>.<br />
43
 
        <br />
44
 
      </li>
 
36
        subdirectory</a>.</li>
45
37
      <li><a href="#solarisbug">Compilation fails on Solaris in the waitlib
46
 
        subdirectory</a><br />
47
 
        <br />
48
 
      </li>
49
 
      <li><a href="#osx">Compiling Courier-IMAP on OS/X</a><br />
50
 
        <br />
51
 
      </li>
 
38
        subdirectory</a></li>
 
39
      <li><a href="#osx">Compiling Courier-IMAP on OS/X</a></li>
52
40
      <li><a href="#makefail"><code>make install-strip</code> or <code>make
53
 
        check</code> fails</a><br />
54
 
        <br />
55
 
      </li>
 
41
        check</code> fails</a></li>
56
42
      <li><a href="#tru64"><tt>gmake check</tt> fails on Compaq Tru64
57
 
        UNIX</a><br />
58
 
        <br />
59
 
      </li>
 
43
      UNIX</a></li>
60
44
      <li><a href="#rpm">I don't know how to build the RPM packages as
61
 
        non-root</a><br />
62
 
        <br />
63
 
      </li>
 
45
        non-root</a></li>
64
46
      <li><a href="#vpopmail">Problems compiling/linking with
65
47
      vpopmail</a></li>
66
48
    </ul>
68
50
  <li>ESMTP
69
51
    <ul>
70
52
      <li><a href="#esmtptimeout">Why are my e-mails taking so long to
71
 
        send?</a> <br />
72
 
        <br />
73
 
      </li>
 
53
        send?</a></li>
74
54
      <li><a href="#esmtperr">Courier delivers ESMTP mail with a strange
75
 
        error message</a><br />
76
 
        <br />
77
 
      </li>
 
55
        error message</a></li>
78
56
      <li><a href="#450">Server is not accepting any mail, returns a
79
 
        <code>450 Service unavailable</code> error every time.</a><br />
80
 
        <br />
81
 
      </li>
 
57
        <code>450 Service unavailable</code> error every time.</a></li>
82
58
      <li><a href="#relay">How do I enable relaying for an IP address
83
 
        range?</a><br />
84
 
        <br />
85
 
      </li>
 
59
        range?</a></li>
86
60
      <li><a href="#virtual">How do I implement virtual domain
87
 
        hosting?</a><br />
88
 
        <br />
89
 
      </li>
 
61
      hosting?</a></li>
90
62
      <li><a href="#linkerr">Courier keeps restarting every minute, and there
91
63
        are weird syslog messages about "unsafe" hard links</a></li>
92
64
      <li><a href="#backupmx">How to configure Courier to be a backup MX for
93
 
        a domain</a><br />
94
 
        <br />
95
 
      </li>
 
65
        a domain</a></li>
96
66
      <li><a href="#maxrcpts">Messages with more than 20 recipients are
97
67
        rejected</a></li>
98
68
    </ul>
99
69
  </li>
100
70
  <li>IMAP
101
71
    <ul>
102
 
      <li><a href="#imapbugs">My IMAP client doesn't work</a><br />
103
 
        <br />
104
 
      </li>
 
72
      <li><a href="#imapbugs">My IMAP client doesn't work</a></li>
105
73
      <li><a href="#namespace">Can't create IMAP folders, only subfolders of
106
 
        INBOX</a><br />
107
 
        <br />
108
 
      </li>
109
 
      <li><a href="#imaplogin">Can't login via IMAP</a><br />
110
 
        <br />
111
 
      </li>
 
74
        INBOX</a></li>
 
75
      <li><a href="#imaplogin">Can't login via IMAP</a></li>
112
76
      <li><a href="#fam">Repeated messages in syslog: "Failed to create cache
113
77
        file: maildirwatch (user) Error: Input/output error Check for proper
114
78
        operation and configuration of the File Access Monitor daemon
115
 
        (famd)." How can I solve it?</a><br />
116
 
        <br />
117
 
      </li>
 
79
        (famd)." How can I solve it?</a></li>
118
80
      <li><a href="#imapfud">Q: I heard that Courier does not implement IMAP
119
81
        properly</a></li>
120
82
    </ul>
121
83
  </li>
122
84
  <li>POP3
123
85
    <ul>
124
 
      <li><a href="#pop3run">The POP3 server doesn't run at bootup</a><br />
125
 
        <br />
126
 
      </li>
 
86
      <li><a href="#pop3run">The POP3 server doesn't run at bootup</a></li>
127
87
      <li><a href="#pop3login">Can't login via POP3</a></li>
128
88
    </ul>
129
89
  </li>
136
96
  <li>Miscellaneous
137
97
    <ul>
138
98
      <li><a href="#help">Asking for help on the courier-users mailing
139
 
        list</a><br />
140
 
        <br />
141
 
      </li>
142
 
      <li><a href="#vdomains">Using virtual domains</a><br />
143
 
        <br />
144
 
      </li>
145
 
      <li><a href="#fetchmail">Using <code>fetchmail</code></a><br />
146
 
        <br />
147
 
      </li>
 
99
        list</a></li>
 
100
      <li><a href="#vdomains">Using virtual domains</a></li>
 
101
      <li><a href="#fetchmail">Using <code>fetchmail</code></a></li>
148
102
    </ul>
149
103
  </li>
150
104
</ul>
339
293
<code>/usr/local/ssl/lib</code>, the <code>gcc</code> compiler needs to have
340
294
the <code>-I/usr/local/ssl/include</code> option for the preprocessor, and
341
295
the <code>-L/usr/local/ssl/lib</code> option for the linker. So, to have the
342
 
configuration script detect OpenSSL, use the following commands:<br />
343
 
<br />
344
 
</p>
 
296
configuration script detect OpenSSL, use the following commands:</p>
345
297
<pre>CPPFLAGS="-I/usr/local/ssl/include"
346
298
LDFLAGS="-L/usr/local/ssl/lib"
347
299
export CPPFLAGS
530
482
IMAP clients. Use the following procedure to build the RPMs with different
531
483
options:</p>
532
484
<ul>
533
 
  <li>Move the tarball to your <code>SOURCES</code> directory.<br />
534
 
    <br />
535
 
  </li>
 
485
  <li>Move the tarball to your <code>SOURCES</code> directory.</li>
536
486
  <li>Extract a single file from the tarball, <code>courier.spec</code>. This
537
 
    file is found at the top level of the source tree.<br />
538
 
    <br />
539
 
  </li>
 
487
    file is found at the top level of the source tree.</li>
540
488
  <li>Move <code>courier.spec</code> to your <code>SPECS</code> directory.
541
 
    Edit it and make whatever changes you need to make.<br />
542
 
    <br />
543
 
  </li>
544
 
  <li>Use that spec file to build your RPMs.<br />
545
 
    <br />
546
 
  </li>
 
489
    Edit it and make whatever changes you need to make.</li>
 
490
  <li>Use that spec file to build your RPMs.</li>
547
491
  <li>You will have to repeat the procedure when you want to build packages
548
492
    from the next release. The spec file is subject to change, and there is
549
493
    no guarantee that a spec file from one release will still work for the
596
540
  <li>If the connecting IP address is resolved to a hostname, the hostname is
597
541
    looked up in DNS again, to see if it resolves to the connecting IP
598
542
    address.</li>
599
 
  <li>The connecting IP address is queried using the <a
 
543
  <li>The connecting IP address is queried using the <a target="_blank"
600
544
    href="http://www.rfc-editor.org/rfc/rfc1413.txt">IDENT protocol</a>.</li>
601
545
</ol>
602
546
 
697
641
RCPT TO: verbs</p>
698
642
 
699
643
<p><code>[SV]</code> This problem is apparently present in the Microsoft
700
 
Outlook client too. See item #7 in <a
 
644
Outlook client too. See item #7 in <a target="_blank"
701
645
href="http://support.microsoft.com/support/kb/articles/Q180/4/84.ASP"><code>http://support.microsoft.com/support/kb/articles/Q180/4/84.ASP</code></a>.
702
646
Note: contrary to the information in that article, this address specification
703
 
format is REQUIRED by <a href="http://www.rfc-editor.org/rfc/rfc821.txt">RFC
704
 
821</a>, and Microsoft is simply ignoring another Internet standard, here.</p>
 
647
format is REQUIRED by <a target="_blank"
 
648
href="http://www.rfc-editor.org/rfc/rfc821.txt">RFC 821</a>, and Microsoft is
 
649
simply ignoring another Internet standard, here.</p>
705
650
 
706
651
<p><code>[PP]</code> Solution: The usual solution for a 517 is to tell people
707
652
to explicitly put &lt;&gt; around all E-mail addresses. That is, program
752
697
<code>450 Service unavailable</code> error every time.</a></h3>
753
698
<ul>
754
699
  <li>You are using a database-based back-end, such as LDAP or MySQL, and the
755
 
    back-end server is down.<br />
756
 
    <br />
757
 
  </li>
 
700
    back-end server is down.</li>
758
701
  <li>You are using <code>authdaemon</code>, and the <code>authdaemond</code>
759
702
    process is not running.</li>
760
703
</ul>
951
894
to use any folder namespace arrangement that's technically convenient for
952
895
them. Courier uses "INBOX." as the namespace for private folders, and
953
896
"shared." as the namespace for public, shared, folders. The IMAP NAMESPACE
954
 
extension (see <a
 
897
extension (see <a target="_blank"
955
898
href="http://www.rfc-editor.org/rfc/rfc2342.txt"><code>http://www.rfc-editor.org/rfc/rfc2342.txt</code></a>)
956
899
allows IMAP clients to automatically discover where the server creates
957
900
folders, and your IMAP client should implement it.</p>
962
905
2060 and RFC 2342, it would automatically discover, without any additional
963
906
configuration from the user, that:</p>
964
907
<ol>
965
 
  <li>The folder namespace hierarchy separator is the . character<br />
966
 
    <br />
967
 
  </li>
 
908
  <li>The folder namespace hierarchy separator is the . character</li>
968
909
  <li>Private folders are stored underneath the "<code>INBOX.</code>"
969
 
    hierarchy<br />
970
 
    <br />
971
 
  </li>
 
910
    hierarchy</li>
972
911
  <li>Public folders are stored underneath the "<code>shared.</code>"
973
912
    hierarchy</li>
974
913
</ol>
989
928
 
990
929
<p>A: Check the following:</p>
991
930
<ul>
992
 
  <li>The entry for the IMAP port is not in <code>/etc/inetd.conf</code>.<br
993
 
    />
994
 
    <br />
 
931
  <li>The entry for the IMAP port is not in <code>/etc/inetd.conf</code>.<br>
995
932
  </li>
996
933
  <li>If you're using the example system V init script, IMAPDSTART is set to
997
934
    YES in the <code>imapd</code> configuration file (usually
1003
940
<p>A: Check the following</p>
1004
941
<ul>
1005
942
  <li><code>AUTHMODULES</code> in the <code>imapd</code> configuration file
1006
 
    is correct.<br />
1007
 
    <br />
1008
 
  </li>
 
943
    is correct.</li>
1009
944
  <li>If the <code>authdaemon</code> authentication proxy is used, check the
1010
945
    <code>authdaemonrc</code> configuration file. Check that
1011
 
    <code>authdaemond</code> is running.<br />
1012
 
    <br />
1013
 
  </li>
 
946
    <code>authdaemond</code> is running.</li>
1014
947
  <li>Your authentication modules are properly configured. Some
1015
948
    authentication modules have additional configuration files
1016
949
    (<code>authldap</code> and <code>authmysql</code>). If you're using
1017
950
    <code>authpam</code>, you need to configure your PAM library to
1018
951
    authenticate the "<em>imap</em>" service. This is a separate task, and is
1019
 
    specific to your PAM library and operating system.<br />
1020
 
    <br />
1021
 
  </li>
 
952
    specific to your PAM library and operating system.</li>
1022
953
  <li>You are using a database-based back-end, such as LDAP or MySQL, and the
1023
 
    back-end server is down.<br />
1024
 
    <br />
1025
 
  </li>
 
954
    back-end server is down.</li>
1026
955
  <li>You're using maildirs. Courier's IMAP server only supports maildirs
1027
956
    (<code>$HOME/Maildir</code>), it doesn't support mailbox files.</li>
1028
957
</ul>
1041
970
<h3><a name="imapfud" id="imapfud">Q: I heard that Courier does not implement
1042
971
IMAP properly</a></h3>
1043
972
 
1044
 
<p>A: This topic deserves its own web page. See <a
 
973
<p>A: This topic deserves its own web page. See <a target="_blank"
1045
974
href="http://www.courier-mta.org/fud/">http://www.courier-mta.org/fud/</a>
1046
975
for more information.</p>
1047
976
 
1052
981
 
1053
982
<p>A: Check the following:</p>
1054
983
<ul>
1055
 
  <li>The entry for the pop3 port is not in <code>/etc/inetd.conf</code>.<br
1056
 
    />
1057
 
    <br />
 
984
  <li>The entry for the pop3 port is not in <code>/etc/inetd.conf</code>.<br>
1058
985
  </li>
1059
986
  <li>If you're using the example system V init script, POP3DSTART is set to
1060
987
    YES in the <code>pop3d</code> configuration file (usually
1066
993
<p>A: Check the following</p>
1067
994
<ul>
1068
995
  <li><code>AUTHMODULES</code> in the <code>pop3d</code> configuration file
1069
 
    is correct.<br />
1070
 
    <br />
1071
 
  </li>
 
996
    is correct.</li>
1072
997
  <li>If the <code>authdaemon</code> authentication proxy is used, check the
1073
998
    <code>authdaemonrc</code> configuration file. Check that
1074
 
    <code>authdaemond</code> is running.<br />
1075
 
    <br />
1076
 
  </li>
 
999
    <code>authdaemond</code> is running.</li>
1077
1000
  <li>Your authentication modules are properly configured. Some
1078
1001
  authentication</li>
1079
1002
  <li>Your authentication modules are properly configured. Some
1081
1004
    (<code>authldap</code> and <code>authmysql</code>). If you're using
1082
1005
    <code>authpam</code>, you need to configure your PAM library to
1083
1006
    authenticate the "<em>pop3</em>" service. This is a separate task, and is
1084
 
    specific to your PAM library and operating system.<br />
1085
 
    <br />
1086
 
  </li>
 
1007
    specific to your PAM library and operating system.</li>
1087
1008
  <li>You are using a database-based back-end, such as LDAP or MySQL, and the
1088
 
    back-end server is down.<br />
1089
 
    <br />
1090
 
  </li>
 
1009
    back-end server is down.</li>
1091
1010
  <li>You're using maildirs. Courier's POP3 server only supports maildirs
1092
1011
    (<code>$HOME/Maildir</code>), it doesn't support mailbox files.</li>
1093
1012
</ul>
1117
1036
<h3><a name="help" id="help">Q: Asking for help on the courier-users and
1118
1037
courier-imap mailing lists</a></h3>
1119
1038
 
1120
 
<p>A: The <a
 
1039
<p>A: The <a target="_blank"
1121
1040
href="http://lists.sourceforge.net/lists/listinfo/courier-users">courier-users</a>
1122
 
or the <a
 
1041
or the <a target="_blank"
1123
1042
href="http://lists.sourceforge.net/lists/listinfo/courier-imap">courier-imap</a>
1124
1043
mailing list should be the first place to look for assistance with resolving
1125
1044
any issues. You only need to observe a few simple rules in order to increase
1126
1045
your chances of getting a quick and helpful response:</p>
1127
1046
<ol>
1128
 
  <li><a
 
1047
  <li><a target="_blank"
1129
1048
    href="http://lists.sourceforge.net/lists/listinfo/courier-users">Subscribe</a>/<a
 
1049
    target="_blank"
1130
1050
    href="http://lists.sourceforge.net/lists/listinfo/courier-imap">subscribe</a>
1131
1051
    to the mailing list before you ask any questions. If you are not
1132
1052
    subscribed, you will not receive any replies that are mailed to the list
1133
 
    only.<br />
1134
 
    <br />
1135
 
  </li>
1136
 
  <li>Very important: Read <a
 
1053
    only.</li>
 
1054
  <li>Very important: Read <a target="_blank"
1137
1055
    href="http://www.catb.org/~esr/faqs/smart-questions.html#intro">http://www.catb.org/~esr/faqs/smart-questions.html#intro</a>
1138
 
    before sending your first question.<br />
1139
 
    <br />
1140
 
  </li>
 
1056
    before sending your first question.</li>
1141
1057
  <li>Do not send HTML E-mail messages, unless you want many people to
1142
1058
    automatically delete them, unread. If you are using MS-Outlook, turn off
1143
 
    HTML formatting before sending mail to the list.<br />
1144
 
    <br />
1145
 
  </li>
 
1059
    HTML formatting before sending mail to the list.</li>
1146
1060
  <li>Before sending a question, check it to make sure that your message does
1147
1061
    not contain the words "doesn't work." Saying only that something doesn't
1148
1062
    work is not very useful in trying to analyze the problem. If something
1149
1063
    isn't working correctly, merely stating it will not make much progress.
1150
1064
    Be sure to always include in your messages:
1151
1065
    <ul>
1152
 
      <li>The contents of any related configuration files.<br />
1153
 
        <br />
1154
 
      </li>
 
1066
      <li>The contents of any related configuration files.</li>
1155
1067
      <li>What happens, <em>exactly</em>, that makes you think that something
1156
 
        isn't working right.<br />
1157
 
        <br />
1158
 
      </li>
 
1068
        isn't working right.</li>
1159
1069
      <li>The contents of your system log file (syslog, or
1160
 
        <code>/var/log/messages</code>).<br />
1161
 
        <br />
1162
 
      </li>
 
1070
        <code>/var/log/messages</code>).</li>
1163
1071
      <li>Be sure to describe any non-standard modifications to the operating
1164
1072
        system you're using, such as a kernel hacked with one of several
1165
1073
        varieties of the OpenWall patch, or filesystema mounted with a
1166
1074
        no-suid option. Many problems turn out to be unintentional conflicts
1167
1075
        with various unexpected side-effects of these custom modifications
1168
 
        (but not after wasting a great deal of time chasing ghosts).<br />
1169
 
        <br />
1170
 
      </li>
 
1076
        (but not after wasting a great deal of time chasing ghosts).</li>
1171
1077
    </ul>
1172
1078
  </li>
1173
1079
  <li>Do not send large attachments (over 10K bytes is a rule of thumb), to
1174
1080
    the list. Put it somewhere - on the web or on a FTP server - and include
1175
 
    a link in your message instead. <br />
1176
 
    <br />
1177
 
  </li>
 
1081
    a link in your message instead.</li>
1178
1082
  <li>Always mention what you've already tried to do in order to fix the
1179
1083
    problem. People are more likely to help you if they know that you've made
1180
1084
    some effort to figure it out by yourself, and you are only asking for
1181
 
    help after running into a dead end.<br />
1182
 
    <br />
1183
 
  </li>
 
1085
    help after running into a dead end.</li>
1184
1086
  <li>If you do not get an answer in one hour, don't resend your message. If
1185
1087
    people open their mailbox and see five copies of the same message,
1186
1088
    they'll be ignored. Have patience. Either wait some more, or accept it as
1316
1218
headers. This is never going to be a 100% reliable process, and unless you
1317
1219
fully understand all these issues, you're likely to end up with occasional
1318
1220
mail loops and bounces, which will annoy many people. You've been warned.</p>
1319
 
<hr />
1320
 
 
1321
 
<table border="0" width="100%">
1322
 
  <tbody>
1323
 
    <tr>
1324
 
      <td><strong>PREV:</strong> <a href="install.html">Installation</a></td>
1325
 
      <td align="right"><strong>NEXT:</strong> <a
1326
 
      href="links.html">Links</a></td>
1327
 
    </tr>
1328
 
  </tbody>
1329
 
</table>
1330
1221
</body>
1331
1222
</html>