I host a number of sites using the Control Web Panel (CWP), an open source alternative to CPanel. Even though I have support on CWP, there are a bunch of little things that are either not documented or not well documented. This post is collecting up my notes on things that are not or not well documented.
CWP has a built-in capability to backup configuration and end user data. It backs it up to a local directory, which you can then configure to rsync out to a different server. It even has a convenient way to test your ssh configuration (because of course the rsync tunnels via ssh). The odd thing is that you cannot test the configuration until after you save it. If you try testing before you save it, it uses the saved values (oh wait, there aren’t any saved values) and the test fails. So save before you test.
Mail Server Configuration
Note that the function to Rebuild Mail Server in reality builds a brand new configuration based on the options you selected. Any local customizations, such as setting a relayhost or updating master.cf so you don’t get duplicate DKIM headers will be lost when you click the Rebuild Mail Server button, so keep a good log of local changes or never use this button.
On the servers I manage I use the postfix MTA (mail transfer agent). I occasionally find things about it that are not documented. I am adding this post to track those things so I can find them when need them. I hope some others can benefit from my notes.
After setting up CWP (Control Web Panel) I found that users could not send email. It was being rejected due to a duplicate DKIM header. Literally the same, exact DKIM header appearing twice in the headers. CWP uses postfix with opendkim. Postfix was calling opendkim twice, both before and after the Amavis anti-virus scan. The fix was a modification to master.cf to skip the milters call (where opendkim lives) after the Amavis call.
127.0.0.1:10025 inet n - y - - smtpd
Add the -o smtpd_milters= entry in the 127.0.0.1:10025 inet n - y - - smtpd block of the master.cf configuration file and the duplicate DKIM headers go away.
I have been working on a long term project to convert my (and my Father’s) old reel-to-reel tapes to digital. As part of that I have been working on a Teac X3mkii deck. Skipping all the mechanical fun, at this point it is pulling tape very nicely (for a consumer deck) and I was impressed with the 8 KHz stability coming off of the MRL alignment tape. The purpose of this post to search for an answer to an electrical problem with the deck. The problem is ion both channels, but much more pronounced in the right. There is an about 18KHz tone present. See the following spectrum.
This the right channel, the left also has the problem, but much less so. Here the peak is about 40dB above the noise floor, in the left channel it is only about 15dB above the noise floor. Ignore the spikes of hum at the low frequencies, those are easy to fix in the computer, the spike at about 18KHz is not. It is not a pure tone and it is not constant. See the spectrograph below.
Note that the 18KHz pulses on and off.
I have traced it down to the playback head amplifier, see the schematic below. Thanks to HiFi Engine for the X300 Service Manual (close enough to the X3Mkii).
U101 is a 4558 dual op-amp and I tried replacing it with a 5532 with no change to the problem tone. I also looked at the power supply and replaced C306 the decoupling cap and added a 0.47uF right at pin 8 of the DIP to ground, the power supply noise did go down, but the tone is still there. I tried replacing C105 and C107 thinking that they may have gotten old and tired, no change in the 18KHz tone. I even replaced C102 thinking that perhaps the fake DC reference for pin 5 was getting contaminated, but no change in the 18KHz. I am out of ideas. The tone is not visible at pin 3 of U101 but it is there at pin 7. The FETs (Q101 – Q104) are for changing playback EQ based on the settings of two switches (LH1/LH2 and LH/EE), changing these switches does not change the 18KHz tone, but I am starting to think the FET switches are somehow involved.
Why am I obsessing over this 18KHz, not terribly audible tone? Well, even though this is a consumer deck (1/4 track running at 7.5ips), there is material at this frequency coming off of the tapes. See the following spectrograph of one of the tapes. There is clearly energy above 20KHz and I don’t want to lose it by trying to filter out the 18KHz tone (I have tried). The tone at 36KHz (twice the 18KHz) doesn’t worry me as there is no program material there and I can effectively filter it out.
If you have any ideas what I am running into here, please post a followup comment below.
Full size copies of the images above are located here (much easier to see than the small WordPress images above).
P.S. Thanks to iZotope’s RX for showing me the problem and helping me fix many others.