We have hundreds of domain hosted on Zimbra server. Suppose I want to shift domain1.com from the server to other server. I update MX records.
There also domain2.com hosted on Zimbra server. If any users from domain2.com sends mail to domain1.com it delivers locally. I want to deliver it to the server which serves as MX for the domain instead of delivering locally.
This means I want to keep the domain on the server but want to disable the local delivery for the that domain.
How to disable local delivery for domain.
-
- Advanced member
- Posts: 157
- Joined: Sat Sep 13, 2014 2:59 am
How to disable local delivery for domain.
Hey Tejas,
you can check zimbraPrefMailLocalDeliveryDisabled option in zmprov
you can check zimbraPrefMailLocalDeliveryDisabled option in zmprov
How to disable local delivery for domain.
Raunaq, thanks for your reply,
The option zimbraPrefMailLocalDeliveryDisabled decides whether mail should be stored locally if the forwarder is set for that email ID.
I want the setup where there are multiple domains on the single zimbra server and if user from one domain sends and an email to user of another domain it should be delivered by checking proper mx record.
Basically what happens if the both domains are on the same server mails are delivered locally. What if I want to keep the setup of domain on zimbra server but want to shift the domain to another service provider like google apps.
The option zimbraPrefMailLocalDeliveryDisabled decides whether mail should be stored locally if the forwarder is set for that email ID.
I want the setup where there are multiple domains on the single zimbra server and if user from one domain sends and an email to user of another domain it should be delivered by checking proper mx record.
Basically what happens if the both domains are on the same server mails are delivered locally. What if I want to keep the setup of domain on zimbra server but want to shift the domain to another service provider like google apps.
-
- Advanced member
- Posts: 133
- Joined: Sat Jul 19, 2014 7:07 am
- ZCS/ZD Version: Release 8.6.0.GA.1153.UBUNTU14.64 U
Re: How to disable local delivery for domain.
I'm looking for this as well.
- DualBoot
- Elite member
- Posts: 1326
- Joined: Mon Apr 18, 2016 8:18 pm
- Location: France - Earth
- ZCS/ZD Version: ZCS FLOSS - 8.8.15 Mutli servers
- Contact:
Re: How to disable local delivery for domain.
Hello,
Why do not set up a spli-domain ?
Regards,
Why do not set up a spli-domain ?
Regards,
-
- Advanced member
- Posts: 133
- Joined: Sat Jul 19, 2014 7:07 am
- ZCS/ZD Version: Release 8.6.0.GA.1153.UBUNTU14.64 U
Re: How to disable local delivery for domain.
Maybe I misunderstand, but split domain seems to be when you want to forward outgoing messges to a specific mail server. I (and from what I can infer, the OP as well) want to send outgoing messages to any server on the Internet, as designated by that domain's MX record. I don't want any local delivery for that domain. The intention of that domain is simply to authenticate local users (more accurately local automated programs) for remote delivery.
The domain does exist for full send\receive elsewhere. No, the local users I'm referring to can't just relay through that server.
The domain does exist for full send\receive elsewhere. No, the local users I'm referring to can't just relay through that server.
Re: How to disable local delivery for domain.
For the record : this shoud do the trick :
zmprov ma user@domain.com zimbraMailStatus disabled
zimbraMailStatus is an LDAP value checked by postfix to verify what is a valid email address
postconf -n | grep virtual
virtual_alias_domains = proxy:ldap:/opt/zimbra/conf/ldap-vad.cf
virtual_alias_expansion_limit = 10000
virtual_alias_maps = proxy:ldap:/opt/zimbra/conf/ldap-vam.cf
virtual_mailbox_domains = proxy:ldap:/opt/zimbra/conf/ldap-vmd.cf
virtual_mailbox_maps = proxy:ldap:/opt/zimbra/conf/ldap-vmm.cf
virtual_transport = error
cat /opt/zimbra/conf/ldap-vam.cf
server_host = ldap://zimbrapro.neptune.fr:389
server_port = 389
search_base =
query_filter = (&(|(zimbraMailDeliveryAddress=%s)(zimbraMailAlias=%s)(zimbraOldMailAddress=%s)(zimbraMailCatchAllAddress=%s))(zimbraMailStatus=enabled))
result_attribute = zimbraMailDeliveryAddress,zimbraMailForwardingAddress,zimbraPrefMailForwardingAddress,zimbraMailCatchAllForwardingAddress
version = 3
start_tls = yes
tls_ca_cert_dir = /opt/zimbra/conf/ca
bind = yes
bind_dn = uid=zmpostfix,cn=appaccts,cn=zimbra
bind_pw = CC53ahI_v
timeout = 30
special_result_attribute = member
zmprov ma user@domain.com zimbraMailStatus disabled
zimbraMailStatus is an LDAP value checked by postfix to verify what is a valid email address
postconf -n | grep virtual
virtual_alias_domains = proxy:ldap:/opt/zimbra/conf/ldap-vad.cf
virtual_alias_expansion_limit = 10000
virtual_alias_maps = proxy:ldap:/opt/zimbra/conf/ldap-vam.cf
virtual_mailbox_domains = proxy:ldap:/opt/zimbra/conf/ldap-vmd.cf
virtual_mailbox_maps = proxy:ldap:/opt/zimbra/conf/ldap-vmm.cf
virtual_transport = error
cat /opt/zimbra/conf/ldap-vam.cf
server_host = ldap://zimbrapro.neptune.fr:389
server_port = 389
search_base =
query_filter = (&(|(zimbraMailDeliveryAddress=%s)(zimbraMailAlias=%s)(zimbraOldMailAddress=%s)(zimbraMailCatchAllAddress=%s))(zimbraMailStatus=enabled))
result_attribute = zimbraMailDeliveryAddress,zimbraMailForwardingAddress,zimbraPrefMailForwardingAddress,zimbraMailCatchAllForwardingAddress
version = 3
start_tls = yes
tls_ca_cert_dir = /opt/zimbra/conf/ca
bind = yes
bind_dn = uid=zmpostfix,cn=appaccts,cn=zimbra
bind_pw = CC53ahI_v
timeout = 30
special_result_attribute = member