Outgoing Mail VPS
-
I am moving from shared hosting to a VPS. How do I setup the VPS to send outgoing mail, for contact forms, etc?
-
That's totally dependent on the OS and mail server that you decide to use.
-
CentOS7.
My research suggests maybe I should use PostFix?
-
@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.
-
Here is the install...
yum -y install postfix
-
I like MailX for testing.
yum -y install mailx
-
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?
-
@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.
-
Nope, just sending
-
@anonymous said:
Nope, just sending
Then no need for ports Just install and go.
-
What command could I use to send myself a test message?
-
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.
-
My wordpress form isn't working, but I don't know if it's the form or the server =P
-
@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.
-
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.
-
@scottalanmiller My gmail account.
-
@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?
-
IT IS IN MY SPAM FOLDER!
-
@anonymous said:
IT IS IN MY SPAM FOLDER!
Ta da!
-
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?