How To Send Email From the Command Line on MacOSX 10.10.5 Yosemite

Author: , Posted on Sunday, January 29th, 2017 at 9:44:55am

myszaI wanted to send email from cron for various reasons, but the emails would bounce with an error 554:
554 5.1.8 : Sender address rejected: Domain not found

Clearly, Postfix was using the “internal” hostname of myappledesktop.local (MacOSX has TWO hostnames! also, myappledesktop.local is not the real hostname ;-).

So, I needed two things:
1. a public FQDN in DNS that mail servers could see and resolve properly
2. to set the sending hostname to that FQDN

For the first, I used my DNS server to create a FQDN with home’s public IP address: myappledesktop.thewyz.net

Then, I edited the Postfix configuration file and set the sending hostname manually:

1
2
vim /etc/postfix/main.cf
myhostname = myappledesktop.thewyz.net
vim /etc/postfix/main.cf
myhostname = myappledesktop.thewyz.net

That did the trick!

No need to run `postfix reload`, since postfix only runs on-demand, not as a daemon.

As always, YMMV…

R.I.P. Sir John Hurt

Author: , Posted on Saturday, January 28th, 2017 at 7:43:52am
Sir John Vincent Hurt, CBE was an English actor and voice actor whose career spanned six decades.  Born: January 22, 1940, Chesterfield, United Kingdom Died: January 27, 2017, London, United Kingdom

Sir John Vincent Hurt, CBE was an English actor and voice actor whose career spanned six decades.
Born: January 22, 1940, Chesterfield, United Kingdom
Died: January 27, 2017, London, United Kingdom

R.I.P. Miguel Ferrer

Author: , Posted on Friday, January 20th, 2017 at 9:59:44am
Miguel Ferrer Born: February 7, 1955, Santa Monica, CA Died: January 19, 2017, Los Angeles, CA of throat cancer Age: 61 Parents: Rosemary Clooney, José Ferrer

Miguel Ferrer
Born: February 7, 1955, Santa Monica, CA
Died: January 19, 2017, Los Angeles, CA of throat cancer
Age: 61
Parents: Rosemary Clooney, José Ferrer

nintchdbpict000001610746

R.I.P. Ringling Bros. and Barnum & Bailey Circus

Author: , Posted on Sunday, January 15th, 2017 at 8:33:04am

ap7003061160

R.I.P. William Christopher

Author: , Posted on Sunday, January 1st, 2017 at 9:30:05am

Mash - 1972-1983
Scene from M*A*S*H

R.I.P. Debbie Reynolds

Author: , Posted on Thursday, December 29th, 2016 at 8:40:23am

1280_debbie_reynolds_singin_in_the_rain_MGM

R.I.P. Carrie Fisher

Author: , Posted on Wednesday, December 28th, 2016 at 8:02:20am

carrie-fisher-star-wars-c7315baa-c949-4116-99f6-73d244d4c955

How To Get a List of Changed Files in git

Author: , Posted on Monday, December 19th, 2016 at 1:59:00pm

To get just a list of files changed since the last commit:
git diff --name-only

To create a global alias called ‘git changed’:
git config --global alias.changed 'diff --name-only'

How To Enable Legacy Key Type Support in SSH 7

Author: , Posted on Friday, December 9th, 2016 at 12:00:40pm

Recently I had to launch an Ubuntu instance in AWS because i needed to run alien to convert a .rpm into a .deb package.

When I added my SSH keys as usual, I found I was still unable to login. This is the error from the /var/log/auth.log file:

Dec 9 16:47:55 localhost sshd[1550]: userauth_pubkey: key type ssh-dss not in PubkeyAcceptedKeyTypes [preauth]

A little research showed that ssh-dss keys are no longer supported by default in OpenSSH 7.0 and above.

Of course, the best thing to do would be to generate and use new keys with rsa, ecdsa or ed25519. RSA keys will give you the greatest portability while ed25519 is the most secure but requires more recent versions of ssh and sshd.

If you are stuck with DSA keys, you can re-enable support by adding the following line to /etc/ssh/sshd_config:

PubkeyAcceptedKeyTypes=+ssh-dss

More information: http://www.openssh.com/legacy.html

Original article: https://www.gentoo.org/support/news-items/2015-08-13-openssh-weak-keys.html

How To Fix Safari Using https instead of http

Author: , Posted on Friday, September 30th, 2016 at 7:21:14pm

For the Mac, you need to do three things in a row:
1. Quit Safari
2. Delete ~/Library/Cookies/HSTS.plist
3. Reboot