System Tools
  [RAQ550] Raq550
  [BQ-5102R] Bluequartz
  [RS-4200R] Rackstar
 Munin Reports
  [BQ-5102R] Bluequartz
 APC UPS Support
  [BQ-5102R] BQ CentOS3 on RaQ
 How To's
 CentOS 3 / BQ on a RaQ
  No Network / kernel Panic!
 Boot Options: hda1
 Null-Modem Cable: Pinout
 Apache Can't Send Mail
 ROM Flashing RaQ 3&4
   How to be successful even
   with an Intel!
 ROM Flashing RaQ 550
   Strongbolt rom back to
   the standard RaQ550!
 Bulging / Burst Capacitors
 RaQ 3 / 4 CPU Upgrade
 Cooling Fan Upgrade
 ROM / CPU Problems

 Server Details
System Specification
Site Page Requests

Add your comments about the site  Your Comments Add your comments about the site
 Contact Dincom

"Apache Can't Send Mail !"

Document Version: 001b.15-September-2006 Howie Dines

Some php scripts have the ability to send notification emails to the administrator.

You may find that these emails are not being relayed by sendmail as the user 'apache' is unknown at host. There seem to be a number of possible causes with their fixes that can be tried.

In the case of the comments page on this site, this issue was fixed using the following script from Brian at www.nuonce.net

The following script, adds "apache" to the virtusertable

# Fix Sendmail not having "apache" in the virtual user table
cd /etc/mail
/bin/cat virtusertable | grep "apache\@" > /dev/null
if [ $? != 0 ]; then
/usr/bin/printf "apache@`hostname`\tadmin" >> /etc/mail/virtusertable
/usr/sbin/makemap hash /etc/mail/virtusertable < virtusertable

The complete thread showing alternative options can be viewed here.


ADVERT - www.secondspin.com

ADVERT - Make money with your website for free
Valerie Dines Ofsted NCMA Childminder Canvey Island
Garry Fish Prom Wedding Event Photography Photos Essex