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

    Outgoing Mail VPS

    Scheduled Pinned Locked Moved IT Discussion
    28 Posts 4 Posters 2.8k 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

      I am moving from shared hosting to a VPS. How do I setup the VPS to send outgoing mail, for contact forms, etc?

      1 Reply Last reply Reply Quote 1
      • scottalanmillerS
        scottalanmiller
        last edited by

        That's totally dependent on the OS and mail server that you decide to use.

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

          CentOS7.

          My research suggests maybe I should use PostFix?

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

            @anonymous said:

            CentOS7.

            My research suggests maybe I should use PostFix?

            Yes, Postfix. Normally all you have to do is install and it is ready to go.

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

              Here is the install...

              yum -y install postfix
              
              1 Reply Last reply Reply Quote 0
              • scottalanmillerS
                scottalanmiller
                last edited by

                I like MailX for testing.

                yum -y install mailx
                
                1 Reply Last reply Reply Quote 0
                • A
                  Alex Sage
                  last edited by

                  I'll need to open some posts too. Right now the only thing open is 80 and 443. What port's are needed for postfix?

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

                    @anonymous said:

                    I'll need to open some posts too. Right now the only thing open is 80 and 443. What port's are needed for postfix?

                    You want to receive mail? If so, email is SMTP and always port 25. But for sending mail of course no port is needed unless you are blocking outbound traffic.

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

                      Nope, just sending 🙂

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

                        @anonymous said:

                        Nope, just sending 🙂

                        Then no need for ports 🙂 Just install and go.

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

                          What command could I use to send myself a test message?

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

                            Sending a mail to someone...

                            mail -s "This is an email" [email protected] < mail_message.txt
                            

                            Where mail_message.txt is a text message containing the body of the email that you want to send.

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

                              My wordpress form isn't working, but I don't know if it's the form or the server =P

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

                                @anonymous said:

                                My wordpress form isn't working, but I don't know if it's the form or the server =P

                                Test the mail command. If it works, it's the Wordpress setup. If not, it's at least partially the server.

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

                                  To where are you trying to send? Keep in mind that you are setting up your own email server here so you likely need to whitelist with wherever you are sending to.

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

                                    @scottalanmiller My gmail account.

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

                                      @anonymous said:

                                      @scottalanmiller My gmail account.

                                      Did you whitelist the IP address that you are trying to send from? Gmail will likely see it as a spam location since you didn't set up SPF, reverse DNS, etc., right?

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

                                        IT IS IN MY SPAM FOLDER! 😄

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

                                          @anonymous said:

                                          IT IS IN MY SPAM FOLDER! 😄

                                          Ta da!

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

                                            Now, how do I set this up so it's not in my spam folder? I am going to be sending mail on this server from 3 or more different domains. How hard is that to do?

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