summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTobias Rueetschi <tr@brief.li>2017-12-28 11:39:40 +0100
committerTobias Rueetschi <tr@brief.li>2017-12-28 12:11:06 +0100
commit4ec77886bfef103b94565cdacf36f264d62056b9 (patch)
treea8e849859e412fb1678dc74ef1d8264f647ef9b3 /docs
parent9a8f86e7e8c4b4714d44c6d8fd4a891bad08b490 (diff)
* install postfix, add note about distro support
* add code html tag around filenames * change postfix-sqlite filenames
Diffstat (limited to 'docs')
-rw-r--r--docs/index.md10
1 files changed, 6 insertions, 4 deletions
diff --git a/docs/index.md b/docs/index.md
index 22a6253..575e785 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -123,13 +123,15 @@ Now adapt the following lines for each list and add them to `/etc/postfix/transp
Afterwards run `postmap /etc/postfix/transport_schleuder` and restart postfix. Remember to repeat this also for newly created lists later.
+Another way to tell postfix which domain and list can be piped to schleuder is to get that information out of the sqlite database. A requirement for that is the postfix-sqlite package, which isn't in the standard repositories of CentOS, but Debian.
+
**To dedicate a whole domain to Schleuder,** add these lines to `main.cf`:
schleuder_destination_recipient_limit = 1
- virtual_mailbox_domains = sqlite:/etc/postfix/schleuder_domains_sqlite.cf
+ virtual_mailbox_domains = sqlite:/etc/postfix/schleuder_domain_sqlite.cf
virtual_transport = schleuder
virtual_alias_maps = hash:/etc/postfix/virtual_aliases
- virtual_mailbox_maps = sqlite:/etc/postfix/schleuder_lists_sqlite.cf
+ virtual_mailbox_maps = sqlite:/etc/postfix/schleuder_list_sqlite.cf
Then adapt and add at least the following exceptions from the All-to-Schleuder-rule to `/etc/postfix/virtual_aliases`:
@@ -140,13 +142,13 @@ Then adapt and add at least the following exceptions from the All-to-Schleuder-r
Afterwards run `postmap /etc/postfix/virtual_aliases`.
-The file schleuder_domains_sqlite.cf can ask the schleuder sqlite database (this will delegate the whole domain to schleuder):
+The file `schleuder_domain_sqlite.cf` can ask the schleuder sqlite database (this will delegate the whole domain to schleuder):
dbpath = /var/lib/schleuder/db.sqlite
query = select distinct substr(email, instr(email, '@') + 1) from lists
where email like '%%%s'
-And the file schleuder_lists_sqlite.cf can also get the information from the schleuder sqlite database:
+And the file `schleuder_list_sqlite.cf` can also get the information from the schleuder sqlite database:
dbpath = /var/lib/schleuder/db.sqlite
query = select 'present' from lists