1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Plesk and Sendmail Problem

Discussion in 'Plesk 10.x for Linux Issues, Fixes, How-To' started by dukhunter99, Oct 30, 2011.

  1. dukhunter99

    dukhunter99 Guest

    0
     
    I have searched all over and could not find the solution to this problem for Plesk 10.3.1.
    I have sendmail configured and installed on my server (centos 5, php 5.3.8). The problem is, I cannot send mail using the mail() function to domains hosted within Plesk. The mail() function works fine when sending to domains not hosted within plesk. I have tested the Sendmail function through the command line and it sends fine other than to the domains hosted in Plesk. I have been told that this is a known issue in Plesk but I cannot find the answer.

    My email is hosted on an external server, not on the server hosted by Plesk. I'm sure that for whatever reasaon, Plesk is trying to send the mail locally because the domains are hosted in Plesk. I have disabled the mail server service on the server and unchecked the box for Plesk to manage the email. This did not fix the problem. Any advice on this is much appreciated!
     
  2. dukhunter99

    dukhunter99 Guest

    0
     
    I found the answer to this. From the command line, enter this below.

    /usr/local/psa/bin/domain -u yourdomain.com -mail_service false

    You do not need to restart the server

    This tells Plesk to not use the mail server to send mail for that domain. It will then go through the correct MX entry for the domain and send it to an external domain.

    You will need to do this for every domain hosted on the server
     
Loading...