<div dir="ltr">Thanks for the info on this!<br>It looks like there is that option on the 5208, but it's set to nobody where I want it set for the user. I'll work on that.<div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Ken Marcus<div>Precision Web Hosting, LLC</div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Mar 22, 2024 at 9:51 AM Michael Stauber <<a href="mailto:mstauber@blueonyx.it">mstauber@blueonyx.it</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Ken,<br>
<br>
> Is there a CCE / command line option for enabling dkim on a site?<br>
<br>
Find out the Object ID of the Vsite in question. And then run this <br>
SET-transaction against that OID:<br>
<br>
SET <VSITE-OID> . OpenDKIM enabled = "1" force_update = "1711125305"<br>
<br>
The number in "force_update" doesn't matter. It just has to be different <br>
from any number that's already present in that field. We usually use the <br>
return value of time() for that.<br>
<br>
> 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?<br>
<br>
Whew. How old is the source server? Even 5207R and 5208R had that field.<br>
<br>
In I *think* the adjust scripts in CMU should at least try to set it to <br>
"apache" if that field isn't there yet. But I'm not sure.<br>
<br>
The CCE SET-transaction for this would look like this:<br>
<br>
SET <VSITE-OID> . PHP prefered_siteAdmin = "apache"<br>
<br>
But there is a work around. On the server where you want to import? Edit <br>
this file:<br>
<br>
/usr/sausalito/schemas/base/apache/vsite_services.schema<br>
<br>
Find this section of code:<br>
<br>
<property<br>
name="prefered_siteAdmin" type="scalar" default=""<br>
writeacl="ruleCapable(adminUser) OR ruleCapable(siteAdmin)"<br>
/><br>
<br>
Change it to this:<br>
<br>
<property<br>
name="prefered_siteAdmin" type="scalar" default="apache"<br>
writeacl="ruleCapable(adminUser) OR ruleCapable(siteAdmin)"<br>
/><br>
<br>
Save the changes and restart CCEd:<br>
<br>
/usr/sausalito/sbin/cced.init rehash<br>
<br>
That will then make sure that all newly created Vsites that don't get a <br>
"prefered_siteAdmin" set by CMU will at least have "apache" set as user.<br>
<br>
You may still have UID/GID permission errors with PHP scripts for as <br>
long as you don't manually set a siteAdmin to be the "web owner", but it <br>
should at least import the Vsite fine then.<br>
<br>
-- <br>
With best regards<br>
<br>
Michael Stauber<br>
<br>
</blockquote></div>