ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Fedora 27 and Outgoing Email

    Scheduled Pinned Locked Moved IT Discussion
    22 Posts 5 Posters 1.5k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      Alex Sage
      last edited by

      @scottalanmiller said in Fedora 27 and Outgoing Email:

      If you want to do it from BASH, you need to add a command to send. mailx is the one to use.

      Null message body; hope that's ok
      /usr/sbin/sendmail: No such file or directory
      "/root/dead.letter" 9/243
      . . . message not sent.

      scottalanmillerS 1 Reply Last reply Reply Quote 0
      • scottalanmillerS
        scottalanmiller @Alex Sage
        last edited by

        @aaronstuder said in Fedora 27 and Outgoing Email:

        @scottalanmiller said in Fedora 27 and Outgoing Email:

        If you want to do it from BASH, you need to add a command to send. mailx is the one to use.

        Null message body; hope that's ok
        /usr/sbin/sendmail: No such file or directory
        "/root/dead.letter" 9/243
        . . . message not sent.

        Is there really no MTA by default? Is this one of Jared's minimal installs instead of server? That might do it.

        dnf install postfix
        systemctl start postfix
        systemctl enable postfix
        
        A 1 Reply Last reply Reply Quote 1
        • A
          Alex Sage @scottalanmiller
          last edited by Alex Sage

          @scottalanmiller postfix installed, running and enabled.

          The command just hangs:

          mail -s "Test" [email protected]
          
          scottalanmillerS 1 Reply Last reply Reply Quote 0
          • scottalanmillerS
            scottalanmiller @Alex Sage
            last edited by

            @aaronstuder said in Fedora 27 and Outgoing Email:

            @scottalanmiller postfix installed, running and enabled.

            The command just hangs:

            mail -s "Test" [email protected]
            

            It's not hung, it's waiting for the body of the email. Try this...

            mail -s "Test" [email protected] < /etc/passwd
            
            A 1 Reply Last reply Reply Quote 0
            • A
              Alex Sage @scottalanmiller
              last edited by

              @scottalanmiller said in Fedora 27 and Outgoing Email:

              mail -s "Test" [email protected] < /etc/passwd

              Bingo, Gmail thinks it's spam, but that makes since 😉

              DustinB3403D 1 Reply Last reply Reply Quote 0
              • A
                Alex Sage
                last edited by

                @scottalanmiller so do I even need postfix?

                scottalanmillerS 1 Reply Last reply Reply Quote 0
                • DustinB3403D
                  DustinB3403 @Alex Sage
                  last edited by

                  @aaronstuder said in Fedora 27 and Outgoing Email:

                  @scottalanmiller said in Fedora 27 and Outgoing Email:

                  mail -s "Test" [email protected] < /etc/passwd

                  Bingo, Gmail thinks it's spam, but that makes since sense 😉

                  Ftfy

                  1 Reply Last reply Reply Quote 1
                  • scottalanmillerS
                    scottalanmiller @Alex Sage
                    last edited by

                    @aaronstuder said in Fedora 27 and Outgoing Email:

                    @scottalanmiller so do I even need postfix?

                    Yes, mailx is only a client, it's telling Postfix to send it. if you wanted to send through Postfix by hand, you could.

                    EddieJenningsE 1 Reply Last reply Reply Quote 1
                    • EddieJenningsE
                      EddieJennings @scottalanmiller
                      last edited by

                      @scottalanmiller said in Fedora 27 and Outgoing Email:

                      @aaronstuder said in Fedora 27 and Outgoing Email:

                      @scottalanmiller so do I even need postfix?

                      Yes, mailx is only a client, it's telling Postfix to send it. if you wanted to send through Postfix by hand, you could.

                      Fun = telnet to postfix and send E-mail that way 😄

                      scottalanmillerS 1 Reply Last reply Reply Quote 2
                      • scottalanmillerS
                        scottalanmiller @EddieJennings
                        last edited by

                        @eddiejennings said in Fedora 27 and Outgoing Email:

                        @scottalanmiller said in Fedora 27 and Outgoing Email:

                        @aaronstuder said in Fedora 27 and Outgoing Email:

                        @scottalanmiller so do I even need postfix?

                        Yes, mailx is only a client, it's telling Postfix to send it. if you wanted to send through Postfix by hand, you could.

                        Fun = telnet to postfix and send E-mail that way 😄

                        Right, it's a standard thing to have to learn to do, but once you learn how, you never want to do it again. But it's standard for students to have to do it to learn how network protocols work and it is a great demonstration of "you don't need a client."

                        dafyreD 1 Reply Last reply Reply Quote 2
                        • dafyreD
                          dafyre @scottalanmiller
                          last edited by

                          @scottalanmiller said in Fedora 27 and Outgoing Email:

                          <snip>... and it is a great demonstration of "you don't need a client."

                          It is also demonstrates a reason to appreciate having a decent client app.

                          1 Reply Last reply Reply Quote 1
                          • 1
                          • 2
                          • 2 / 2
                          • First post
                            Last post