• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

/usr/lib/sendmail symlink missing

Youjiro Okamoto

New Pleskian
Hello,

I have an CentOS 6 x86_64 server, with plesk12.0.18 MU#19.
I cannot send emails from some CGI program.
CGI program using /usr/lib/sendmail command.

# ll /usr/lib/sendmail
lrwxrwxrwx 1 root root 30 2月 10 11:32 2016 /usr/lib/sendmail -> /etc/alternatives/mta-sendmail
# ll /etc/alternatives/mta-sendmail
lrwxrwxrwx 1 root root 25 2月 10 14:06 2016 /etc/alternatives/mta-sendmail -> /usr/lib/sendmail.postfix
# ll /usr/lib/sendmail.postfix
ls: cannot access /usr/lib/sendmail.postfix: No such file or directory

# alternatives --display mta
mta - status is manual.
link currently points to /usr/lib64/plesk-9.0/postfix-sendmail-wrapper
/usr/sbin/sendmail.postfix - priority 30
slave mta-pam: /etc/pam.d/smtp.postfix
slave mta-mailq: /usr/bin/mailq.postfix
slave mta-newaliases: /usr/bin/newaliases.postfix
slave mta-rmail: /usr/bin/rmail.postfix
slave mta-sendmail: /usr/lib/sendmail.postfix
slave mta-mailqman: /usr/share/man/man1/mailq.postfix.1.gz
slave mta-newaliasesman: /usr/share/man/man1/newaliases.postfix.1.gz
slave mta-aliasesman: /usr/share/man/man5/aliases.postfix.5.gz
slave mta-sendmailman: /usr/share/man/man1/sendmail.postfix.1.gz
/usr/lib64/plesk-9.0/postfix-sendmail-wrapper - priority 90
slave mta-pam: /etc/pam.d/smtp.postfix
slave mta-mailq: /usr/bin/mailq.postfix
slave mta-newaliases: /usr/bin/newaliases.postfix
slave mta-rmail: /usr/bin/rmail.postfix
slave mta-sendmail: /usr/lib/sendmail.postfix
slave mta-mailqman: /usr/share/man/man1/mailq.postfix.1.gz
slave mta-newaliasesman: /usr/share/man/man1/newaliases.postfix.1.gz
slave mta-aliasesman: /usr/share/man/man5/aliases.postfix.5.gz
slave mta-sendmailman: /usr/share/man/man1/sendmail.postfix.1.gz
Current `best' version is /usr/lib64/plesk-9.0/postfix-sendmail-wrapper.

plesk-installer is should be a symlink of mta-sendmail to plesk-installer is should be a symlink of mta-sendmail to wrapper?
 
It should be like:

# ll /usr/lib/sendmail.postfix
lrwxrwxrwx 1 root root 24 Oct 5 14:33 /usr/lib/sendmail.postfix -> ../sbin/sendmail.postfix

# ll /etc/alternatives/mta
lrwxrwxrwx 1 root root 43 Feb 10 04:48 /etc/alternatives/mta -> /usr/lib/plesk-9.0/postfix-sendmail-wrapper
 
Hello, thanks for your answer.

Since the CGI program is binary provided with the product, it can not be changed from /usr/lib/sendmail.
I use the alternatives command, it was to change the mta-sendmail.

# alternatives --install /usr/sbin/sendmail mta /usr/lib64/plesk-9.0/postfix-sendmail-wrapper 90 \
--slave /etc/pam.d/smtp mta-pam /etc/pam.d/smtp.postfix \
--slave /usr/bin/mailq mta-mailq /usr/bin/mailq.postfix \
--slave /usr/bin/newaliases mta-newaliases /usr/bin/newaliases.postfix \
--slave /usr/bin/rmail mta-rmail /usr/bin/rmail.postfix \
--slave /usr/lib/sendmail mta-sendmail /usr/lib64/plesk-9.0/postfix-sendmail-wrapper \
--slave /usr/share/man/man1/mailq.1.gz mta-mailqman /usr/share/man/man1/mailq.postfix.1.gz \
--slave /usr/share/man/man1/newaliases.1.gz mta-newaliasesman /usr/share/man/man1/newaliases.postfix.1.gz \
--slave /usr/share/man/man5/aliases.5.gz mta-aliasesman /usr/share/man/man5/aliases.postfix.5.gz \
--slave /usr/share/man/man8/sendmail.8.gz mta-sendmailman /usr/share/man/man1/sendmail.postfix.1.gz

Change the mta-sendmail with the following option:
--slave /usr/lib/sendmail mta-sendmail /usr/lib64/plesk-9.0/postfix-sendmail-wrapper

However, If I run the version up to MU#74, I got back setting.
I hope willing and able to fix the plesk-installer.
 
Back
Top