I am trying to send an email to myself and it says I have no mail. I am using Bash on Ubuntu on Windows 10. What should I do?
Untitled2.jpg
I am trying to send an email to myself and it says I have no mail. I am using Bash on Ubuntu on Windows 10. What should I do?
Untitled2.jpg
Last edited by slickymaster; June 18th, 2019 at 05:00 PM. Reason: normalised font
Could you have a look at:
https://askubuntu.com/questions/9969...receive-emails
And see if this helps? It may do the same for the Ubuntu version you're using.
Says sendmail is not installed:https://imgur.com/a/eCMnhjK
Last edited by rjphares; June 4th, 2019 at 05:25 AM.
If that's the only missing bit then issue the following command:
See if that'll solve the problem. Also see https://gist.github.com/adamstac/7462202Code:sudo apt-get install sendmail
Do I need Sendmail for Postfix?
No. Sendmail and postfix fulfil the same requirement. Postfix is much easier to configure and less likely to be hacked. Only 1 MTA should be installed on any Unix system.
I don't know anything about win10, so don't feel comfortable helping with the base issue, but to send email from a Unix system, you need a number of things.
* MTA - postfix
* Mail client - Mail, mail, mailx, elm, something that will convert what you type/enter/script into the MTA
* An address TO send the mail that will accept it from your machine.
None of those things are installed automatically. You must install them all and configure the MTA. If you expect to send to internet email addresses, there are more requirements to get passed the anti-spam checks that most email servers have. There are other threads here about what is needed to send email using Ubuntu with postfix that cover those requirements.
Last edited by TheFu; June 16th, 2019 at 12:58 AM. Reason: s/so/to/
I don't think Postfix is any easier to install than sendmail, especially for a simple task like delivering locally.
If you install sendmail, try using
It should show up in your mailbox on the machine.Code:echo 'test message' | sendmail yourusername
If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.
Blog · Linode System Administration Guides · Android Apps for Ubuntu Users
It has been a long time since I touched sendmail (1995-ish?).
I know that postfix installs a "sendmail" program that is supposed to be 100% compatible with the expected sendmail interface. Is is there:
and I can confirm thatCode:$ ll /usr/sbin/sendmail -rwxr-xr-x 1 root root 26648 Jan 17 2018 /usr/sbin/sendmail*
behaved exactly as expected. Nice.Code:echo 'test message' | sendmail yourusername
On my systems, it also works to send external emails without a formal FROM/SUBJECT or other expected X-Headers.
Regardless, can't believe I've forgotten about that shell interface.
Last edited by deadflowr; June 9th, 2019 at 07:38 PM. Reason: coden?
Postfix is really easy to send through however are you sending the mail locally or out to the internet? You said to yourself however is that just locally or are you trying to make this go out to the internet and back?
Since I was unable to send an email out to the internet, I tried sending locally. And then I couldn't do that either, so now I am just trying to send an email to myself locally.
I tried sending myself an email using sendmail and got the same result.
https://imgur.com/a/QnMgB7t
Last edited by lisati; June 13th, 2019 at 03:34 AM. Reason: Reset font to default
Bookmarks