Postfix smtp relay on OS X Yosemite 10.10

I’m lazy, and for email testing this is great. Who doesn’t need an email relay at some point? As there was no off the shelf solution, here it is for Yosemite.

Define the relay host:
sudo vim /etc/postfix/
Add section after the existing ‘relayhost’ example:
relayhost = []:587
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_use_tls = yes
smtp_sasl_mechanism_filter = plain

Add your account for the relay to use.
sudo vim /etc/postfix/sasl_passwd

Make sure it starts at boot. If you don’t want this, skip this!
sudo vi /System/Library/LaunchDaemons/org.postfix.master.plist
add this:

sudo chmod 600 /etc/postfix/sasl_passwd
sudo postmap /etc/postfix/sasl_passwd

Then stop postfix:
sudo launchctl stop org.postfix.master
And start it again (so it reads the config changes):
sudo launchctl start org.postfix.master
sudo postfix start

Check it’s listening:
netstat -an | grep LISTEN | grep 25
It should output something like this:
tcp6 0 0 ::1.25 *.* LISTEN
tcp4 0 0 *.* LISTEN

You can test it like so:
df -kH | mail -s “contents”

1) You can screw your postfix if you don’t pay attention. Be carefull.
2) gmail was used as an example. I’m not endorsed, sponsored or whatever.

This is based on:
Using MacOSX Lion command line mail with Gmail as SMTP
Mac OS X 10.10 Yosemite Postfix SASL authentication failed

How to setup NTPd on OS X

So if you would like to have a Mac acting as a ntp server, the steps are pretty straightforward. This works on all recent client and server versions of OS X.

1) Unload the ntp plist (most definitely needed on the server OS):
launchctl unload /System/Library/LaunchDaemons/org.ntp.ntpd.plist

2) Modify the ntp-restrict.conf
The following lines in the file:
restrict default kod nomodify notrap nopeer noquery
restrict -6 default kod nomodify notrap nopeer noquery
Should become:
restrict default kod nomodify notrap nopeer
restrict -6 default kod nomodify notrap nopeer

Basically the ‘noquery’ needs to be removed.

3) Load the ntp plist.
launchctl load /System/Library/LaunchDaemons/org.ntp.ntpd.plist

That’s it! Piece of raw brownie (better than cake, trust me).
Then modify whatever box that needs an ntp server to point to you freshly modified Mac.

Mac OSX 10.7 on ESXi and ‘root device uuid is’ error

I moved my (fully working) OSX 10.7.4 installation from my old ESXi 5 white-box (with an Intel i5 720) to a new one (with an Intel i7 3770). And guess what: OSX didn’t boot.

Just some lines and this last output:

Root device UUID is

Crap. Google just came back with two (2 !) search results, neither of them giving me a solution. But wait, I’ve found it anyway:

– edit the VM settings with the VM powered off
– click on the Options tab
– click on the CPUID Mask menu item
– click Advanced
– scroll to the bottom of the window on the Virtual Machine Default tab
– under “Level 1” set “eax” to 0000:0000:0000:0001:0000:0110:1010:0101.

After clicking OK and OK, boot up the VM and voilà, your OSX installation is running again!


Download Absinthe 2.0 for Windows, Mac & Linux / Ubuntu [Mirrored SkyDrive links]

Download Absinthe 2.0 for Windows, Mac & Linux / Ubuntu [Mirrored links]

Much awaited untethered 5.1.1 jailbreak has finally been released. You can now download Absinthe 2.0 (Win, Mac & Linux / Ubuntu) versions using the mirrored download links given at the end of the post. Absinthe lets you jailbreak iOS 5.1.1 untethered on following devices:

Absinthe 2.0 Compatible Devices

iPhone 4S, 4, 3GS
iPad 3, iPad 2 and iPad 1
iPod 4G & 3G
Apple TV 2

The only device that is not supported is Apple TV3. It’s the first jailbreak tool that lets you jailbreak iPad 3 iOS 5.1.1. So, the new iPad users can finally rejoice and get their hands on jailbreak goodness. Users with older devices were already able to get tethered jailbreak on iOS 5.1.1, thanks to geohot’s Limera1n exploit. Now when Absinthe 2.0 has been released, you will not need to boot tethered, which is a relief.
Greenpois0n Absinthe is fairly easy to use. We’ll be posting a step by step guide shortly. Stay tuned!

Download Absinthe 2.0 from SkyDrive

OS X: Absinthe-mac-2.0.dmg
Linux / Ubuntu: Absinthe-linux-2.0.tar.bz2

Adding ssh-id-copy to OSX !

There’s a very convenient shell script bundled with some distributions of OpenSSH called ssh-copy-id. It seems not to be the case with Leopard’s or Lion’s SSH.
In order to get it, we can simply check it out of a GIT repository. Execute these two commands:

sudo curl '' -o /usr/bin/ssh-copy-id
sudo chmod +x /usr/bin/ssh-copy-id

Now execute ssh-id-copy like this:

MBP:~ martijn$ ssh-copy-id root@
Now try logging into the machine, with "ssh 'root@'", and check in:


to make sure we haven't added extra keys that you weren't expecting.

Hide your drive from the desktop in OSX

Sometimes you simple need all your drives on your desktop, but the ones like ‘TimeMachine’ or ‘Lion Installer’ can also simple disappear. Use this script to hide them at every reboot, without having to unmount them. Adjust your volume name to reflect yours.

sudo echo "echo \"UUID=$(diskutil info /Volumes/Lion\ Installer/ | grep UUID | awk '{print $3}') none hfs rw,noauto\" >> /etc/fstab" | sudo bash

To see if it has worked:
sudo cat /etc/fstab

Results in:
UUID=F4F6562F-1C4D-361D-BBD4-91C12ED96B44 none hfs rw,noauto

If your /etc/fstab doesn’t show the UUIC, then you need to check the volume name and/or delimit spaces with an \.

Print protected PDF files on OSX – using the terminal

The newer versions of Preview (at least OS X 10.5, and maybe earlier) respect the “do not print without a password” setting in PDF files. However, it is possible to create a completely unprotected version of any PDF file using ghostscript. A command like this should work:

gs -sOutputFile=MyNewFile.pdf -sDEVICE=pdfwrite -dNOPAUSE -dbatch -q MyProtectedFile.pdf

You may need to type “quit” at the command prompt after gs finishes processing the file. Then open the newly created PDF file and voilà, printable!

(Sony) XDCAM Transfer for OS X

So as I now and then have to fix up a OS X + FCP install with XDCAM PDW-U01 import functionality, here is a short howto:
1) PDZK-P1 XDCAM Transfer, now 2.12
2) Mac i.Link FAM driver
3) XDCAM Browser, currently 1.2

The links might break, so here is the official Sony XDCAM site.

I am not affiliated with Sony, nor do they pay me for this. It’s just a braindump for myself and hopefully others will find this helpful!