Can't edit freshclam.conf

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
potemkin
Posts: 7
Joined: Fri May 20, 2022 11:43 am

Can't edit freshclam.conf

Post by potemkin »

Hello to everyone.
I using latest version of ZCS Open Source.
I want to edit freshclam.conf because we need to use use PrivateMirror option.
After editing this file i try to restart service and see that config was owerriten by old value.
How i can fix it?
User avatar
andras0602
Advanced member
Advanced member
Posts: 62
Joined: Sat May 21, 2022 3:11 pm
ZCS/ZD Version: 8.8.15

Re: Can't edit freshclam.conf

Post by andras0602 »

I checked one of my Zimbra v8 server (I was not brave enough to update 9 yet) and found this value:

Code: Select all

[zimbra@mail ~]$ zmprov gcf zimbraClamAVDatabaseMirror
zimbraClamAVDatabaseMirror: db.us.clamav.net
Don't you need exactly this? If yes, I would check the same value and try

Code: Select all

zmprov mcf zimbraClamAVDatabaseMirror your.private.mirror.address
But don't forget to make these with the zimbra user!
User avatar
L. Mark Stone
Ambassador
Ambassador
Posts: 2802
Joined: Wed Oct 09, 2013 11:35 am
Location: Portland, Maine, US
ZCS/ZD Version: 10.0.7 Network Edition
Contact:

Re: Can't edit freshclam.conf

Post by L. Mark Stone »

One other thing to keep in mind is that Zimbra, when restarted, destroys and recreates (almost) all of the services configuration files, based on data found in LDAP, localconfig and any *.in files.

Consequently, when you make manual changes to like Postfix's main.cf, these changes are lost upon a restart.

Hope that helps,
Mark
___________________________________
L. Mark Stone
Mission Critical Email - Zimbra VAR/BSP/Training Partner https://www.missioncriticalemail.com/
AWS Certified Solutions Architect-Associate
potemkin
Posts: 7
Joined: Fri May 20, 2022 11:43 am

Re: Can't edit freshclam.conf

Post by potemkin »

Thanks for your unswer!
I think that this what i need.
I will try to use this way.
andras0602 wrote:I checked one of my Zimbra v8 server (I was not brave enough to update 9 yet) and found this value:

Code: Select all

[zimbra@mail ~]$ zmprov gcf zimbraClamAVDatabaseMirror
zimbraClamAVDatabaseMirror: db.us.clamav.net
Don't you need exactly this? If yes, I would check the same value and try

Code: Select all

zmprov mcf zimbraClamAVDatabaseMirror your.private.mirror.address
But don't forget to make these with the zimbra user!
potemkin
Posts: 7
Joined: Fri May 20, 2022 11:43 am

Re: Can't edit freshclam.conf

Post by potemkin »

Great unswer. This totaly explain my situation.
Thank you.
L. Mark Stone wrote:One other thing to keep in mind is that Zimbra, when restarted, destroys and recreates (almost) all of the services configuration files, based on data found in LDAP, localconfig and any *.in files.

Consequently, when you make manual changes to like Postfix's main.cf, these changes are lost upon a restart.

Hope that helps,
Mark
Post Reply