]> git.sur5r.net Git - openldap/blob - clients/maildap/maildap.m4
Update copyright notices
[openldap] / clients / maildap / maildap.m4
1 PUSHDIVERT(-1)
2 ## Copyright 1998-2000 The OpenLDAP Foundation, Redwood City, California, USA
3 ## All rights reserved.
4 ##
5 ## Redistribution and use in source and binary forms are permitted only
6 ## as authorized by the OpenLDAP Public License.  A copy of this
7 ## license is available at http://www.OpenLDAP.org/license.html or
8 ## in file LICENSE in the top-level directory of the distribution.
9
10 dnl
11 dnl maildap mailer
12 dnl
13 dnl This file should be placed in the sendmail's cf/mailer directory.
14 dnl To include this mailer in your .cf file, use the directive:
15 dnl     MAILER(maildap)
16 dnl
17
18 ifdef(`MAILDAP_HOST',
19         `define(`MAILDAP_HOST_FLAG', CONCAT(` -l ', CONCAT(MAILDAP_HOST,` ')))',
20         `define(`MAILDAP_HOST_FLAG', `')')
21 ifdef(`MAILDAP_CONFIG_PATH',,
22         `define(`MAILDAP_CONFIG_PATH', /etc/mail/maildap.conf)')
23 ifdef(`MAILDAP_MAILER_PATH',,
24         `ifdef(`MAILDAP_PATH',
25                 `define(`MAILDAP_MAILER_PATH', MAILDAP_PATH)',
26                 `define(`MAILDAP_MAILER_PATH', /usr/local/libexec/maildap)')')
27 ifdef(`MAILDAP_MAILER_FLAGS',,
28         `define(`MAILDAP_MAILER_FLAGS', `SmnXuh')')
29 ifdef(`MAILDAP_MAILER_ARGS',,
30         `define(`MAILDAP_MAILER_ARGS',
31                 CONCAT(`maildap',CONCAT(` -C ',MAILDAP_CONFIG_PATH,MAILDAP_HOST_FLAG,`-f $f -m $n@$w $u')))')
32
33 POPDIVERT
34
35 MAILER_DEFINITIONS
36
37 ######################*****##############
38 ###   MAILDAP Mailer specification   ###
39 ##################*****##################
40
41 VERSIONID(`$OpenLDAP$')
42
43 Mmaildap,       P=MAILDAP_MAILER_PATH, F=CONCAT(`DFM', MAILDAP_MAILER_FLAGS), S=11/31, R=20/40, T=DNS/RFC822/X-Unix,
44                 ifdef(`MAILDAP_MAILER_MAX', `M=500_MAILER_MAX, ')A=MAILDAP_MAILER_ARGS
45
46 LOCAL_CONFIG
47 # Maildap Domains
48 #CQ foo.com
49
50 PUSHDIVERT(3)
51 # maildap additions
52 R$* < @ $=Q > $*        $#maildap $@ $2 $: <$1@$2>              domain handled by maildap
53 POPDIVERT