[BlueOnyx:26862] Re: CCE command for enabling dkim ?
Michael Stauber
mstauber at blueonyx.it
Fri Mar 22 11:50:27 -05 2024
Hi Ken,
> Is there a CCE / command line option for enabling dkim on a site?
Find out the Object ID of the Vsite in question. And then run this
SET-transaction against that OID:
SET <VSITE-OID> . OpenDKIM enabled = "1" force_update = "1711125305"
The number in "force_update" doesn't matter. It just has to be different
from any number that's already present in that field. We usually use the
return value of time() for that.
> Also, for importing from older servers with no 'web ownership" option, > if I edit the cmu.xml and add that before import, would it work?
Whew. How old is the source server? Even 5207R and 5208R had that field.
In I *think* the adjust scripts in CMU should at least try to set it to
"apache" if that field isn't there yet. But I'm not sure.
The CCE SET-transaction for this would look like this:
SET <VSITE-OID> . PHP prefered_siteAdmin = "apache"
But there is a work around. On the server where you want to import? Edit
this file:
/usr/sausalito/schemas/base/apache/vsite_services.schema
Find this section of code:
<property
name="prefered_siteAdmin" type="scalar" default=""
writeacl="ruleCapable(adminUser) OR ruleCapable(siteAdmin)"
/>
Change it to this:
<property
name="prefered_siteAdmin" type="scalar" default="apache"
writeacl="ruleCapable(adminUser) OR ruleCapable(siteAdmin)"
/>
Save the changes and restart CCEd:
/usr/sausalito/sbin/cced.init rehash
That will then make sure that all newly created Vsites that don't get a
"prefered_siteAdmin" set by CMU will at least have "apache" set as user.
You may still have UID/GID permission errors with PHP scripts for as
long as you don't manually set a siteAdmin to be the "web owner", but it
should at least import the Vsite fine then.
--
With best regards
Michael Stauber
More information about the Blueonyx
mailing list