Rev | Author | # | Line |
---|---|---|---|
1 | CraigBox | 1 | !! [LMTP] in /etc/services |
2 | |||
3 | [Debian] doesn't have it by default, so add this to the bottom of /etc/services: | ||
4 | <pre> | ||
5 | lmtp 2003/tcp # Cyrus LMTP | ||
6 | </pre> | ||
7 | |||
8 | !! Running [Cyrus] LMTPd on a TCP port (for Exim) | ||
9 | |||
10 | [Exim] requires a remote transport to do a callback, so you need to connect to a port, not a socket. | ||
11 | |||
12 | Your transport should look like: | ||
13 | <pre> | ||
14 | cyrus_lmtp: | ||
15 | driver = smtp | ||
16 | protocol = lmtp | ||
4 | CraigBox | 17 | hosts = your.host.name |
1 | CraigBox | 18 | allow_localhost |
19 | </pre> | ||
20 | |||
4 | CraigBox | 21 | |
22 | In /etc/cyrus.conf, uncomment the lmtp line, and change the command line from <tt>lmtpd</tt> to <tt>lmtpd -a</tt>. Copy that line, and bind it to your.host.name as well. | ||
23 | |||
24 | __WARNING:__ this means anyone who can connect to your machine on 2003/tcp can deliver it mail. Firewall it. | ||
25 | |||
26 | Test with <tt>exim4 -bhc ip.ad.re.ss</tt>. | ||
27 | |||
28 | You cannot put <tt>hosts = localhost</tt>, else you will get: | ||
29 | |||
30 | <verbatim> | ||
31 | >>> accept: condition test deferred | ||
32 | 451 Could not complete recipient verify callout | ||
33 | LOG: H=(fosdf) [202.49.46.2] F=<foosg@dsgsg> temporarily rejected RCPT sdgg@hs.net.nz: Could not complete recipient verify callout | ||
34 | </verbatim> | ||
1 | CraigBox | 35 | |
36 | See [Cyrus IMAP at the Exim wiki|http://www.exim.org/eximwiki/CyrusImap]. | ||
37 | |||
38 | !! Sample [LMTP] session | ||
39 | |||
3 | CraigBox | 40 | Note that you can't put spaces after MAIL FROM:, and you need <>s: |
1 | CraigBox | 41 | |
42 | <verbatim> | ||
43 | user@vienne:/# telnet localhost lmtp | ||
44 | Trying 127.0.0.1... | ||
45 | Connected to localhost. | ||
46 | Escape character is '^]'. | ||
47 | 220 vienne LMTP Cyrus v2.2.12-Debian-2.2.12-4ubuntu1 ready | ||
48 | LHLO foo | ||
49 | 250-vienne | ||
50 | 250-8BITMIME | ||
51 | 250-ENHANCEDSTATUSCODES | ||
52 | 250-PIPELINING | ||
53 | 250-SIZE | ||
54 | 250-AUTH EXTERNAL | ||
55 | 250 IGNOREQUOTA | ||
56 | MAIL FROM:<from> | ||
57 | 250 2.1.0 ok | ||
58 | RCPT TO:<to> | ||
59 | 550-Mailbox unknown. Either there is no mailbox associated with this | ||
60 | 550-name or you do not have authorization to see it. | ||
61 | 550 5.1.1 User unknown | ||
62 | QUIT | ||
63 | 221 2.0.0 bye | ||
64 | </verbatim> | ||
5 | GreigMcGill | 65 | |
66 | !! Troubleshooting | ||
67 | |||
68 | If you see: | ||
69 | |||
70 | <verbatim> | ||
71 | RCPT TO:<UserWithCaps@some.domain.com> | ||
72 | 550-Mailbox unknown. Either there is no mailbox associated with this | ||
73 | 550-name or you do not have authorization to see it. | ||
74 | 550 5.1.1 User unknown | ||
75 | </verbatim> | ||
76 | |||
77 | but userwithcaps@some.domain.com works fine, you need to set | ||
78 | |||
79 | <verbatim> | ||
80 | lmtp_downcase_rcpt: true | ||
81 | </verbatim> | ||
82 | |||
83 | in your imapd.conf and restart cyrus. That is, assuming you don't want case sensitivity on your user mailboxes (and who would?). | ||
1 | CraigBox | 84 | |
85 | See also: | ||
86 | |||
87 | * CyrusNotes | ||
88 | |||
89 | ---- | ||
90 | CategoryMailNotes |
lib/blame.php:177: Warning: Invalid argument supplied for foreach()