Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
03-22-2007, 10:07 AM
|
#1
|
Member
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 524
Rep:
|
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.
|
|
|
03-22-2007, 10:25 AM
|
#2
|
Member
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 524
Original Poster
Rep:
|
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.
|
All times are GMT -5. The time now is 03:37 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|