Mailx: Difference between revisions
No edit summary |
No edit summary |
||
Line 15: | Line 15: | ||
First, you will need to make sure <tt>mailx</tt> has access to a valid Google certificate in an NSS certificates database. Firefox usually has it in its profile directory, but it is a good idea to initialize a private certificate database for <tt>mailx</tt>. This page explains how to do that: | First, you will need to make sure <tt>mailx</tt> has access to a valid Google certificate in an NSS certificates database. Firefox usually has it in its profile directory, but it is a good idea to initialize a private certificate database for <tt>mailx</tt>. This page explains how to do that: | ||
Deplete: | |||
* http://www.systutorials.com/1411/sending-email-from-mailx-command-in-linux-using-gmails-smtp/ | * http://www.systutorials.com/1411/sending-email-from-mailx-command-in-linux-using-gmails-smtp/ | ||
* http://stackoverflow.com/questions/16799407/mailx-and-gmail-nss-config-dir | |||
* http://serverfault.com/questions/498588/smtp-gmail-com-from-bash-gives-error-in-certificate-peers-certificate-issuer | |||
* http://www.systutorials.com/1411/sending-email-from-mailx-command-in-linux-using-gmails-smtp/ | |||
Last: | |||
SSL/TLS handshake failed: Unknown error -5938. | |||
http://stackoverflow.com/questions/16799407/mailx-and-gmail-nss-config-dir | |||
continue to https://kb.novaordis.com/index.php/mail#Configuration | |||
Clarify mail on now510: be able to send mail and test how does cron reacts to it (success or failure). Document -> [http://www.systutorials.com/1411/sending-email-from-mailx-command-in-linux-using-gmails-smtp/], understand the nss business. | |||
Document NSS | |||
• http://serverfault.com/questions/498588/smtp-gmail-com-from-bash-gives-error-in-certificate-peers-certificate-issuer | |||
Try to use the /etc/pki/nssdb | |||
IMPORTANT! My google password is in /etc/mail.rc | |||
Tried: | |||
echo "test" | mailx -v -A gmail -s "command line e-mail" ovidiu@feodorov.com |
Revision as of 00:02, 1 February 2016
Internal
Installation
yum install mailx
Configuration
Configuring mailx to Use a Google SMTP Server
First, you will need to make sure mailx has access to a valid Google certificate in an NSS certificates database. Firefox usually has it in its profile directory, but it is a good idea to initialize a private certificate database for mailx. This page explains how to do that:
Deplete:
- http://www.systutorials.com/1411/sending-email-from-mailx-command-in-linux-using-gmails-smtp/
- http://stackoverflow.com/questions/16799407/mailx-and-gmail-nss-config-dir
- http://serverfault.com/questions/498588/smtp-gmail-com-from-bash-gives-error-in-certificate-peers-certificate-issuer
- http://www.systutorials.com/1411/sending-email-from-mailx-command-in-linux-using-gmails-smtp/
Last:
SSL/TLS handshake failed: Unknown error -5938.
http://stackoverflow.com/questions/16799407/mailx-and-gmail-nss-config-dir
continue to https://kb.novaordis.com/index.php/mail#Configuration
Clarify mail on now510: be able to send mail and test how does cron reacts to it (success or failure). Document -> [1], understand the nss business.
Document NSS • http://serverfault.com/questions/498588/smtp-gmail-com-from-bash-gives-error-in-certificate-peers-certificate-issuer
Try to use the /etc/pki/nssdb
IMPORTANT! My google password is in /etc/mail.rc
Tried:
echo "test" | mailx -v -A gmail -s "command line e-mail" ovidiu@feodorov.com