If you like DNray Forum, you can support it by - BTC: bc1qppjcl3c2cyjazy6lepmrv3fh6ke9mxs7zpfky0 , TRC20 and more...

 

Mail Configuration in ISPmanager

Started by Magir, Jun 28, 2023, 12:03 AM

Previous topic - Next topic

MagirTopic starter

Could you please explain how to set up notifications from forms on WordPress sites using the php mail() / wpmail() functions, so that they are delivered as incoming messages and not marked as spam?

Is there an efficient and easy way to configure this setup for multiple sites on the server? As the number of sites increases, it becomes cumbersome to perform the same steps for each individual site. Creating a separate mail domain and mailbox, and adding multiple entries for each domain, seems like a challenging solution.

In the past, when I used virtual hosting, I did not encounter such issues. Can you please provide detailed instructions on configuring email sending from the server to ISPmanager?

UPD: In the php mail() function, I specify info@domain.the site in the FROM header, but when the email is received in Gmail, it appears as a spam email with the sender's actual address - example.com. Could this be the main problem? Where does this address come from in the almost "naked" ISPmanager? If anyone has encountered this issue, I would appreciate your insights.
  •  


raveinfosys

ispmanager is barely surviving in the industry. An alternative method to deliver emails is by using smtp. Additionally, you can install and set up a suitable plugin on the virtual private server (vp). To enhance reliability, it is recommended to associate the domain's mail service with Google.
  •  

autorenta

Your IP is not good, and your neighbors are also not good. You can use a third-party service like the API or PHPMailer to send emails.

To improve email deliverability, make sure to set up an SPF record for your domain. This will help prevent your emails from being marked as spam. Additionally, implementing a DKIM signature will make your emails even more secure and reliable.

Adding an SPF record and DKIM signature are highly recommended for better email performance.
  •  

Knorneshoote

https://www.mail-tester.com/
If you send an email to this website, you can see the reasons why it ends up in spam. If you're unsure about the meaning of the points, simply Google them and make the necessary corrections.
At the very least, you need to configure the PTR and the correct hostname on the server. It's even better to use a local exim for these tasks and create mailboxes in ISPmanager, then send via SMTP. Remember to enable DKIM again.
  •  

IgorG

Quote from: raveinfosys on Jun 28, 2023, 01:29 AMispmanager is barely surviving in the industry.
A very bold statement. May I know the source of this information?
  •  

mickyrobert

To avoid emails being flagged as spam, it's important to follow best practices for email deliverability. Here's a detailed guide on how to achieve this:

1. Setup SPF and DKIM: Firstly, make sure that the SPF (Sender Policy Framework) and DKIM (DomainKeys Identified Mail) records are properly set up for the domain from which you are sending emails. These records help validate the authenticity of the sender's domain and can improve deliverability.

2. Use a Dedicated IP or SMTP Service: Consider using a dedicated IP address for sending emails from your server. This can help maintain a good sender reputation. Alternatively, you can use an SMTP service like SendGrid, Amazon SES, or Gmail SMTP for sending emails from your WordPress site.

3. Implement DMARC: Implementing DMARC (Domain-based Message Authentication, Reporting, and Conformance) policy can further enhance email security and help in preventing email spoofing.

4. Configure Reverse DNS: Ensure that the reverse DNS (PTR record) for your server's IP address is correctly configured to match the sending domain. This can also help in establishing the credibility of your email server.

Regarding configuring email sending from the server to ISPmanager, you can follow these steps:

1. Login to ISPmanager and navigate to the Mail section.
2. Create a new mail domain if needed, and then add mailboxes for the domains from which you want to send emails.
3. Under Domain settings, make sure to set up SPF and DKIM records for the mail domains.
4. Configure the mail server's IP address and hostname to align with the sending domains.

Now, addressing the issue with the php mail() function including the FROM header - it's important to ensure that the FROM address domain matches the domain used for sending. If the email is appearing as spam with the sender's actual address (e.g., example.com) in Gmail, it could be due to a mismatch between the email domain and the actual sending domain.
  •  


If you like DNray forum, you can support it by - BTC: bc1qppjcl3c2cyjazy6lepmrv3fh6ke9mxs7zpfky0 , TRC20 and more...