• Home
  • Free Stuff
  • About
  • Contact

Change IP Address of Zimbra Mail Server : How to Resolve the Problem

October 9, 2008

By default, Zimbra will not get the problem if we try to change the IP Address. The problem will only occured if the replace IP have a different netmask with the previous one.

If we tried to change Zimbra mail server IP Address from a set of IP, eg : 192.168.0.1 into 192.168.0.101 and both of them are within same net mask, it will not get any problem. Zimbra mail server version 5.x.x will automatically change LDAP setting to proper configuration.

As described above, the problem will only occurred if current IP Address have different net mask, eg : change IP from 192.168.0.1 into 192.168.5.1 or into 10.0.0.101. Below is an example of the error message :

Error: This message could not be sent.

Subject: Sending test message

To: vivian@vavai.com

Note: Soap Fault. Please recreate and resend the message. Details below:

Error Code: mail.SEND_ABORTED_ADDRESS_FAILURE
Error Text: Invalid address: vivian@vavai.com

and then another message :

Message not sent; one or more addresses were not accepted.
Rejected addresses: vivian@vavai.com

The problem occurred because Zimbra have different TrustedNetwork Setting in Postfix configuration within Zimbra configuration. Zimbra used Postfix as MTA engine and while it’s first initial install, trustednetwork setting will be filled out with existing IP Address format. To ensure if this is the main problem, checked current configuration at terminal / konsole and type in :

su - zimbra
$ postconf mynetworks
mynetworks = 127.0.0.0/8 192.168.0.0/24

And another check : Zimbra LDAP configuration :

zmprov getServer zimbra.example.com | grep zimbraMtaMyNetworks

If the setting display different IP set compared to current configuration, change the setting with zmprov modifyserver as noticed below :

zmprov modifyServer hostname.domainname.tld zimbraMtaMyNetworks '127.0.0.0/8 your.server.ip.address'

eg :

zmprov modifyServer mail.vavai.com zimbraMtaMyNetworks '127.0.0.0/8 192.168.0.0/24'

After change the proper setting, reload and restart your Zimbra server :

su - zimbra
postfix reload
zmcontrol stop
zmcontrol start

Another resource : ZimbraMTAMyNetworks

Share

Linux

Masim "Vavai" Sugianto
Traveller, Open Source Enthusiast & Book Lover. Works as Independent Worker & Self-Employer.

12 Comments


Andrew Virender
October 12, 2009 at 17:32
Reply

This was a bit complex for me. But i do understand it is important to change IP for a variety of reasons. One of the most important one is to be able to be secure and enjoy some privacy on the internet or at least try. There have become available some cool software such as Private Proxy software to rapidly change IP and route the connection through multiple servers. Thus effectively hiding your IP address and allowing one to surf the net anonymously. In order to combat security and privacy challenges on the internet Changing the IP has become an effective weapon against hackers and identity thieves.



wrt54gl
January 22, 2010 at 23:18
Reply

Thank you so much for this as I just changed the sub-net for my lan and couldn’t send mail. This was exactly what I needed.



adrian
March 30, 2010 at 02:22
Reply

hey,

thank you for provided information. I have moved one of my Zimbra’s (5.X) to another host and took the steps you described. I had to edit main.cf in /opt/zimbra/postfix/conf/

There was still mentioned line (mynetworks) with old values however I set it previously by zmprov and restarted it afterwards

maybe that helps 😉



G
November 4, 2010 at 09:49
Reply

Thanks for the tip buddy!

Just what I needed.



farrukh
March 18, 2014 at 12:01
Reply

Yes i am same problem and its resolve by applying above scenario .
thanks.



rafae flores
December 31, 2014 at 02:38
Reply

Thanks a lot, this solve my problem.



Kristaps
March 24, 2015 at 19:01
Reply

Thanks friend. This was truly a life saver post for me. Its quite amazing how they do not mention this in the official documentation!



Change IP Address of Zimbra Mail Server : How to Resolve the Problem Masim "Vavai" Sugianto
March 30, 2015 at 08:33
Reply

