summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorivan <ivan>2006-09-23 18:33:41 +0000
committerivan <ivan>2006-09-23 18:33:41 +0000
commit8c8c4eb5558e353543b9f3bd4a96ad982faa67b7 (patch)
treeab0221be4c1acb36f6d2d345fcfb1f26f4612bb4 /FS
parent46b88fc39aaaacc5b2233163b491729d6c9b44cc (diff)
update to mailserver integration
Diffstat (limited to 'FS')
-rw-r--r--FS/FS/part_export/acct_sql.pm1
-rw-r--r--FS/FS/svc_acct.pm11
2 files changed, 12 insertions, 0 deletions
diff --git a/FS/FS/part_export/acct_sql.pm b/FS/FS/part_export/acct_sql.pm
index b16f5c2..9f1ae7b 100644
--- a/FS/FS/part_export/acct_sql.pm
+++ b/FS/FS/part_export/acct_sql.pm
@@ -69,6 +69,7 @@ tie my %postfix_native_mailbox_map, 'Tie::IxHash',
'uid' => 'uid',
'gid' => 'gid',
'password' => 'ldap_password',
+ 'mail' => 'domain_slash_username',
;
my $postfix_native_mailbox_map =
join('\n', map "$_ $postfix_native_mailbox_map{$_}",
diff --git a/FS/FS/svc_acct.pm b/FS/FS/svc_acct.pm
index 003ad90..79e9b25 100644
--- a/FS/FS/svc_acct.pm
+++ b/FS/FS/svc_acct.pm
@@ -1597,6 +1597,17 @@ sub ldap_password {
}
}
+=item domain_slash_username
+
+Returns $domain/$username/
+
+=cut
+
+sub domain_slash_username {
+ my $self = shift;
+ $self->domain. '/'. $self->username. '/';
+}
+
=item virtual_maildir
Returns $domain/maildirs/$username/