mail

One-line CLI mail to multiple recipients with inline content

Intro I found a one-liner that allowed me to test the outgoing mail setup on a remote server. The following one-liner worked, and introduced me to some new-to-me functionality with Bash and Mail. mail -s "Testing Not registration confirmation" -r from@address.com to1@example.com,to2@example.com <<< 'testing 4' Analysis mail The command assumes that you already have a working Mail1 aka PostFix setup on the server you are running on, which means a sendmail setup.

movemail: mailbox (file) cannot lock: Conflict with previous locker

I receive an error when something somewhere crashed, and couldn’t get my mail into emacs Gnus with the following error: movemail: mailbox `/var/spool/mail/webdevtory’: cannot lock: Conflict with previous locker (1 return). Continue? (y or n) Continuing was useless (didn’t show my new mail), restarting the whole machine didn’t work. So just go to the directory and delete the .lock file in there. Back to health.