I am migrating to Zimbra. For most domains, it will be the sole SMTP/IMAP server; but for one critical domain, it is a backup mx.
I can't seem to get this to work.
In postfix (which I'm not really familiar with), I think I need a transport map, along the lines of:
Code:
mydomain.com: smtp:[192.168.x.y]
But Zimbra uses LDAP to hold this config. Looking at /opt/zimbra/conf/ldap-transport.cf seems to indicate that it's the zimbraMailDeliveryAddress that I should try and set.
So I try:
Code:
zimbra@zimbra:~$ zmprov
prov> md mydomain.com zimbraMailDeliveryAddress smtp:[192.168.x.y]
ERROR: service.INVALID_REQUEST (invalid request: zimbraMailDeliveryAddress is immutable)
So a different thread hints at using ldapmodify. I try something like:
Code:
zimbra@zimbra:~$ cat /tmp/transport.ldif
dn: dc=mydomain,dc=com
changetype: modify
add: zimbraMailDeliveryAddress
zimbraMailDeliveryAddress: smtp:[192.168.x.y]
zimbra@zimbra:~$ ldapmodify -w `zmlocalconfig -s -x -m nokey ldap_root_password` -D `zmlocalconfig -s -x -m nokey zimbra_ldap_userdn` -f /tmp/transport.ldif
modifying entry "dc=mydomain,dc=com"
zimbra@zimbra:~$ ldapsearch
# mydomain.com
dn: dc=mydomain,dc=com
...
zimbraMailStatus: enabled
zimbraMailDeliveryAddress: smtp:[192.168.x.y]
So the above ldapsearch indicates that the right attribute is set.
However, it doesn't work. I send an email to Zimbra, and it bounces it back.
I note the following:
Code:
zimbra@zimbra:~$ zmprov gd mydomain.com
# name mydomain.com
dc: mydomain
o: mydomain.com domain
...
zimbraMailDeliveryAddress,zimbraMailAlias,mail=email,email2,email3,email4,email5,email6
...
zimbraMailDeliveryAddress: smtp:[192.168.x.y]
zimbraMailStatus: enabled
So, questions:
- am I going about this in the right way?
- what have I done wrong?
Thanks in advance.
PS let's not debate the merits of a backup MX, please.