Changing the spam email accounts after domain change

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

Changing the spam email accounts after domain change

Post by zim_mike »

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: 27278
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Re: Changing the spam email accounts after domain change

Post by phoenix »

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

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
zim_mike
Outstanding Member
Outstanding Member
Posts: 330
Joined: Sat Sep 13, 2014 3:26 am

Re: Changing the spam email accounts after domain change

Post by zim_mike »

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: 27278
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Re: Changing the spam email accounts after domain change

Post by phoenix »

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

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
zim_mike
Outstanding Member
Outstanding Member
Posts: 330
Joined: Sat Sep 13, 2014 3:26 am

Re: Changing the spam email accounts after domain change

Post by zim_mike »

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: 27278
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Re: Changing the spam email accounts after domain change

Post by phoenix »

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

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
zim_mike
Outstanding Member
Outstanding Member
Posts: 330
Joined: Sat Sep 13, 2014 3:26 am

Re: Changing the spam email accounts after domain change

Post by zim_mike »

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: 313
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

Post by tonster »

You need to use the -e switch.

i.e. zmlocalconfig -e ...

Sent from my SM-G925T using Tapatalk
zim_mike
Outstanding Member
Outstanding Member
Posts: 330
Joined: Sat Sep 13, 2014 3:26 am

Re: Changing the spam email accounts after domain change

Post by zim_mike »

Strange, now I get 'Permission denied' even as the zimbra user trying to run the
zmlocalconfig -e av_notify_user=<admin@domain.com

Then, moments later, I get
bash: admin@domain.com: No such file or directory
User avatar
DualBoot
Elite member
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: Changing the spam email accounts after domain change

Post by DualBoot »

you misspelled the command :
zmlocalconfig -e av_notify_user=<admin@domain.com

the right one :
zmlocalconfig -e av_notify_user=admin@domain.com
Post Reply