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

    Fedora 27 and Outgoing Email

    IT Discussion
    5
    22
    1.4k
    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

      What packages need to be install, and what configuration is needed?

      Just want to email out a log file.

      S 1 Reply Last reply Reply Quote 0
      • D
        DustinB3403
        last edited by

        Doesn't Fedora have built-in mail provider?

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

          @dustinb3403 I don't know, that's why I asked 🙂

          1 Reply Last reply Reply Quote 0
          • E
            EddieJennings
            last edited by

            There's probably a better way, but you could install Postfix.

            S 1 Reply Last reply Reply Quote 0
            • S
              scottalanmiller
              last edited by

              Works by default. Nothing is needed.

              1 Reply Last reply Reply Quote 0
              • D
                DustinB3403
                last edited by

                I think it has mailx installed by default

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

                  @eddiejennings said in Fedora 27 and Outgoing Email:

                  There's probably a better way, but you could install Postfix.

                  That should be there by default, at least in most cases.

                  1 Reply Last reply Reply Quote 0
                  • S
                    scottalanmiller @DustinB3403
                    last edited by

                    @dustinb3403 said in Fedora 27 and Outgoing Email:

                    I think it has mailx installed by default

                    mailx is the client, not the mailer. But most people actually want to use this and don't realize it and so don't ask what they mean. So chances are, he wants to use mailx but technically he is set to send emails without it.

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

                      @aaronstuder said in Fedora 27 and Outgoing Email:

                      Just want to email out a log file.

                      From what application?

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

                        @scottalanmiller bash script, via command line is fine.

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

                          @aaronstuder said in Fedora 27 and Outgoing Email:

                          @scottalanmiller bash script, via command line is fine.

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

                          dnf install mailx
                          
                          1 Reply Last reply Reply Quote 0
                          • 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.

                            S 1 Reply Last reply Reply Quote 0
                            • S
                              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" aaronstuder@gmail.com
                                
                                S 1 Reply Last reply Reply Quote 0
                                • S
                                  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" aaronstuder@gmail.com
                                  

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

                                  mail -s "Test" aaronstuder@gmail.com < /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" aaronstuder@gmail.com < /etc/passwd

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

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

                                      @scottalanmiller so do I even need postfix?

                                      S 1 Reply Last reply Reply Quote 0
                                      • D
                                        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" aaronstuder@gmail.com < /etc/passwd

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

                                        Ftfy

                                        1 Reply Last reply Reply Quote 1
                                        • S
                                          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.

                                          E 1 Reply Last reply Reply Quote 1
                                          • E
                                            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 😄

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