Author:
erics, March 17th, 2022
When I sent email from my desktop Mac cron jobs, it went out with the full hostname as the domain, i.e.: root@demo.wyzaerd.com, when all I wanted was a simple root@wyzaerd.com for ease of deliverability and domain maint. Edit the mail configuration file main.cf:
Add/edit the myorigin value of $mydomain:
Categories: How-To's, Technology Tags: Change, Domain, Email, Hostname, MacOS, mail, main.cf, Masquerade, mydomain, myorigin, PostFix
|
No comments
Author:
erics, November 2nd, 2021
I needed a way to get the dock icon to bounce for all incoming emails and there did not seem to be any option to do so. There is actually a simple way to do it, but it is not intuitive. The key is to add a new Rule! Open Mail.app and choose Mail -> […]
Categories: How-To's, Technology Tags: Add rule, apple, Bounce, Bounce dock icon, Bounce icon, Dock, Email, Email rule, Force, howto, Icon, Incoming, Incoming mail, Mac, MacOS, macosx, mail, Mail rule, Mail.app, new email, New mail, Rule, Rules, tips
|
No comments
Author:
erics, July 1st, 2019
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
#!/bin/sh DATE=`date` ( echo "From: Your Full Name <you@yourdomain.com>" echo "To: you@yourdomain.com" echo "Subject: AWS Instances Report for All Customers as of $DATE" cat <<EOT MIME-Version: 1.0 Content-Type: text/html Content-Disposition: inline <html> <body> <pre style="font: monospace"> EOT for profile in customer1 customer2 customer3; do for region in `aws ec2 describe-regions --output text | cut -f3`; do echo -e "\nListing Instances for profile $profile in region: '$region'..." aws ec2 describe-instances \ --filters "Name=instance-state-name,Values=running" \ --query 'Reservations[*].Instances[*].[InstanceId, PublicIpAddress, LaunchTime, InstanceType, Tags[?Key==`Name`] | [0].Value]| sort_by(@, &@[0][2])' \ --region $region \ --profile $profile \ --output table done done cat <<EOT </pre> </body> </html> EOT ) | /usr/sbin/sendmail -t |
Categories: How-To's, Technology Tags: AWS, aws ec2, Date, EC2, Email, Font, Format, howto, html, LaunchTime, mail, monospace, monospaced, Multiple, Region, Regions, SendMail, sort, Sort By, time, tips
|
No comments
Author:
erics, May 7th, 2018
h Shows you a screenful of message headers (a “header” being the number, sender, date, size and subject). h with no message number shows the current screenful of messages (the number that make up a screenful is set with the screen variable, described below). h$ shows you the last screenful of messages — which is […]
Categories: How-To's, Technology Tags: cli, CLI Mail, howto, Linux, mail, Move, tips
|
No comments
Author:
erics, 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. […]
Categories: How-To's, Technology Tags: 10.10.5, Bounce, cli, Command line, Email, FQDN, howto, macosx, mail, main.cf, PostFix, Send, tips, Yosemite
|
No comments
Author:
erics, 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
Categories: How-To's, Technology Tags: Email, Force, howto, mail, Mail Queue, Mailq, Q, Queue, SendMail, tips
|
No comments
Author:
erics, 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.
Categories: How-To's, Technology Tags: AWS, Cache, Cache file, Corrupted, Corrupted index, Dovecot, Email, File, howto, IMAP, Index, Linux, mail, Mailhost, PostFix, tips
|
No comments
Author:
erics, 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.
Categories: How-To's, Technology Tags: apple, Filter, macosx, mail, plist, Rules
|
No comments
Author:
erics, 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. […]
Categories: How-To's, Technology Tags: 10.6.8, Actions, apple, Error, iCloud, IMAP, mail, Recovered, Snow Leopard
|
No comments
Author:
erics, 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 […]
Categories: How-To's, Technology Tags: apple, Gmail, IMAP, mail, Mavericks
|
No comments