Page 1 of 1

Trying to get Mail to work

Posted: Thu Jan 17, 2008 4:06 pm
by irishmike2004
Hello:

I am running PHP 5.2.4 on FreeBSD 6.2 (Webserver is Apache 2.2) and Joomla 1.5RC4. I am trying to get joomla up and running and tried to make a test user on my system. http://eoblivion.dyndns.orgThe system sends a registration confirmation email out only it never gets out... I did not confirm this via logs, but I think that either 1) Sendmail is not setup to go anywhere -- this is possible. or 2) I did not configure something in the PHP.INI file? What I want to do is send the mail out to my ISP server or through GMAIL. I have no idea how to configure sendmail and could use help if it can be handled directly by the PHP server.

HELP is appreciated :-)

Mike

Re: Trying to get Mail to work

Posted: Thu Jan 17, 2008 4:08 pm
by Christopher
Have you tried the mail program from the command line to see if mail is working? Is sendmail running?

Re: Trying to get Mail to work

Posted: Thu Jan 17, 2008 4:11 pm
by irishmike2004
Hey Chris:

Not very familiar with sendmail other than a few years ago I wrote a perl script. I know that sendmail is not setup to receive mail from outside the system... but the daemon is running. I am clueless from here.

Re: Trying to get Mail to work

Posted: Sat Jan 26, 2008 8:50 pm
by Chris Corbyn
irishmike2004 wrote:Hey Chris:

Not very familiar with sendmail other than a few years ago I wrote a perl script. I know that sendmail is not setup to receive mail from outside the system... but the daemon is running. I am clueless from here.
In a plain-text file write:

Code: Select all

From: your@address.com
To: some@address.com
Subject: Test
 
This is a test message
Then run:

Code: Select all

sendmail -t < the-file.txt
Does the email arrive?

Re: Trying to get Mail to work

Posted: Sat Jan 26, 2008 9:00 pm
by irishmike2004
Hey:

Figured out that everything IS getting out, but being rejected from most mail servers on the net. It has been suggested that I install Postfix, but this is on FreeBSD, so I will probably do this with some help from my local LUG group :-)

The way I found out that it actually was working was that I had a friend that has his own mail server up and running try to see if the Joomla system would send him back his registration code... and it worked.

Thanks for the help.

Mike

Re: Trying to get Mail to work

Posted: Sat Jan 26, 2008 9:08 pm
by Chris Corbyn
Sounds like you don't have DNS set up correctly. Read this:

http://www.swiftmailer.org/wikidocs/v3/tips/spam