The perfect solution and walkthrough Mark, appreciated as always!
Email Server Settings
-
Hello Everyone,
I have my new server up and running and have even moved over my wife’s wordpress website. I have to say I can tell a big difference on speed. The digital ocean server was fast, but with more resources for a couple dollars more I can tell a huge difference.
So now for my question. I have my reverse dns setup as mydomainname.com which is the name of my server as host and have created a virtualmin server to it so it can have ssl. So for the reverse dns I have mydomainname.com entered in the IPv4 entry.
Now for my wife to receive email from a contact form I need to have an MX entry in her DNS management with a MX record of hollyjessen.com pointing to mydomainname.com right?
Or do I point it to something different?
Should I also have the DKIM entries entered in as a TXT entry in the DNS management as well?
Thank you for your help!
-
@Madchatthew you’ll need to relay mail though another service if you want to use Postfix, using relay. For example, in the
main.cf
filesmtp_sasl_auth_enable = yes smtp_sasl_password_maps = static:USERNAME:PASSWORD smtp_sasl_security_options = noanonymous smtp_tls_security_level = encrypt relayhost = [198.51.100.10]:587
Depending on your use case, it might make sense to use a third party service at the application level (like WordPress) to send mail until you are able to do so via port 25 at Hetzner.
Some freemium providers are here
https://www.emailvendorselection.com/free-smtp-servers/You can also use Gmail, or even office365 if you’d prefer via a WordPress plugin such as WP Mail SMTP
-
@Madchatthew if i were you, i would use my email elsewhere for example yandex email is very good and free.
on the other hand as for the get good speed on wordpress, you should do some optimized in your vps. Maybe digitalocean has it as default for wordpress user but hetzner not.
for example what did you do for chache? what about the .htaccess file, is there any redirect?
-
@Madchatthew said in Email Server Settings:
Now for my wife to receive email from a contact form I need to have an MX entry in her DNS management with a MX record of hollyjessen.com pointing to mydomainname.com right?
Yes, this would be correct.
-
@cagatay said in Email Server Settings:
what about the .htaccess file, is there any redirect?
If the site has been moved and the domain is the same, why does @Madchatthew need a redirect?
@Madchatthew also don’t forget my previous comment about Hetzner blocking port 25 inbound until you’ve paid your first invoice
-
@phenomlab said in Email Server Settings:
also don’t forget my previous comment about Hetzner blocking port 25 inbound until you’ve paid your first invoice
Does that include outbound as well?
-
@cagatay The site is actually faster on Hetzner due to the increased resources compared to digitalocean is all i meant.
-
@phenomlab i would like to say if the .htaccess has some redirect command, the site can open slowly then must be.
-
@Madchatthew yes, it does. However, you can use tcp 465 or 587 which is recommended anyway.
-
@cagatay perhaps for http to https but if your site is slow because of that you should switch providers.
-
@phenomlab Sweet, so I will switch the outgoing port to one of those. Then on the website side of things for outgoing mail I would use the mail.hollyjessen.com that virtualmin setup? That would actually be for in and outgoing right?
-
@Madchatthew in theory, yes, but for mail to be received you’ll need an MX record for that domain. What’s there now?
-
@phenomlab right now I have an MX record that has mydomainname.com which is also the host name on the server.
-
@Madchatthew you should keep that. Mail records are old hat these days and you’d need a wildcard to match that hostname. At least using the domain name itself, you won’t have cert issues.
I recall us doing the same last time when we built your virtualmin server.
If it ain’t broke, don’t fix it
-
@phenomlab Sounds good! Thanks for your help, I appreciate it!
-
So, I guess I need a walkthrough on how to change the outgoing smtp port to 587 with postfix. I have tried good searching and such. I know we went through this in the past, but I am unable to find that post. I think it was on the previous website/domain before Sudonix.
Thank you for your help.
-
@Madchatthew you’ll need to relay mail though another service if you want to use Postfix, using relay. For example, in the
main.cf
filesmtp_sasl_auth_enable = yes smtp_sasl_password_maps = static:USERNAME:PASSWORD smtp_sasl_security_options = noanonymous smtp_tls_security_level = encrypt relayhost = [198.51.100.10]:587
Depending on your use case, it might make sense to use a third party service at the application level (like WordPress) to send mail until you are able to do so via port 25 at Hetzner.
Some freemium providers are here
https://www.emailvendorselection.com/free-smtp-servers/You can also use Gmail, or even office365 if you’d prefer via a WordPress plugin such as WP Mail SMTP
-
@phenomlab so you aren’t able to have a form filled out and have it sent by the outgoing port of Postfix?
I was under the impression that you could use the Postfix server to just send emails from website forms and such but not actually use the Postfix server for incoming mail.
Am I understanding that wrong?
-
@Madchatthew no, you have that right. However, the MTA for postfix uses port 25 - and given that this is blocked for a month, this will mean you’ll need to relay the mail to another server or send it at the application layer to bypass it altogether.
This is a temporary measure until Hetzner open the port - and you’ll need to request that once you’ve paid the first month invoice. Postfix handles all SMTP based mail, so it’s the sending and receiving service. Dovecot is the receiver of POP, IMAP, etc so works differently, but handles mail sent to it downstream via Postfix.
All things considered, third party relay services will have a much better reputation than the IP address of your mail server so will be more reliable.
-
@phenomlab That sounds good. Thanks for the explanation. I appreciate it. So would it just be better to use a third party mailer rather than postfix?
-
@Madchatthew for the time being at least, yes. This makes the most sense and means the WordPress site can send email.
Setting up postfix to be a relay isn’t difficult, but seems pointless given that once you pay the first invoice to Hetzner you can turn make full use of it. As you are running virtualmin, it’ll work right out of the gate.
Did this solution help you?
Related Topics
-
-
-
-
-
-
-
Forum registration email goes to spam
Moved Solved Configure -