Changing the spam email accounts after domain change

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
zim_mike
Advanced member
Advanced member
Posts: 93
Joined: Sat Sep 13, 2014 3:26 am

Changing the spam email accounts after domain change

Postby zim_mike » Tue Mar 21, 2017 3:36 am

I have a zimbra 8.6.0 server which needed to be changed domains.
I went through the process and changed the domain/hostname and changed the Servers from the previous domain name to the new one I created.
The problem is that the spam email addresses all have the previous domain name. Should I just change those to be of the new domain or do they have to be re-created?

There are four accounts.

galsync.xxxx@domain.com
ham.xxxx@domain.com
spam.xxx@domain.com
virus-quarantine.xxx@domain.com

However, all are in the previous domain.


phoenix
Ambassador
Ambassador
Posts: 24726
Joined: Fri Sep 12, 2014 9:56 pm

Re: Changing the spam email accounts after domain change

Postby phoenix » Tue Mar 21, 2017 3:48 am

You can rename them or just recreate them in the new domain, details are in the wiki on how to do that.
Regards


Bill
zim_mike
Advanced member
Advanced member
Posts: 93
Joined: Sat Sep 13, 2014 3:26 am

Re: Changing the spam email accounts after domain change

Postby zim_mike » Tue Mar 21, 2017 4:01 am

Yes, I've been searching for hours but am finding countless unrelated things as I am not sure what specific key words to look for.
However, you mention that simply changing their domain name would do the trick and I've done that now.

Thanks.
phoenix
Ambassador
Ambassador
Posts: 24726
Joined: Fri Sep 12, 2014 9:56 pm

Re: Changing the spam email accounts after domain change

Postby phoenix » Tue Mar 21, 2017 5:43 am

Sorry, I forgot to add that you'll need to set them as the ham/spam accounts with the following commands:

Code: Select all

zmprov mcf zimbraSpamIsSpamAccount spam@domain.com
zmprov mcf zimbraSpamIsNotSpamAccount ham@domain.com
zmcontrol restart
Details for the quarantine account are here: https://wiki.zimbra.com/wiki/How_to_re- ... ne_Account

.... and the galsync details are here: https://wiki.zimbra.com/wiki/GAL_Sync_Account

Hopefully that's a more complete answer than my last one, I blame it on the fact it's too early in the morning. :)
Regards


Bill
zim_mike
Advanced member
Advanced member
Posts: 93
Joined: Sat Sep 13, 2014 3:26 am

Re: Changing the spam email accounts after domain change

Postby zim_mike » Tue Mar 21, 2017 2:01 pm

I very much appreciate the help. Sometimes, it's hard to find the right search terms. The words 'spam', 'ham', 'accounts' and others are very generic which is why I kept finding countless things unrelated. I'll make a note of the links you've given.

Thank you.
phoenix
Ambassador
Ambassador
Posts: 24726
Joined: Fri Sep 12, 2014 9:56 pm

Re: Changing the spam email accounts after domain change

Postby phoenix » Tue Mar 21, 2017 2:03 pm

You're welcome, I hope I haven't missed anything and it all goes well for you. :)
Regards


Bill
zim_mike
Advanced member
Advanced member
Posts: 93
Joined: Sat Sep 13, 2014 3:26 am

Re: Changing the spam email accounts after domain change

Postby zim_mike » Thu Mar 23, 2017 2:29 am

phoenix wrote:Sorry, I forgot to add that you'll need to set them as the ham/spam accounts with the following commands:

Code: Select all

zmprov mcf zimbraSpamIsSpamAccount spam@domain.com
zmprov mcf zimbraSpamIsNotSpamAccount ham@domain.com
zmcontrol restart
Details for the quarantine account are here: https://wiki.zimbra.com/wiki/How_to_re- ... ne_Account

.... and the galsync details are here: https://wiki.zimbra.com/wiki/GAL_Sync_Account

Hopefully that's a more complete answer than my last one, I blame it on the fact it's too early in the morning. :)



I followed the steps in the first url. Everything works until one point.

zmlocalconfig av_notify_user=<admin@YOUR_DOMAIN>

$ zmlocalconfig av_notify_user=<admin@domain.com
bash: admin@domain.com: No such file or directory

This is not clear either.
zmlocalconfig av_notify_domain<Domain_name>

$ zmlocalconfig av_notify_domain domain.com
Warning: null valued key 'domain.com'
av_notify_domain = old-domain.com < the old domain name is still stuck in there somewhere.
User avatar
tonster
Zimbra Employee
Zimbra Employee
Posts: 246
Joined: Fri Feb 21, 2014 10:14 am
Location: Ypsilanti, MI
ZCS/ZD Version: Release 8.7.0_GA_1659.RHEL6_64_2016

Re: Changing the spam email accounts after domain change

Postby tonster » Fri Mar 24, 2017 1:53 am

You need to use the -e switch.

i.e. zmlocalconfig -e ...

Sent from my SM-G925T using Tapatalk

Return to “Administrators”

Who is online

Users browsing this forum: No registered users and 10 guests