E-mail

By Druss , 24 September, 2021

This is how you can send a message from the commandline using the mailx (mailutils) package.

$ mailx -s "Re: My mail subject" -r "" bar-recipient@example.com < contents.txt

Note, however, that I was unable to specify the sender's name. -r "Foo" and -r " (Foo)" did not work (and neither did the versions with the email addresses with the <> removed. What was sent instead was the username of the commandline account.

By Druss , 10 July, 2012

While trying to debug a postfix authentication issue in Debian 6, I had to use testsaslauthd to test things out:
testsaslauthd -s smtp -u foo@example.com -p test

only to get the following error:
connect() : No such file or directory 0

This is apparently because a lot of people (and authors) follow the same guide for configuring postfix and saslauthd. One of the steps missing is to symlink and saslauthd directory to a location within postfix. To fix:

By Druss , 5 July, 2012

I just finished setting up postfix on a Debian 6 machine. All is peachy. However, when I checked my mail logs to see how things were going I noticed a number of entries for messages being sent from smmsp@example.com to root. Checking root's mail led to messages with the following content:
/usr/share/sendmail/sendmail: line 880: /usr/sbin/sendmail-msp: No such file or directory

By Druss , 30 August, 2007

If you manage websites that involve user registrations, I'm sure you have come across users who use services such as mailinator to register. While these services are definitely handy, the users who use them generally tend to be spammers or those that don't necessarily plan to stay on at your website. The following is a list of sites / services / domains that provide services similar to mailinator, and have found their way into my block list.

  1. 2prong.com
    • miquosoft.com
  2. 10minutemail.com
By Druss , 16 July, 2007

I was about to educate a co-worker on some of the better practices to follow while communicating on the Internet, and being the generous chap that I am, decided to share these invaluable nuggets of my infinite wisdom with you lot. So, here goes:

  1. Format: Never send e-mails in HTML format. Always use plain-text only.
  2. Subject: Always use a descriptive subject line. Subject lines such as "Hi" and "Please help" will get your behind flamed.

All times are UTC. All content licensed under the Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.