• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Please beaware of a breaking change in the REST API on the next Plesk release (18.0.62).
    Starting from Plesk Obsidian 18.0.62, requests to REST API containing the Content-Type header with a media-type directive other than “application/json” will result in the HTTP “415 Unsupported Media Type” client error response code. Read more here

Resolved Migrated website to Plesk, now need mail functionality (sendmail?) to work!

jva

New Pleskian
Hi guys,

I'm running a Plesk 12.5 server for Linux. It's pretty much default from the combined Linux + Plesk installation.

Right now we've migrated a PHP based website from a dedicated Linux server to Plesk. All is working fine except for email functionality. This will be the first site hosted which actually has email functionality on our Plesk server!

The website is based on PHP and the person who made it tells me this uses sendmail by default.

What steps do I need to take for this domain to be able to send out emails?

I already tried adding our internal mailserver as a relay server within /etc/postfix/main.cf but this did nothing and I'm also unsure if this is the way to go. I do think that somewhere I need to set our actual (Exchange) mailserver as a relay.

Hopefully someone can send me into the right direction. Thanks in advance guys/gals!
 
It is not possible to use sendmail by calling it directly through the sendmail path and file name, because the user is jailed into his own web space. Instead, the user must either send Mail through SMTP or by PHP mail() function.
 
A common error relates to contact forms and other emails from websites. If the website is hosted on the server but the email for the domain is hosted elsewhere, you need to disable the mail service for the domain. Otherwise any emails to addresses on that domain will just be delivered locally, not to the real mailbox.

There are loads of reasons emails might not get sent. Assuming there are no errors on the website you'll need to check the maillog to see what happened. Usually just /var/log/maillog.
 
Back
Top