If you ever need to quickly test an FTPS server, the CLI ftp client http://lftp.yar.ru is quite handy.
Zimbra ZCS: OpenDKIM not running
After upgrading Debian, OpenDKIM sometimes stops running or fails to properly restart. If you don’t actively monitor your ZCS server, the only way to detect this is either through a growing mail queue of unsent messages or through a note in the ZCS server admin panel.
Usually, manually restarting either OpenDKIM itself or the whole ZCS server once “fixes” the problem:
# service zimbra restart
or
# /etc/init.d/zimbra restart
In other cases, fixing the permissions may help:
# /opt/zimbra/libexec/zmfixperms -verbose -extended
(source)
Mac OS X: Reduce/increase workspace switching delay
Does dragging windows to the adjacent workspace in Mac OS X feel sluggish? Try lowering the according delay, e.g. to 0.1 seconds. For a persistent change, enter the following in a terminal:
defaults write com.apple.dock workspaces-edge-delay -float 0.1; killall Dock
If you’d like to have a longer delay, try setting a value of 1.0 or even 2.0.
System information on Mac OS X
Mac OS X comes with a pretty useful tool to list all the details about your system:
# system_profiler
E.g. to find out whether your RAM supports ECC:
# system_profiler|grep ECC ECC: Disabled
Or wether your SSD supports TRIM:
# system_profiler|grep TRIM TRIM Support: Yes
Some helpful Git resources
A friend recently told the following joke:
“The idea that git can be used offline is an illusion – you still need connectivity for googling which arguments to pass to what command.”
That’s an exaggeration, of course, but as always, there’s a grain of truth in it. So here we go:
- Probably the visually and didactically nicest Git reference I’ve seen so far: Git Reference at gitref.org
- Got 2 minutes for a quick introduction? Check Git for dummies!
- And of course, there’s the official Git Book with some more details.
Growl uses 5% of the CPU
I noticed that Growl constantly used 5% of the CPU on my MBA. For a mere notification system, that’s way too much. I thus decided to delete Growl, here’s how:
How to compile Textual (open source IRC client) on Mac OS X
Textual is a heavily modified fork of LimeChat and looks and feels more native and light-weight than most other IRC clients for Mac OS X. Further, it doesn’t seem to have problems with window refreshing as observed with XChat Aqua/Azure (App Store link) and XChat for X11 (installed/compiled using ‘brew install xchat’).
Though Textual is also available in the App Store for 4.99 USD, I wanted to compile it from sources myself.
Here’s how to build Textual from sources (tested on Mac OS X Mountain Lion):
- Download and install Xcode 4 from the App Store.
- Download/checkout the latest Textual sources from https://github.com/Codeux/Textual
- Open the file Main Project (Textual).xcodeproj in Xcode.
- In Xcode’s Preferences -> Downloads -> Components, install the Command Line Tools.
- In the opened project in Xcode, disable code signing:
For the target Textual, navigate to the tab Build Settings. In the “Code Signing” section, set “Don’t Code Sign” for “Debug” and “Release”. - On the top left of the Xcode IDE window, select the scheme Textual (Standard Release) -> My Mac 64-bit
- Click on the “Run” button to start building the project
- The “Textual” app will be built in the subfolder “./Build Results/Release/” of your Textual source directory
Moving Zimbra Collaboration Server to a new IP address
Here’s a quick overview how to migrate a ZCS mail server (based on Ubuntu) to a new IP address:
0) Not covered here: Adjusting DNS entries. Make sure you lower the TTLs of the relevant DNS entries a couple of days in advance in order to minimize downtime for clients (e.g. set a TTL of 300 for a 5 minute downtime).
1) Set the new IP address in:
* The relevant DNS entries
* /etc/network/interfaces
* /etc/hosts
* If ZCS runs in a container/VM, don’t forget to adjust its IP address too.
2) If the new IP address is part of a new subnet, make sure to add this new subnet to ZCS’s trusted_networks, otherwise, sending (relaying) messages through ZCS from Zimbra Desktop (or any other mail client) won’t work[1]. This can be set using ZCS’s web admin interface (i.e. https://mail.myserver.com:7071/zimbraAdmin/):
Navigate to “Server settings”, then open the “MTA” tab and set something analogous to the following in “MTA Trusted Networks”:
127.0.0.0/8 w.x.y.z/26
3) Restart networking and the ZCS services (it’s important, as this adjusts the trusted_network setting in ZCS’s amavisd too):
# /etc/init.d/zimbra stop
# /etc/init.d/networking restart
# /etc/init.d/zimbra start
Alternatively, just reboot the server, particularly if it runs in a VM.
Voilà!
Note: The need for the adjustments in step 2) might come as a surprise. Authenticated messages to be relayed through ZCS apparently seem to originate from the external IP address, not localhost/127.0.0.1.
[1] A typical postfix error message might look like:
Delivery Failure Notification: Invalid address: somebody . com.zimbra.cs.mailbox.MailSender$SafeSendFailedException: MESSAGE_NOT_DELIVERED; chained exception is: com.zimbra.cs.mailclient.smtp.InvalidRecipientException: RCPT failed: Invalid recipient somebody@somedomain.com: 554 5.7.1 : Relay access denied
iTerm2 – Mac OS Terminal Replacement
iTerm2, the successor of iTerm, seems to be quite a bit better then the default Mac OS X terminal app:
iTerm2 – Mac OS Terminal Replacement.
If only every Mac OS X app (i.e. Quartz) would also support copy on select, middle button paste and the other X11-like features! [1] Further, I’d love to see a terminal app that disallows pasting (cmd-v) from the keyboard-controlled clipboard completely as this is potentially a very dangerous thing.
[1] Note: It’s possible to emulate X11’s behaviour to some degree using BetterTouchTool. It’s still not the same though as X11 distinguishes between the mouse-controlled buffer and the keyboard-controlled buffer and doesn’t just “paste from the clipboard”. For reference, see: