mason/common/autohandler: Add an AGPL link to the HTML header.
[odin-cgi] / exim-filter.in
CommitLineData
c86aee46 1# Exim filter -*-conf-*-
128543b0
MW
2###
3### Exim filter file template for Odin mail redirection
4###
5### (c) 2015 Mark Wooding
6###
7
8###----- Licensing notice ---------------------------------------------------
9###
10### This file is part of the `odin.gg' service, `odin-cgi'.
11###
12### `odin-cgi' is free software; you can redistribute it and/or modify
13### it under the terms of the GNU Affero General Public License as
14### published by the Free Software Foundation; either version 3 of the
15### License, or (at your option) any later version.
16###
17### `odin-cgi' is distributed in the hope that it will be useful,
18### but WITHOUT ANY WARRANTY; without even the implied warranty of
19### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20### GNU Affero General Public License for more details.
21###
22### You should have received a copy of the GNU Affero General Public
23### License along with `odin-cgi'; if not, see
24### <http://www.gnu.org/licenses/>.
c86aee46
MW
25
26if "${lookup pgsql { \
fdabfd13 27 servers=db.distorted.org.uk/odin/exim/@PASSWORD@; \
c86aee46 28 SELECT recip FROM odin_maildeliver \
7536d88d 29 WHERE lpart = '${quote_pgsql:${lc:$local_part}}' AND \
c86aee46
MW
30 dom = '$domain' } {!$value}{}}" matches "^(.+)\\$"
31then
32 deliver ${s_1:$1}
33 finish
34endif