Page 3 of 3 FirstFirst 123
Results 21 to 26 of 26

Thread: How To: Command-Line Email as Simply as Possible

  1. #21
    Join Date
    Feb 2008
    Beans
    1
    Distro
    Kubuntu 7.10 Gutsy Gibbon

    Re: How To: Command-Line Email as Simply as Possible

    Great stuff!

    At least for the gmail account the fumbling with the certificates can be avoided with

    Code:
    sudo apt-get install ca-certificates
    and changing the trust file in the .mstmp file to:

    Code:
    tls_trust_file /etc/ssl/certs/Thawte_Premium_Server_CA.pem

  2. #22
    Join Date
    May 2007
    Beans
    1

    Re: How To: Command-Line Email as Simply as Possible

    Hi

    I have a small file server at home running Ubuntu 8.04 and I set up SMART hard disk monitoring following the instructions at:
    http://blog.shadypixel.com/monitorin...smartmontools/

    I followed this how-to to set up mail using mailx and msmtp so that the server can send me automatically SMART warnings to an address at an ISP, however I cannot resolve the following problem:

    If I own the /home/USER/.msmtprc file, I can send email from the command line, but the smartd daemon cannot and in /var/log/daemon there is the following message: /etc/smartmontools/run.d/10mail: send-mail: /home/USER/.msmtprc: must be owned by you Can't send mail: sendmail process failed

    And the other way round: if I chown the /home/USER/.msmtprc to root, the daemon can send the mail, but I can't.

    Any idea what I do wrong?

    Thanks.

  3. #23
    Join Date
    Feb 2005
    Location
    Melbourne, Australia
    Beans
    13,510
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: How To: Command-Line Email as Simply as Possible

    Quote Originally Posted by JohnJBBrown View Post
    Hi

    I have a small file server at home running Ubuntu 8.04 and I set up SMART hard disk monitoring following the instructions at:
    http://blog.shadypixel.com/monitorin...smartmontools/

    I followed this how-to to set up mail using mailx and msmtp so that the server can send me automatically SMART warnings to an address at an ISP, however I cannot resolve the following problem:
    .........
    I do not know why people just don't install the postfix package, it requires virtually no configuration for immediately sending outgoing mail and it just works (just select "Internet" on install or run this later):

    Code:
    dpkg-reconfigure postfix
    The only manual thing I have to do is set the mail forwarder to my ISP (a trivial task) because I get allocated dynamic IP addresses that are on Spam lists so some mail is blocked if sent directly from my connection.
    Regards, David.
    Please use the Forum search and Wiki search for immediate help
    Please mark your thread as Solved when appropriate
    New to technical forums?: How To Ask Questions The Smart Way

  4. #24
    Join Date
    Jun 2007
    Location
    Montreal
    Beans
    7
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Smile Re: How To: Command-Line Email as Simply as Possible

    Can't seem to find ThawtePremiumServerCA_b64.txt in the downloaded zip file, you can find it here.

    Thanks for this tutorial, very much appreciated.

    zouhair

  5. #25
    Join Date
    Jun 2010
    Beans
    1

    Re: How To: Command-Line Email as Simply as Possible

    Looks like the Thwart certs are no longer working.

    Made the following changes:

    renamed all mail servers to googlemail.com

    Also downloaded the following cert file
    https://www.geotrust.com/resources/r..._Authority.cer


    Renamed it to
    EquifaxSecureCertificateAuthority.crt

    Command line to send the mail has changed also. "mailx" instead of "nail"

    Success!

  6. #26
    Join Date
    Dec 2007
    Beans
    16

    Re: How To: Command-Line Email as Simply as Possible

    send-mail: account default not found: no configuration file available

Page 3 of 3 FirstFirst 123

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •