• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

WebMail Horde, Doesn't Send Emails

Andrew_Pa

Regular Pleskian
Hello everybody.

I have a serious problem with my server.

I cannot send emails from any vhost through Webmail. If I use a mail client such as Outlook or Thunderbird, everything is fine. I am using Horde and the logs (/var/log/psa-horde/psa-horde.log) are :

Sep 25 13:10:30 HORDE [error] [imp] sendmail returned error code 127 [pid 16915 on line 754 of "/usr/share/psa-horde/imp/lib/Compose.php"]
Sep 25 13:18:25 HORDE [error] [imp] sendmail returned error code 127 [pid 21966 on line 754 of "/usr/share/psa-horde/imp/lib/Compose.php"]
Sep 25 13:18:28 HORDE [error] [imp] sendmail returned error code 127 [pid 18729 on line 754 of "/usr/share/psa-horde/imp/lib/Compose.php"]
Sep 25 13:18:31 HORDE [error] [imp] sendmail returned error code 127 [pid 15372 on line 754 of "/usr/share/psa-horde/imp/lib/Compose.php"]
Sep 25 13:20:24 HORDE [error] [imp] sendmail returned error code 127 [pid 22468 on line 754 of "/usr/share/psa-horde/imp/lib/Compose.php"]
Sep 25 13:24:16 HORDE [error] [imp] sendmail returned error code 127 [pid 22471 on line 754 of "/usr/share/psa-horde/imp/lib/Compose.php"]

I search but I don't find anything.

I there any way to solve my problem?

PS: I also did an update to the latest MU of Plesk Panel
 
Something like the following command should suffice:

# printf "Subject: sendmail test\nFrom: mail1@from-domain.com\nTo: mail1@to-domain.com\n\nMessage body OK\n" | sendmail -t ; echo $?

Then check that mail1@to-domain.com actually received the mail. It is worth to check both cases - when this mailbox is local (resides on your server) and when it is external.

Obviously, mail1@from-domain.com and mail1@to-domain.com should be replaced with real addresses. The first one should (preferably) be local.

Post the command output and any new lines from /usr/local/psa/var/log/maillog if the mail will not be delivered.
 
Check whether sendmail is actually installed, it's permissions and it's package integrity. For a start, do:

# ls -al /usr/sbin/sendmail* /usr/lib/sendmail* ; which rpm && rpm -qf /usr/sbin/sendmail ; which dpkg && dpkg -S /usr/sbin/sendmail

Do you use Postfix or QMail?
 
The Output of the command

lrwxrwxrwx 1 root root 30 Oct 9 2011 /usr/lib/sendmail -> /etc/alternatives/mta-sendmail
lrwxrwxrwx 1 root root 21 Oct 9 2011 /usr/sbin/sendmail.act -> /etc/alternatives/mta
-rwxr-xr-x 1 root root 273464 May 24 08:28 /usr/sbin/sendmail.postfix
/bin/rpm
postfix-2.8.4-12052415
/usr/bin/which: no dpkg in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)

I am using Postfix
 
Check /etc/alternatives/mta symlink. It should be something like:

# ll /usr/sbin/sendmail
lrwxrwxrwx 1 root root 21 Apr 27 09:45 /usr/sbin/sendmail -> /etc/alternatives/mta

# ll /etc/alternatives/mta
lrwxrwxrwx 1 root root 31 Sep 26 05:40 /etc/alternatives/mta -> /usr/lib/plesk-9.0/psa-sendmail

# rpm -qf /usr/lib/plesk-9.0/psa-sendmail
plesk-mail-pc-driver-11.1.12-rhel5.build111120925.19
 
Thank you very much for your answer!

At the folder /etc/alternatives/ the output of ls is

mta mta-mailq mta-newaliases mta-pam mta-sendmail
mta-aliasesman mta-mailqman mta-newaliasesman mta-rmail mta-sendmailman

When I try to enter mta-sendmail
-bash: cd: mta-sendmail: No such file or directory

The output of # ll /usr/sbin/sendmail
ls: /usr/sbin/sendmail: No such file or directory

From # ll /etc/alternatives/mta
lrwxrwxrwx 1 root root 26 Aug 12 09:25 /etc/alternatives/mta -> /usr/sbin/sendmail.postfix

And from # rpm -qf /usr/lib/plesk-9.0/psa-sendmail
error: file /usr/lib/plesk-9.0/psa-sendmail: No such file or directory

I cannot understand what happens....

How Can I fix it?
 
I did
rpm -ivh --force plesk-mail-pc-driver-11.0.9-cos5.build110120608.16.x86_64.rpm

and then
yum update

I check the webmail now and everything working fine now!

Is there any problem that the output of
# ll /usr/sbin/sendmail

# ll /etc/alternatives/mta

# rpm -qf /usr/lib/plesk-9.0/psa-sendmail

are the same as before the installation?
 
Reinstall all microupdates with

# /usr/local/psa/admin/bin/autoinstaller --select-product-id plesk --select-release-current --reinstall-patch --install-component base

It should be done after each manual package reinstalling.
 
Back
Top