Page 1 of 5 123 ... LastLast
Results 1 to 10 of 42

Thread: Postfix

  1. #1
    Join Date
    Jun 2019
    Beans
    19

    Postfix

    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

  2. #2
    Join Date
    Oct 2018
    Location
    England, UK
    Beans
    56

    Re: Postfix

    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.

  3. #3
    Join Date
    Jun 2019
    Beans
    19

    Re: Postfix

    Says sendmail is not installed:
    https://imgur.com/a/eCMnhjK
    Last edited by rjphares; June 4th, 2019 at 05:25 AM.

  4. #4
    Join Date
    Oct 2018
    Location
    England, UK
    Beans
    56

    Re: Postfix

    Quote Originally Posted by rjphares View Post
    Says sendmail is not installed:
    https://imgur.com/a/eCMnhjK
    If that's the only missing bit then issue the following command:

    Code:
    sudo apt-get install sendmail
    See if that'll solve the problem. Also see https://gist.github.com/adamstac/7462202

  5. #5
    Join Date
    Jun 2019
    Beans
    19

    Re: Postfix

    Do I need Sendmail for Postfix?

  6. #6
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Postfix

    Quote Originally Posted by rjphares View Post
    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/

  7. #7
    Join Date
    Nov 2008
    Location
    Boston MetroWest
    Beans
    16,326

    Re: Postfix

    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

    Code:
    echo 'test message' | sendmail yourusername
    It should show up in your mailbox on the machine.
    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

  8. #8
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Postfix

    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:
    Code:
    $ ll /usr/sbin/sendmail
    -rwxr-xr-x 1 root root 26648 Jan 17  2018 /usr/sbin/sendmail*
    and I can confirm that
    Code:
    echo 'test message' | sendmail yourusername
    behaved exactly as expected. Nice.
    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?

  9. #9
    Join Date
    Mar 2007
    Location
    Denver, CO
    Beans
    7,958
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: Postfix

    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?

  10. #10
    Join Date
    Jun 2019
    Beans
    19

    Re: Postfix

    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

Page 1 of 5 123 ... LastLast

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
  •