FW: Not sending e-mails

Marc Powell marc at ena.com
Thu Oct 1 21:57:52 CEST 2009


On Oct 1, 2009, at 3:23 PM, Scott Miller wrote:

> [root at mail4 ~]# echo "Hello world" | /bin/mail -s "Test Email"  
> root at localhost
> [root at mail4 ~]# /etc/mail/sendmail.cf: line 0: cannot open: No such  
> file or directory
> [root at mail4 ~]#
>
> I’m running postfix – not sure why it’s looking for sendmail.

If this is Redhat/clone, it's because /usr/lib/sendmail ends up being  
pointed to sendmail.

$ ls -al /usr/lib/sendmail
lrwxrwxrwx 1 root root 30 Nov  7  2008 /usr/lib/sendmail -> /etc/ 
alternatives/mta-sendmail

$ ls -l /etc/alternatives/mta-sendmail
lrwxrwxrwx 1 root root 26 Nov  7  2008 /etc/alternatives/mta-sendmail - 
 > /usr/lib/sendmail.sendmail

$ ls -l /usr/lib/sendmail*
lrwxrwxrwx 1 root root 30 Nov  7  2008 /usr/lib/sendmail -> /etc/ 
alternatives/mta-sendmail
lrwxrwxrwx 1 root root 24 Nov  7  2008 /usr/lib/sendmail.postfix -> ../ 
sbin/sendmail.postfix
lrwxrwxrwx 1 root root 16 Nov  7  2008 /usr/lib/sendmail.sendmail - 
 > ../sbin/sendmail

You can use the 'alternatives' command to view and change this  
configuration --

# alternatives --display mta
mta - status is auto.
  link currently points to /usr/sbin/sendmail.sendmail
/usr/sbin/sendmail.sendmail - priority 90
  slave mta-pam: /etc/pam.d/smtp.sendmail
  slave mta-mailq: /usr/bin/mailq.sendmail
  slave mta-newaliases: /usr/bin/newaliases.sendmail
  slave mta-rmail: /usr/bin/rmail.sendmail
  slave mta-sendmail: /usr/lib/sendmail.sendmail
  slave mta-mailqman: /usr/share/man/man1/mailq.sendmail.1.gz
  slave mta-newaliasesman: /usr/share/man/man1/newaliases.sendmail.1.gz
  slave mta-aliasesman: /usr/share/man/man5/aliases.sendmail.5.gz
  slave mta-sendmailman: /usr/share/man/man8/sendmail.sendmail.8.gz
/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
Current `best' version is /usr/sbin/sendmail.sendmail.

I believe that all you need to do is run 'alternatives --config mta'  
and choose postfix but I haven't researched this extensively.

--
Marc


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list