1.1 --- a/conf/postfix/main.cf.example Thu Oct 30 19:35:40 2014 +0100
1.2 +++ b/conf/postfix/main.cf.example Thu Oct 30 21:53:56 2014 +0100
1.3 @@ -1,1 +1,2 @@
1.4 -virtual_alias_maps = $alias_maps, ..., ldap:/etc/postfix/ldap/virtual_alias_maps_resources.cf, ldap:/etc/postfix/ldap/virtual_alias_maps_people.cf
1.5 +virtual_alias_maps = $alias_maps, ldap:/etc/postfix/ldap/virtual_alias_maps_resources.cf, ldap:/etc/postfix/ldap/virtual_alias_maps_people.cf
1.6 +sender_bcc_maps = ldap:/etc/postfix/ldap/virtual_alias_maps_people_outgoing.cf
2.1 --- a/conf/postfix/master.cf.items Thu Oct 30 19:35:40 2014 +0100
2.2 +++ b/conf/postfix/master.cf.items Thu Oct 30 21:53:56 2014 +0100
2.3 @@ -2,5 +2,8 @@
2.4 flags=FR user=imip-agent argv=/var/lib/imip-agent/imip_resource.py
2.5 -o ${original_recipient} -r ${recipient} -s imip-agent@example.com
2.6 imip_people unix - n n - - pipe
2.7 - flags=FR user=imip-agent argv=/var/lib/imip-agent/imip_person.py
2.8 + flags=FR user=imip-agent:lmtp argv=/var/lib/imip-agent/imip_person.py
2.9 -o ${original_recipient} -r ${recipient} -s imip-agent@example.com -l $lmtp_socket
2.10 +imip_people_outgoing unix - n n - - pipe
2.11 + flags=FR user=imip-agent argv=/var/lib/imip-agent/imip_person_outgoing.py
2.12 + -O
3.1 --- a/conf/postfix/transport Thu Oct 30 19:35:40 2014 +0100
3.2 +++ b/conf/postfix/transport Thu Oct 30 21:53:56 2014 +0100
3.3 @@ -2,3 +2,5 @@
3.4 resources@example.com imip_resources:
3.5 # iMIP content handling for example.com via the people address:
3.6 people@example.com imip_people:
3.7 +# iMIP content handling for example.com via the people-outgoing address:
3.8 +people-outgoing@example.com imip_people_outgoing:
4.1 --- a/imip_store.py Thu Oct 30 19:35:40 2014 +0100
4.2 +++ b/imip_store.py Thu Oct 30 21:53:56 2014 +0100
4.3 @@ -3,7 +3,7 @@
4.4 from datetime import datetime
4.5 from imiptools.config import STORE_DIR, PUBLISH_DIR
4.6 from os.path import abspath, commonprefix, exists, join, split
4.7 -from os import makedirs
4.8 +from os import chmod, makedirs
4.9 from vCalendar import iterwrite
4.10
4.11 def check_dir(base, dir):
4.12 @@ -80,6 +80,7 @@
4.13 to_stream(f, node)
4.14 finally:
4.15 f.close()
4.16 + chmod(filename, 0660)
4.17
4.18 return True
4.19
4.20 @@ -114,6 +115,7 @@
4.21 f.write("\t".join(item) + "\n")
4.22 finally:
4.23 f.close()
4.24 + chmod(filename, 0660)
4.25
4.26 return True
4.27
4.28 @@ -145,6 +147,7 @@
4.29 print >>f, request
4.30 finally:
4.31 f.close()
4.32 + chmod(filename, 0660)
4.33
4.34 return True
4.35
4.36 @@ -161,6 +164,7 @@
4.37 print >>f, request
4.38 finally:
4.39 f.close()
4.40 + chmod(filename, 0660)
4.41
4.42 return True
4.43
4.44 @@ -205,6 +209,7 @@
4.45 to_stream(f, make_calendar([("VFREEBUSY", {}, record)], "PUBLISH"))
4.46 finally:
4.47 f.close()
4.48 + chmod(filename, 0660)
4.49
4.50 return True
4.51