LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-22-2007, 10:07 AM   #1
xpucto
Member
 
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 524

Rep: Reputation: 31
PHP mail() function and sendmail: stat=Service unavailable


Hi!
I've installed moodle on my virtual server. it works fine expect the PHP mail() function: user get the error message
Quote:
Tried to send you an email but failed!
when they try to register. In the moodle's admin area it says
Quote:
library mailer ERROR: Could not instantiate mail function.
.
sendmail runs. I had a look in /var/log/maillog:
Quote:
Jan 25 18:46:12 serv-3-8-54 sendmail[12609]: l0PHkCxd012609: to=myaddress@adomain.com, ctladdr=apache (48/48), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30483, relay=[127.0.0.1] [127.0.0.1], dsn=5.0.0, stat=Service unavailable
Jan 25 18:46:12 serv-3-8-54 sendmail[12609]: l0PHkCxd012609: l0PHkCxe012609: DSN: Service unavailable
Jan 25 18:46:12 serv-3-8-54 sendmail[12609]: l0PHkCxe012609: to=apache, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=34496, relay=[127.0.0.1], dsn=5.0.0, stat=Service unavailable
Jan 25 18:46:12 serv-3-8-54 sendmail[12609]: l0PHkCxe012609: l0PHkCxf012609: return to sender: Service unavailable
Jan 25 18:46:12 serv-3-8-54 sendmail[12609]: l0PHkCxf012609: to=postmaster, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=35520, relay=[127.0.0.1], dsn=5.0.0, stat=Service unavailable
Jan 25 18:46:12 serv-3-8-54 sendmail[12609]: l0PHkCxe012609: Losing ./qfl0PHkCxe012609: savemail panic
Jan 25 18:46:12 serv-3-8-54 sendmail[12609]: l0PHkCxe012609: SYSERR(apache): savemail: cannot save rejected email anywhere
Whay is the service unavailable?
with ps aux I get:
Quote:
root 12533 0.0 0.5 5996 1552 ? S Mar04 0:00 sendmail: accepting connections
this PHP mail() function usually doesn't need any configuration and works of its own.
I would appreciate any help.
 
Old 03-22-2007, 10:25 AM   #2
xpucto
Member
 
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 524

Original Poster
Rep: Reputation: 31
Youhou!! I found the solution! I forgot to have my localhost included in /etc/hosts.allow (my hosts.deny is: ALL:ALL). Now it works.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mail-function php sharp81 Linux - Software 3 02-17-2006 09:45 AM
SendMail DNS: Service unavailable nutthick Linux - Newbie 1 01-24-2005 09:49 AM
sendmail and PHP mail() function tudekoen Debian 1 05-09-2004 03:53 AM
sendmail and PHP mail() function tudekoen Linux - Software 0 05-08-2004 04:45 PM
Using the PHP mail() Function !?!? Hdata Programming 0 06-22-2003 06:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration