1.1 --- a/README.txt Sun Aug 16 00:41:12 2015 +0200
1.2 +++ b/README.txt Thu Aug 20 22:45:00 2015 +0200
1.3 @@ -114,19 +114,26 @@
1.4 virtual_alias_maps_people_outgoing.cf mail routing
1.5 virtual_alias_maps_resources.cf ...
1.6
1.7 +Since the use of LDAP can be somewhat challenging and also excessive in some
1.8 +situations, examples of maintaining recipient information using a simpler
1.9 +approach are provided:
1.10 +
1.11 For Postfix without LDAP (in conf/postfix/simple)...
1.12
1.13 main.cf.example Defines recipients and outgoing
1.14 mail routing (for inclusion in
1.15 main.cf)
1.16
1.17 - virtual_alias_maps_people Defines recipients and outgoing
1.18 + virtual_alias_maps Defines recipients and outgoing
1.19 virtual_alias_maps_people_outgoing mail routing
1.20 - virtual_alias_maps_resources ...
1.21
1.22 -The above recipient identification configuration examples can be disregarded
1.23 -in favour of other ways of defining mail recipients, subject to the needs of
1.24 -any given environment.
1.25 +In this simpler environment, recipient details must be manually edited in the
1.26 +virtual alias map files, but this permits a very transparent way of
1.27 +administering the system.
1.28 +
1.29 +Naturally, the above recipient identification configuration examples can be
1.30 +disregarded in favour of other ways of defining mail recipients, subject to
1.31 +the needs of any given environment.
1.32
1.33 LDAP Representations for Mail Recipients
1.34 ----------------------------------------
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2.2 +++ b/conf/ldap/example.ldif Thu Aug 20 22:45:00 2015 +0200
2.3 @@ -0,0 +1,78 @@
2.4 +# Example directory entries.
2.5 +#
2.6 +# To populate a schema, a command resembling the following can be used:
2.7 +#
2.8 +# ldapadd -D 'cn=Directory Manager' -W -f example.ldif
2.9 +
2.10 +# See: RFC 4519 (person, organizationalPerson, organizationalUnit)
2.11 +# RFC 2798 (inetOrgPerson)
2.12 +# RFC 2739 (calEntry)
2.13 +# RFC 4512 (top)
2.14 +
2.15 +# Units:
2.16 +
2.17 +dn: ou=People,dc=example,dc=com
2.18 +objectClass: top
2.19 +objectClass: organizationalUnit
2.20 +ou: People
2.21 +
2.22 +dn: ou=Resources,dc=example,dc=com
2.23 +objectClass: top
2.24 +objectClass: organizationalUnit
2.25 +ou: Resources
2.26 +
2.27 +# People:
2.28 +
2.29 +dn: uid=pboddie,ou=People,dc=example,dc=com
2.30 +objectClass: top
2.31 +objectClass: person
2.32 +objectClass: inetOrgPerson
2.33 +objectClass: organizationalPerson
2.34 +objectClass: calEntry
2.35 +uid: pboddie
2.36 +givenName: Paul
2.37 +sn: Boddie
2.38 +cn: Paul Boddie
2.39 +mail: paul.boddie@example.com
2.40 +alias: pboddie@example.com
2.41 +calFBURL: http://www.example.com/freebusy/mailto:paul.boddie@example.com/freebusy
2.42 +
2.43 +dn: uid=vole,ou=People,dc=example,dc=com
2.44 +objectClass: top
2.45 +objectClass: person
2.46 +objectClass: inetOrgPerson
2.47 +objectClass: organizationalPerson
2.48 +objectClass: calEntry
2.49 +uid: vole
2.50 +givenName: Vincent
2.51 +sn: Vole
2.52 +cn: Vincent Vole
2.53 +mail: vincent.vole@example.com
2.54 +alias: vole@example.com
2.55 +calFBURL: http://www.example.com/freebusy/mailto:vincent.vole@example.com/freebusy
2.56 +
2.57 +# Resources:
2.58 +
2.59 +dn: cn=Porsche 911,ou=Resources,dc=example,dc=com
2.60 +objectClass: top
2.61 +objectClass: mailrecipient
2.62 +objectClass: calEntry
2.63 +cn: Porsche 911
2.64 +mail: resource-car-porsche911@example.com
2.65 +calFBURL: http://www.example.com/freebusy/mailto:resource-car-porsche911@example.com/freebusy
2.66 +
2.67 +dn: cn=Conference Room,ou=Resources,dc=example,dc=com
2.68 +objectClass: top
2.69 +objectClass: mailrecipient
2.70 +objectClass: calEntry
2.71 +cn: Conference Room
2.72 +mail: resource-room-confroom@example.com
2.73 +calFBURL: http://www.example.com/freebusy/mailto:resource-room-confroom@example.com/freebusy
2.74 +
2.75 +dn: cn=Sauna,ou=Resources,dc=example,dc=com
2.76 +objectClass: top
2.77 +objectClass: mailrecipient
2.78 +objectClass: calEntry
2.79 +cn: Sauna
2.80 +mail: resource-room-sauna@example.com
2.81 +calFBURL: http://www.example.com/freebusy/mailto:resource-room-sauna@example.com/freebusy
3.1 --- a/conf/postfix/simple/main.cf.example Sun Aug 16 00:41:12 2015 +0200
3.2 +++ b/conf/postfix/simple/main.cf.example Thu Aug 20 22:45:00 2015 +0200
3.3 @@ -1,4 +1,3 @@
3.4 virtual_alias_maps = $alias_maps, hash:/etc/postfix/virtual,
3.5 - regexp:/etc/postfix/simple/virtual_alias_maps_resources,
3.6 - regexp:/etc/postfix/simple/virtual_alias_maps_people
3.7 -sender_bcc_maps = regexp:/etc/postfix/simple/virtual_alias_maps_people_outgoing
3.8 + hash:/etc/postfix/simple/virtual_alias_maps
3.9 +sender_bcc_maps = hash:/etc/postfix/simple/virtual_alias_maps_people_outgoing
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
4.2 +++ b/conf/postfix/simple/virtual_alias_maps Thu Aug 20 22:45:00 2015 +0200
4.3 @@ -0,0 +1,5 @@
4.4 +paul.boddie@example.com people+paul.boddie@example.com
4.5 +vincent.vole@example.com people+vincent.vole@example.com
4.6 +resource-car-porsche911@example.com resources+resource-car-porsche911@example.com
4.7 +resource-room-confroom@example.com resources+resource-room-confroom@example.com
4.8 +resource-room-sauna@example.com resources+resource-room-sauna@example.com
5.1 --- a/conf/postfix/simple/virtual_alias_maps_people Sun Aug 16 00:41:12 2015 +0200
5.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
5.3 @@ -1,3 +0,0 @@
5.4 -if !/^((people+|people-outgoing+|resources+|resource-).*|calendar)@example\.com$/
5.5 -/^(.*)@(example\.com)$/ people+${1}@${2}
5.6 -endif
6.1 --- a/conf/postfix/simple/virtual_alias_maps_people_outgoing Sun Aug 16 00:41:12 2015 +0200
6.2 +++ b/conf/postfix/simple/virtual_alias_maps_people_outgoing Thu Aug 20 22:45:00 2015 +0200
6.3 @@ -1,3 +1,2 @@
6.4 -if !/^((people+|people-outgoing+|resources+|resource-).*|calendar)@example\.com$/
6.5 -/^(.*)@(example\.com)$/ people-outgoing+${1}@${2}
6.6 -endif
6.7 +paul.boddie@example.com people-outgoing+paul.boddie@example.com
6.8 +vincent.vole@example.com people-outgoing+vincent.vole@example.com
7.1 --- a/conf/postfix/simple/virtual_alias_maps_resources Sun Aug 16 00:41:12 2015 +0200
7.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
7.3 @@ -1,3 +0,0 @@
7.4 -if !/^((people+|people-outgoing+|resources+).*|calendar)@example\.com$/
7.5 -/^(resource-.*)@(example\.com)$/ resources+${1}@${2}
7.6 -endif