Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problems sending mail
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Herodot
Guru
Guru


Joined: 29 Jul 2002
Posts: 429
Location: Professor Xavier's school for gifted youngsters

PostPosted: Wed Oct 23, 2002 2:18 am    Post subject: Problems sending mail Reply with quote

Hi,

I'm trying to use phpBB (the forum system you're using right now) on a single machine (for arguments sake...). Everything works fine, apart from when phpBB tries the send mail. Then the system hangs or worse, and no mail is ever send.

I'm sadly beginning to become slightly confused as to whether the machine itself should be an SMTP server, or it should pass the mail on to my ISP's SMTP server (as my mail program does). Which is it?

I suppose phpBB uses a standard php sendmail function that itself uses a standard linux mail function. I've not been able to get it to work. It's only a matter of sending mail out of the system, there's no incoming mail.

I think ssmtp, sendmail and postfix all uses "sendmail" as a link, so that whichever is installed, refering to sendmail will run it. So I use syntax like this:

Code:
echo "something" | sendmail "to:me@myisp.dk"


Is that the right way to test sendmail (or ssmtp)?

Emerging ssmtp, sendmail and postfix gives me different config files to works with, but none are very easy for me. I think (from reading logs) that my main problem is setting the sender domain for the system.

ssmtp seems to be the easiest to configure, so if that can do what I need, I'd prefer to use that. Can it?

The configuration file for ssmtp is quite small. Could somebody please provide a complete example? Or at least tell me what I should put where given the nature of my system as stated?

Thanks a lot!
Herodot
Back to top
View user's profile Send private message
mglauche
Retired Dev
Retired Dev


Joined: 25 Apr 2002
Posts: 564
Location: Germany

PostPosted: Wed Oct 23, 2002 7:43 am    Post subject: Reply with quote

if you have an isp where u can forward emails to, ssmtp seems to be the sane choice. You'll have to configure ssmtp to relay the mail to your isp, then the php mail() function should work.
Back to top
View user's profile Send private message
Herodot
Guru
Guru


Joined: 29 Jul 2002
Posts: 429
Location: Professor Xavier's school for gifted youngsters

PostPosted: Wed Oct 23, 2002 12:43 pm    Post subject: Reply with quote

Thanks, that's what I wanted to hear. Can you (or anyone) help with the actual configuration?

Thanks,
H
Back to top
View user's profile Send private message
klieber
Bodhisattva
Bodhisattva


Joined: 17 Apr 2002
Posts: 3657
Location: San Francisco, CA

PostPosted: Wed Oct 23, 2002 1:29 pm    Post subject: Re: Problems sending mail Reply with quote

Herodot wrote:
I'm trying to use phpBB (the forum system you're using right now) on a single machine (for arguments sake...). Everything works fine, apart from when phpBB tries the send mail. Then the system hangs or worse, and no mail is ever send.

In your phpBB, go into the admin panel and click on the "configuration" option in the "General Admin" menu. Scroll all the way to the bottom of that page and you'll see an option; "use SMTP for mail". Click "yes", then enter the hostname or IP address for your ISP's SMTP server and you should be good to go.

--kurt
_________________
The problem with political jokes is that they get elected
Back to top
View user's profile Send private message
Herodot
Guru
Guru


Joined: 29 Jul 2002
Posts: 429
Location: Professor Xavier's school for gifted youngsters

PostPosted: Wed Oct 23, 2002 4:12 pm    Post subject: Reply with quote

Quote:
In your phpBB, go into the admin panel and click on the "configuration" option in the "General Admin" menu. Scroll all the way to the bottom of that page and you'll see an option; "use SMTP for mail". Click "yes", then enter the hostname or IP address for your ISP's SMTP server and you should be good to go.

I was beginning to suspect as much. Thanks a lot, this solves all my problems!

BTW: phpBB is awesome!

Thanks all!
Herodot
Back to top
View user's profile Send private message
mixmasterdj2002
n00b
n00b


Joined: 20 Jun 2002
Posts: 66
Location: UK

PostPosted: Mon Nov 11, 2002 3:44 pm    Post subject: Reply with quote

ok, well I use PHP-Nuke and I have a very similar problem, but unlike phpbb there is no option in the config files to add ssmtp server hostname...

I was wondering if there is anyway to configure php directly to use the ssmtp server...

Or if anyone else knows how I could do it, then that would be groovy.. :twisted:

Thanks In Advance
_________________
[img:5c38d54d9d]http://djsleepy.servebeer.com/images/logo.gif[/img:5c38d54d9d]
http://www.djsleepy.co.uk
Back to top
View user's profile Send private message
klieber
Bodhisattva
Bodhisattva


Joined: 17 Apr 2002
Posts: 3657
Location: San Francisco, CA

PostPosted: Mon Nov 11, 2002 3:56 pm    Post subject: Reply with quote

mixmasterdj2002 wrote:
Or if anyone else knows how I could do it, then that would be groovy..

Just like your ASP question, Google has the answer to your question. (look at the ~5th result that gets returned)

Maybe you ought to consult Google more often...

--kurt
_________________
The problem with political jokes is that they get elected
Back to top
View user's profile Send private message
mixmasterdj2002
n00b
n00b


Joined: 20 Jun 2002
Posts: 66
Location: UK

PostPosted: Mon Nov 11, 2002 5:07 pm    Post subject: Reply with quote

Made those changes, but still the damn thing wont send emails.. Grrrrrrrr

when I tried
Code:
echo "something" | sendmail "to:me@isp.com"

I got a nice little error
sendmail: can't open the smtp port (25) on mail

I think this means that there is something wrong with port 25 or sumthin :S
have a look @ my phpinfo and tell me what I have done wrong please..
http://djsleepy.servebeer.com/phpinfo.php

I would love to get this working propperly by the weekend.. LOL
Thanks In Advance..
P.S Sorry If Im a pain..
_________________
[img:5c38d54d9d]http://djsleepy.servebeer.com/images/logo.gif[/img:5c38d54d9d]
http://www.djsleepy.co.uk
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum