[Phamm] Modifying phamm for multi-mailstorage servers ?
Mirko ML
ops at klez.it
Mon May 4 10:02:20 CEST 2009
Jorge Armando Medina ha scritto:
> Isn't transport attribute is used for that? well in postfix you define mail
> host using transports, with postfix you can use global, by domain or by user
> transports, so you can redirect some users to a specific mailhost (store),
> AFAIK, with phamm the default is virtual (postfix virtual(8)), I used
> maildrop for a local maildrop (MDA).
It is correct that we can change Postfix transport, but if need also the
attribute MailHost we can change the xml in the mail plugin to obtain
something like this:
dn:mail=john.doe a example.tld,vd=example.tld,o=hosting,dc=example,dc=tld
objectClass: top
objectClass: VirtualMailAccount
objectClass: Vacation
objectClass: amavisAccount
objectClass: VirtualForward
objectClass: inetLocalMailRecipient
mail: john.doe a example.tld
vdHome: /home/vmail/domains
mailbox: example.tld/john.doe/
delete: FALSE
accountActive: TRUE
sn: Doe
userPassword: {SSHA}G7vRIKNRvDQg0T0qarcMgbYaQ+iOLEgq
description: Vacation description
vacationActive: FALSE
vacationStart: 01 gennaio 2004
vacationEnd: 01 gennaio 2004
vacationForward: user a example.tld
forwardActive: FALSE
lastChange: 1108499016
cn: John
quota: 52428800S
amavisSpamKillLevel: 6.0
amavisSpamTag2Level: 5.5
amavisSpamTagLevel: 3.0
amavisBypassVirusChecks: FALSE
amavisBypassSpamChecks: TRUE
mailAutoreply: john.doe a example.tld.autoreply
mailHost: mail.phamm.org
the attibute mailHost as we can see on misc.schema is defined
DESC 'FQDN of the SMTP/MTA of this recipient'
Obviously we MUST add misc.schema in slapd.conf
--
Ciao
Mirko
More information about the Phamm
mailing list