]> git.sur5r.net Git - openldap/blob - clients/mail500/mail500.m4
Update copyright statements
[openldap] / clients / mail500 / mail500.m4
1 PUSHDIVERT(-1)
2 ## Copyright 1998-2002 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 POPDIVERT
10
11 dnl
12 dnl mail500 mailer
13 dnl
14 dnl This file should be placed in the sendmail's cf/mailer directory.
15 dnl To include this mailer in your .cf file, use the directive:
16 dnl     MAILER(mail500)
17 dnl
18
19 ifdef(`MAIL500_HOST',
20         `define(`MAIL500_HOST_FLAG', `')',
21         `define(`MAIL500_HOST_FLAG', CONCAT(` -l ', CONCAT(MAIL500_HOST,` ')))')
22 ifdef(`MAIL500_MAILER_PATH',,
23         `ifdef(`MAIL500_PATH',
24                 `define(`MAIL500_MAILER_PATH', MAIL500_PATH)',
25                 `define(`MAIL500_MAILER_PATH', /usr/local/libexec/mail500)')')
26 ifdef(`MAIL500_MAILER_FLAGS',,
27         `define(`MAIL500_MAILER_FLAGS', `SmnXuh')')
28 ifdef(`MAIL500_MAILER_ARGS',,
29         `define(`MAIL500_MAILER_ARGS',
30                 CONCAT(`mail500',CONCAT(MAIL500_HOST_FLAG,`-f $f -h $h -m $n@$w $u')))')
31 dnl
32
33 MAILER_DEFINITIONS
34
35 ######################*****##############
36 ###   MAIL500 Mailer specification   ###
37 ##################*****##################
38
39 VERSIONID(`$OpenLDAP$')
40
41 Mmail500,       P=MAIL500_MAILER_PATH, F=CONCAT(`DFM', MAIL500_MAILER_FLAGS), S=11/31, R=20/40, T=DNS/RFC822/X-Unix,
42                 ifdef(`MAIL500_MAILER_MAX', `M=500_MAILER_MAX, ')A=MAIL500_MAILER_ARGS
43
44 LOCAL_CONFIG
45 # Mail500 Domains
46 #CQ foo.com
47
48 PUSHDIVERT(3)
49 # mail500 additions
50 R$* < @ $=Q > $*        $#mail500 $@ $2 $: <$1>         domain handled by mail500
51 POPDIVERT