2

I'm using a software, after the execution MIT servers sent me an email. To receive this e-mail I need to install "mail" program in my ubuntu. I tried the below way but it didn't work;

sudo apt-get install mailutils

then I chose internet-Site configuration, and, System mail name:[email protected] was set.

Is there a suitable way to setup "mail" program for receiving purposes?

the software's script to send an email is:

set umail = 'mail -s'
set JOBSTAT = `echo 'sh_gamit '$expt $yr[1] ${doy}`
  ${umail} "$JOBSTAT" ${mailto} < ${cpth}/tmp.mail.$ts >& /dev/null
0

2 Answers 2

1

Assuming you want to use a commandline tool to fetch mail to a local mailbox, I recommend fetchmail.

1

I'm sure you use sh_gamit script from MIT, nice to hear it. It uses mail -s command to send reports to users. And 'mail' is console mail client which can send message to any smtp server working in your system. So your task to properly configure smtp server for sending mail.

In my case it was sufficient to configure sendmail to use gmail credentials. This manual looks quite good: https://developernote.com/2017/10/configuring-sendmail-with-gmail-relay-on-ubuntu-16-04/

1
  • 1
    It would be better to share the essential parts of the article here as well as just the link. Links break and die with time.
    – anonymous2
    Apr 12, 2018 at 18:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .