send text email from command line in centos 6.5

Discussion in 'HOWTO-Related Questions' started by oldtony, Dec 10, 2014.

  1. oldtony

    oldtony New Member

    hi experts
    i need to be able to send a text email via the command line from centos 6.5.
    i expect something like
    cat /tmp/log | mailx -s "log file" tony@ynotsoftware.com
    to send a email to me (tony@ynotsoftware.com)
    what do i need to configure?
    how can i test what is going on?
    thanks for the help
    old tony
     
  2. srijan

    srijan New Member HowtoForge Supporter

    Simply install postfix. Start the service for postfix, stop the service if sendmail exists and remove sendmail.
     

Share This Page