Fix for "530 5.7.0 Must issue a STARTTLS command first" and Ruby mail gem

Ruby posted about 1 month ago by christian

I’m using the mail gem and received this error when sending emails:

   1  530 5.7.0 Must issue a STARTTLS command first

The fix was to first install the tlsmail gem:

   1  gem install tlsmail

Then I had to add this to config/initializers/email.rb:

   1  require 'tlsmail' 
   2  Net::SMTP.enable_tls(OpenSSL::SSL::VERIFY_NONE)

Tagged mail, tlsmail, smtp, email

Delete messages containing a keyword in mutt

Shell Script (Bash) posted over 3 years ago by marko

Bulk operations in mutt, a console based email client, are easy. Here’s how to delete messages containing the keyword ‘Newsletter’.

   1  T
   2  Newsletter
   3  ;
   4  d
   5  $
T – asks which messages you want to tag and you reply with ‘Newsletter’.

; – asks which action you want to run on the tagged messages.

d – tells that the action you want is delete.

$ – synchronizes the view with the underlying persistence layer.

Tagged mutt, mail, bulk, delete