]> git.sur5r.net Git - openldap/blob - clients/mail500/mail500.m4
Introduce and use LDAP_GCCATTR() = __attributes__() in gcc
[openldap] / clients / mail500 / mail500.m4
1 PUSHDIVERT(-1)
2 #
3 # mail500 mailer
4 #
5 # This file should be placed in the sendmail's cf/mailer directory.
6 # To include this mailer in your .cf file, use the directive:
7 #       MAILER(mail500)
8 #
9
10 #CQ foo.com
11
12 POPDIVERT
13
14 dnl
15 ifdef(`MAIL500_HOST',
16         `define(`MAIL500_HOST_FLAG', CONCAT(` -l ', CONCAT(MAIL500_HOST,` ')))',
17         `define(`MAIL500_HOST_FLAG', `')')
18 ifdef(`MAIL500_CONFIG_PATH',,
19         `define(`MAIL500_CONFIG_PATH', /etc/mail/mail500.conf)')
20 ifdef(`MAIL500_MAILER_PATH',,
21         `ifdef(`MAIL500_PATH',
22                 `define(`MAIL500_MAILER_PATH', MAIL500_PATH)',
23                 `define(`MAIL500_MAILER_PATH', /usr/local/libexec/mail500)')')
24 ifdef(`MAIL500_MAILER_FLAGS',,
25         `define(`MAIL500_MAILER_FLAGS', `SmnXuh')')
26 ifdef(`MAIL500_MAILER_ARGS',,
27         `define(`MAIL500_MAILER_ARGS',
28                 CONCAT(`mail500',CONCAT(` -C ',MAIL500_CONFIG_PATH,MAIL500_HOST_FLAG,`-f $f -m $n@$w $u')))')
29 dnl
30 MAILER_DEFINITIONS
31
32 VERSIONID(`OpenLDAP mail500 990630')
33
34 ######################*****##############
35 ###   MAIL500 Mailer specification   ###
36 ##################*****##################
37
38 Mmail500,       P=MAIL500_MAILER_PATH, F=CONCAT(`DFM', MAIL500_MAILER_FLAGS), S=11/31, R=20/40, T=DNS/RFC822/X-Unix,
39                 ifdef(`MAIL500_MAILER_MAX', `M=500_MAILER_MAX, ')A=MAIL500_MAILER_ARGS
40
41 PUSHDIVERT(3)
42 # mail500 additions
43 R$* < @ $=Q > $*        $#mail500 $@ $2 $: <$1@$2>              domain handled by mail500
44 POPDIVERT