Trying to get Mail to work

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
irishmike2004
Forum Contributor
Posts: 119
Joined: Mon Nov 15, 2004 3:54 pm
Location: Lawrence, Kansas

Trying to get Mail to work

Post 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
Last edited by irishmike2004 on Thu Jan 17, 2008 4:08 pm, edited 2 times in total.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Trying to get Mail to work

Post by Christopher »

Have you tried the mail program from the command line to see if mail is working? Is sendmail running?
(#10850)
irishmike2004
Forum Contributor
Posts: 119
Joined: Mon Nov 15, 2004 3:54 pm
Location: Lawrence, Kansas

Re: Trying to get Mail to work

Post 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.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: Trying to get Mail to work

Post 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?
irishmike2004
Forum Contributor
Posts: 119
Joined: Mon Nov 15, 2004 3:54 pm
Location: Lawrence, Kansas

Re: Trying to get Mail to work

Post 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
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: Trying to get Mail to work

Post by Chris Corbyn »

Sounds like you don't have DNS set up correctly. Read this:

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