[…] Sumber : http://v2.vavai.net/2008/10/change-ip-address-of-zimbra-mailserver-how-to-resolve-the-problem/ […]



Mack
December 30, 2015 at 00:34
Reply

Another upvote for a lifesaving document. Should be added to the official.



Marcos
February 4, 2016 at 21:38
Reply

Mensaje no enviado; una o más direcciones no han sido aceptadas.
Direcciones rechazadas: marcosriveros@intn.gov.py
method: [unknown]
msg: Invalid address: marcosriveros@intn.gov.py. com.zimbra.cs.mailbox.MailSender$SafeSendFailedException: MESSAGE_NOT_DELIVERED; chained exception is: com.zimbra.cs.mailclient.smtp.InvalidRecipientException: RCPT failed: Invalid recipient marcosriveros@intn.gov.py: 451 4.3.0 : Temporary lookup failure
code: mail.SEND_ABORTED_ADDRESS_FAILURE
detail: soap:Sender
trace: qtp509886383-220:https://192.168.0.16:8443/service/soap/SendMsgRequest:1454596574851:b9025b5da65c0ce3
request:
Body: {
SendMsgRequest: {
_jsns: “urn:zimbraMail”,
m: {
did: “257”,
e: [
// [0]:
{
a: “marcosriveros@intn.gov.py”,
t: “t”
},
// [1]:
{
a: “marcosriveros@intn.gov.py”,
p: “Marcos A. Riveros”,
t: “f”
}
],
id: “257”,
idnt: “aa9f77a3-2434-4a5e-b1fb-fcca061b36a1”,
mp: [
// [0]:
{
ct: “multipart/alternative”,
mp: [
// [0]:
{
content: {
_content: “asfsaf
”
},
ct: “text/plain”
},
// [1]:
{
content: {
_content: “<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div>asfsaf</div></div></body></html>”
},
ct: “text/html”
}
]
}
],
su: {
_content: “asfsaf”
}
},
suid: 1454596570980
}
},
Header: {
context: {
_jsns: “urn:zimbra”,
account: {
_content: “marcosriveros@intn.gov.py”,
by: “name”
},
authToken: “(removed)”,
csrfToken: “0_6ee8cf5bf791709ff31241ae45b8be62bb0bf009”,
notify: {
seq: 7
},
session: {
_content: 15,
id: 15
},
userAgent: {
name: “ZimbraWebClient – GC48 (Win)”,
version: “8.6.0_GA_1153”
}
}
}
Ocultar detalles

This is my error and not have how resolved..please cant you help me?



HannibalH
June 29, 2016 at 03:58
Reply

Excelent Solution for my problem, thanks a lot!!!



Snyman
February 9, 2017 at 16:43
Reply

Also had to edit
conf/nginx/includes/nginx.conf.memcache
and
conf/nginx/includes/nginx.conf.zmlookup



Teguh-Sriu
December 26, 2017 at 14:00
Reply

kami mengalami error seperti ini:

[zimbra@mail ~]$ zmprov getServer zimbra.example.com | grep zimbraMtaMyNetworks
[] INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection refused
[] INFO: Retrying request
ERROR: zclient.IO_ERROR (invoke Connection refused, server: localhost) (cause: java.net.ConnectException Connection refused)
[zimbra@mail ~]$

Mohon petunjuk nya,.



Leave a Reply to Andrew Virender Cancel reply

Your email address will not be published. Required fields are marked *

  • Recent Posts

    • Januari 2021 Portfolio Update
    • December 2020 Portfolio Update
    • After a While
    • Life goes On : Farming
    • Pursuing FIRE in Indonesia : Are You Prepared For A Recession?
    • VirtualBox Error Kernel Driver not Installed (rc=-1908) on Zorin OS 15.2
    • ZorinOS on Intel NUC Hades Canyon Series NUC817HVK
    • Banana Farm
    • Zorin OS 15.2 Ultimate
    • Haraka and LDAP Authentication with Zimbra



© Copyright LetsBlog Theme Demo - Theme by ThemeGoods