Error transportfile when install zimbra 8.5beta2

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
tuannv79
Posts: 11
Joined: Sat Sep 13, 2014 3:17 am

Error transportfile when install zimbra 8.5beta2

Post 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
User avatar
quanah
Zimbra Alumni
Zimbra Alumni
Posts: 1668
Joined: Fri Sep 12, 2014 10:33 pm
Contact:

Error transportfile when install zimbra 8.5beta2

Post 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.
--
Quanah Gibson-Mount
Product Architect, Symas http://www.symas.com/
OpenLDAP Core team http://www.openldap.org/project/
tuannv79
Posts: 11
Joined: Sat Sep 13, 2014 3:17 am

Error transportfile when install zimbra 8.5beta2

Post 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,
User avatar
quanah
Zimbra Alumni
Zimbra Alumni
Posts: 1668
Joined: Fri Sep 12, 2014 10:33 pm
Contact:

Error transportfile when install zimbra 8.5beta2

Post 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
--
Quanah Gibson-Mount
Product Architect, Symas http://www.symas.com/
OpenLDAP Core team http://www.openldap.org/project/
tuannv79
Posts: 11
Joined: Sat Sep 13, 2014 3:17 am

Error transportfile when install zimbra 8.5beta2

Post 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.
User avatar
quanah
Zimbra Alumni
Zimbra Alumni
Posts: 1668
Joined: Fri Sep 12, 2014 10:33 pm
Contact:

Error transportfile when install zimbra 8.5beta2

Post 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'
--
Quanah Gibson-Mount
Product Architect, Symas http://www.symas.com/
OpenLDAP Core team http://www.openldap.org/project/
tuannv79
Posts: 11
Joined: Sat Sep 13, 2014 3:17 am

Error transportfile when install zimbra 8.5beta2

Post 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.
3436baroso
Posts: 6
Joined: Sat Sep 13, 2014 2:52 am

Error transportfile when install zimbra 8.5beta2

Post 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
User avatar
quanah
Zimbra Alumni
Zimbra Alumni
Posts: 1668
Joined: Fri Sep 12, 2014 10:33 pm
Contact:

Error transportfile when install zimbra 8.5beta2

Post 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.
--
Quanah Gibson-Mount
Product Architect, Symas http://www.symas.com/
OpenLDAP Core team http://www.openldap.org/project/
3436baroso
Posts: 6
Joined: Sat Sep 13, 2014 2:52 am

Error transportfile when install zimbra 8.5beta2

Post 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
Post Reply