OCI: Postfix Fails to send Emails with "warning: /usr/lib/sendmail and /us/sbin/sendmail differ" — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register
Note!! Please register for a free account to access the full content and also to participate in Q&A in the community
Get Started with Redwood: Oracle Cloud SCM and Purchasing

OCI: Postfix Fails to send Emails with "warning: /usr/lib/sendmail and /us/sbin/sendmail differ"

Applies to

Linux OS - Version Oracle Linux 7.0 and later

Oracle Cloud Infrastructure


Symptoms

 Postfix shows the following warning error:

Oct 13 07:23:55 <hostname> postfix/postfix-script[18461]: warning: /usr/lib/sendmail and /usr/sbin/sendmail differ
Oct 13 07:23:55 <hostname> postfix/postfix-script[18462]: warning: Replace one by a symbolic link to the other
Oct 13 07:23:55 <hostname> postfix/postfix-script[18463]: starting the Postfix mail system

 

In addition, when trying to send mail via cron the following message can be seen

Oct 13 07:30:01 <hostname> CROND[20069]: (oracle) CMDOUT (/usr/sbin/sendmail: Exec format error)

 

 Cause

 There were two issues here:

1) /etc/alternatives/mta-sendmail was pointing to /usr/lib/sendmail.sendmail instead of /usr/sbin/sendmail.postfix

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!