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

Author: , January 29th, 2017

I 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. […]

How To Force Sendmail to Process the Mail Queue

Author: , August 4th, 2016

To force sendmail to process the mail queue, execute as root: sendmail -q -v The optional -v enables verbose mode to assist with troubleshooting. To display the current contents of the mail queue, execute as root: mailq

How To Fix a “Corrupted index cache file” Error in Dovecot

Author: , June 17th, 2016

Jun 17 00:02:45 inbound dovecot: IMAP(yourName): Corrupted index cache file /home/yourName/Maildir/dovecot.index.cache: invalid record size service dovecot stop cd /home/yourName/Maildir/ rm dovecot.index* service dovecot start As always, YMMV. Proceed with caution.

How To Export Apple Email Rules

Author: , November 10th, 2015

Quit Mail. Look for a file called MessageRules.plist under ~/Library/Mail. Depending on your Mail version it could be under ~/Library/Mail/V2/Maildata as well. Copy that file. It can be edited with vim or the PList editor. I find it much easier to work with as text in vim.

How To Fix Apple iCloud Mail Errors on Snow Leopard

Author: , August 7th, 2014

Some actions taken while the account “iCloud” was offline could not be completed online. Mail has undone actions on some messages so that you can redo the actions when online. Mail has saved other messages in mailbox “Recovered Messages (iCloud)” in “On My Mac” so that you can complete the actions when online. Step 1. […]

How To Fix Gmail Problems in Mavericks Apple Mail

Author: , February 4th, 2014

Mail in Mavericks requires All Mail to be enabled in Gmail. If you disable All Mail, Mavericks now causes messages to jump back to where they started, or get duplicated, after they’re moved to different mailbox folders. To stop that from happening, you need to re-enable All Mail. Here’s how: Launch your favorite Web browser […]

How To Use Sender-Based Routing In Postfix With AWS SES

Author: , November 6th, 2011

NOTE: This procedure requires Postfix version 2.7 or greater! Create or edit the following three files: /etc/postfix/main.cf 1 sender_dependent_default_transport_maps = hash:/etc/postfix/sender_dependent_default_transport_maps sender_dependent_default_transport_maps = hash:/etc/postfix/sender_dependent_default_transport_maps /etc/postfix/master.cf 1 2 aws-email unix  -       n       n       –       –       pipe  flags=R user=mail argv=/opt/aws/bin/ses-send-email.pl -r -k […]

How To Flush The Mail Queue In Postfix

Author: , December 13th, 2010

Flush the mail queue: # postfix flush OR # postfix -f View the mail queue: # mailq Delete all mail from the queue: # postsuper -d ALL Delete all mails in the deferred queue: # postsuper -d ALL deferred

How to Use GPGMail on Snow Leopard 10.6.4

Author: , June 20th, 2010

Snow Leopard 10.6.4 broke GPGMail (again!). Fortunately, our intrepid developers have released a new, working version. Here is a link to it (no promises): http://github.com/lukele/GPGMail-SL/downloads Once you have it, check in the “{Your_Home_Directory}/Library/Mail/Bundles” and “/Library/Mail/Bundles” folders. You will need to Right-Click and choose “Show Package Contents”. Then replace the “GPGMail.mailbundle” file with the new one […]

How to Use GPGMail on Snow Leopard 10.6.3

Author: , April 20th, 2010

Snow Leopard 10.6.3 broke GPGMail (sigh). Fortunately, our intrepid developers have released a new, working version. Here is a link to it (no promises): http://cloud.github.com/downloads/lukele/GPGMail-SL/GPGMail.mailbundle-1.2.3-v61-10.6.3-fix.zip Once you have it, check in the “{Your_Home_Directory}/Library/Mail/Bundles” and “/Library/Mail/Bundles” folders. You will need to Right-Click and choose “Show Package Contents”. Then replace the “GPGMail.mailbundle” file with the new one […]