Skip to content

Instantly share code, notes, and snippets.

@rhukster
rhukster / sphp.sh
Last active January 6, 2026 10:00
Easy Brew PHP version switching (Now moved to https://github.com/rhukster/sphp.sh)
#!/bin/bash
# Creator: Phil Cook
# Modified: Andy Miller
#
# >>> IMPORTANT: Moved to: https://github.com/rhukster/sphp.sh
# >>> Kept here for legacy purposes
#
osx_major_version=$(sw_vers -productVersion | cut -d. -f1)
osx_minor_version=$(sw_vers -productVersion | cut -d. -f2)
osx_patch_version=$(sw_vers -productVersion | cut -d. -f3)
@loziju
loziju / macosx-configure-postfix-as-relay.md
Last active April 4, 2025 12:03
Configure postfix as relay for OS X
@raelgc
raelgc / Email Server (Linux, Unix, Mac).md
Last active January 7, 2026 16:05
Setup a Local Only SMTP Email Server (Linux, Unix, Mac)

Setup a Local Only SMTP Email Server (Linux, Unix, Mac)

1 - Point localhost.com to your machine

Most of programs will not accept an email using just @localhost as domain. So, edit /etc/hosts file to make the domain localhost.com point to your machine, including this content to the file:

127.0.0.1 localhost.com

2 - Install Postfix

@larrybotha
larrybotha / readme.markdown
Last active March 24, 2025 17:47
Postfix Using Gmail SMTP in Mac OSX Mavericks