root/trunk/doc/README.postfix

Revision 131, 1.5 kB (checked in by tv, 6 years ago)

Use 127.0.0.1 instead of localhost in examples, there has historically been too much trouble with name resolution in those places.

Line 
1 Configuring Postfix to work with Scalemail:
2 ------------------------------------------
3
4 1. First, make sure /etc/scalemail/scalemail.conf looks sane.  You
5 have to set BaseDN, and often you need atleast Service-Location.
6 Remember to run "/etc/init.d/scalemail force-reload" after editing.
7
8 If everything is set properly, you can test with
9
10         /usr/sbin/postmap -q username@example.com tcp:127.0.0.1:8026
11
12 (of course you need to have that user in LDAP for this to work).  The
13 result should look like
14
15         username@hostname.scalemail.example.com
16
17
18 2. Make "hostname.scalemail.example.com" be delivered to Scalemail's
19 SMTP service. Edit /etc/postfix/transport (replace example.com with
20 your domain):
21
22         scalemail.example.com    smtp:[127.0.0.1]:8025
23         .scalemail.example.com   smtp:[127.0.0.1]:8025
24
25 And run
26
27         postmap /etc/postfix/transport
28
29 Make sure that /etc/postfix/main.cf has transport_maps defined
30 properly, like this:
31
32         transport_maps = hash:/etc/postfix/transport
33
34 You can also run the postfix and the final mail store given here on
35 different hosts. For example, if you set MX records for
36 scalemail.example.com appropriately, you can use
37
38         scalemail.example.com   smtp:scalemail.example.com:8025
39         .scalemail.example.com  smtp:scalemail.example.com:8025
40
41
42 3. Edit /etc/postfix/main.cf, modify virtual_maps to include the
43 Scalemail virtual mapping server.
44
45         virtual_alias_maps = ..., tcp:127.0.0.1:8026, ...
46
47
48 3. Make sure postfix reloads its configuration. Run
49
50         /etc/init.d/postfix force-reload
51
52
53 That's it!
Note: See TracBrowser for help on using the browser.