PDA

View Full Version : Emails are not sent out - please help!


Alex
Wed 7th Jan '04, 9:39am
Since a couple of month no emails are sent out anymore by my server. I hoped, that an upgrade to vb3 will fix the problem, but it didn't. It was working before though!

I checked with the diag tool in admincp and this is, what it said:
SMTP: localhost
sendmail_from: me@localhost.com
sendmail_path: /usr/sbin/sendmail -t -f -i webmaster@spassforen.de
__________________________________________________ ________________
The mailing function returned an error while trying to send the mail.
Check your mail server to ensure it is configured correctly to allow PHP to send mail from it. You should also check your mail server's error log for more diagnostic information.

So, i know, there is something wrong with the sender's mail-address and cannot be @localhost.com, but where and how can i change that? I am a totally Newbie, when it comes to Linux.

Here are the server Infos:
Suse Linux 8.2, postfix, apache, 1.3.27, mysql 3.23.55, php 4.3.1

Here's a link to the phpinfo:
http://www.spasschat.de/phpinfo.php
(This is a different URL, but it is physikally the same server!)

I would highly appreciate your help! Thanks in advance :)

Alex
Wed 7th Jan '04, 11:00am
What i found so far is, php.ini can have a value sendmail_from. I set this to webmaster@spassforen.de. But even though, no email is sent out through the forum.


Another script, which is using the php mail function is working proper. I receive emails sent out by that. Anyone?

Steve Machol
Wed 7th Jan '04, 4:02pm
This sounds like either a php.ini issue (check your sendmail_path) or a mail server issue. The 'sendmail_form' setting is only used in Windows systems.

Alex
Wed 7th Jan '04, 7:20pm
This sounds like either a php.ini issue (check your sendmail_path) or a mail server issue. The 'sendmail_form' setting is only used in Windows systems.I know, that's why I'm trying to get help here in the Server Configuration Forum Steve ;)

Like i stated in my first post, from my other domain and not vbulletin (it's a selfmade php-script, using the php mail function) the emails are sent out proper. Both domains are on the same hardware. So i assume, the sendmail_path is correct.

I also know, that the sendmail_form is only used by windows operation systems (that, what it says right away in the php.ini file) but somewhere i found a thread regarding a similar problem stating that even thoug it doesn't hurt to enter a correct email-address there. But, like stated before too, this doesn't help at all.

Steve Machol
Wed 7th Jan '04, 7:25pm
Compare the mail() line inyour script to the one in vB's functions.php. Any differences?

Alex
Wed 7th Jan '04, 9:07pm
Compare the mail() line inyour script to the one in vB's functions.php. Any differences?The only difference i can see is that
"-f $vboptions[webmasteremail]"
part. My domain has this value in the httpd.conf with the domain-settings:
/usr/sbin/sendmail -t -f -i webmaster@spassforen.de (webmaster@spassforen.de)
But even, if i deactivate the use of "-f" in the vbulletin options, the emails are not sent out.

I think, that something is messed up with my email-server-configuration. I really don't blame it on vb. But i need to get this working somehow, so any help is really appreciated! Thank you.

Alex
Wed 7th Jan '04, 9:20pm
Ok, i got it working...

I commented out the line in httpd.conf, made a server reboot and let vbulletin handle the -f. That did the trick.

The other way around didn't work, for what reason ever. (Leaving that line and disabling the "-f" in vb-options)

At least, i received the register-email, that is all, that counts. Should i notice more problems, i let you know. Thanx! :)