Page 1 of 3

Error transportfile when install zimbra 8.5beta2

Posted: Thu Jun 05, 2014 9:40 pm
by tuannv79
Hi all,

I upgrade zimbra 8.0.7 to 8.5 beta2

When create transportfile then error follow:

Jun 6 09:20:01 mail postfix/trivial-rewrite[4190]: warning: hash:/opt/zimbra/postfix/conf/transportfile is unavailable. unsupported dictionary type: hash

Error transportfile when install zimbra 8.5beta2

Posted: Thu Jun 05, 2014 9:50 pm
by quanah
How did you create your transport file? There is no support for hash DB's with ZCS 8.5, they are lmdb DBs instead. I.e, the zimbra postconf will create transport.lmdb, and you need to access that instead. I would also note that generally all reasons to customize the postfix installation in an unsupported method are no longer necessary with 8.5. I.e., there are supported ways to do most everything in 8.5. If you can better explain what you are trying to accomplish, I can point you at the relevant how to.

Error transportfile when install zimbra 8.5beta2

Posted: Thu Jun 05, 2014 10:32 pm
by tuannv79
Thanks you for support, I have create transport file to relayhost to external server.

How do follow:

1.vi /opt/zimbra/postfix/conf/transportfile

otherdomain.com :[smtp.otherdomain.com]

2.postmap /opt/zimbra/postfix/conf/transportfile

3.$ zmlocalconfig -e postfix_transport_maps="hash:/opt/zimbra/postfix/conf/transportfile proxy:ldap:/opt/zimbra/conf/ldap-transport.cf"

4. postfix reload

Please support how use lmdb DBs in transport.
Thanks,

Error transportfile when install zimbra 8.5beta2

Posted: Thu Jun 05, 2014 11:01 pm
by quanah
You need to change step 3 to:
zmlocalconfig -e postfix_transport_maps="lmdb:/opt/zimbra/postfix/conf/transportfile proxy:ldap:/opt/zimbra/conf/ldap-transport.cf"
with ZCS 8.5

Error transportfile when install zimbra 8.5beta2

Posted: Thu Jun 05, 2014 11:15 pm
by tuannv79
I have used zmlocalconfig -e postfix_transport_maps="lmdb:/opt/zimbra/postfix/conf/transportfile proxy:ldap:/opt/zimbra/conf/ldap-transport.cf", but when restart postfix, still hash:/opt/zimbra/postfix/conf/transportfile proxy:ldap:/opt/zimbra/conf/ldap-transport.cf, not change in main.cf.

Error transportfile when install zimbra 8.5beta2

Posted: Thu Jun 05, 2014 11:36 pm
by quanah
Oh, right... In 8.5, the LC keys are moved into ldap :)
zmprov ms `zmhostname` zimbraMtaTransportMaps 'lmdb:/opt/zimbra/postfix/conf/transportfile proxy:ldap:/opt/zimbra/conf/ldap-transport.cf'

Error transportfile when install zimbra 8.5beta2

Posted: Thu Jun 05, 2014 11:55 pm
by tuannv79
Thanks you, Now successfully.

Please Help replace command: zmlocalconfig -e postfix_smtp_sasl_password_maps=hash:/opt/zimbra/conf/relay_password by use zmprov in zimbra 8.5 beta2.

Error transportfile when install zimbra 8.5beta2

Posted: Tue Jun 17, 2014 12:17 am
by 3436baroso
I installes also 8.5 beta 2 and have got the same postfix error - unsupported dictionary type: hash

I've put my password for the relay authentication into /opt/zimbra/conf/relay_password, where do I put it with 8.5 beta 2 to avoid this error???
@tannv79: have you ever resolved this?
Regards

Error transportfile when install zimbra 8.5beta2

Posted: Wed Jun 18, 2014 10:41 am
by quanah
If you read this thread, it is clearly stated that hash DBs are not supported. Why would you expect them to work? As I already posted, you need to run postmap on your file to generate an lmdb database instead, and then use that.

Error transportfile when install zimbra 8.5beta2

Posted: Mon Jun 23, 2014 4:21 am
by 3436baroso
Got it working by generating an lmdb file for my relay_password file!
BUT, issuing the following command did NOT work ...
zmlocalconfig -e postfix_smtp_sasl_password_maps=lmdb:/opt/zimbra/conf/relay_password
... instead I had to change the main.cf file manually by editing the following line ...
VAR zimbraMtaSmtpSaslPasswordMaps = lmdb:/opt/zimbra/conf/relay_password
Thanks for you help!!!
Regards