
22nd January 2012, 16:25
|
|
Junior Member
|
|
Join Date: Nov 2011
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Server set up for email?
Thanks for taking the time to read my question.
I completed your tutorial on how to set up a Fedora 15 server as a web server ( http://www.howtoforge.com/perfect-se...64-ispconfig-3 )
I'm wondering, does this setup include the ability to use PHP to send emails from the server?
I'm learning how to use PHP and I've done a mail(); When I click my button, my code works, but no email shows up in my online email account, which is where I'm sending my test to.
I've read this page a few times, and it seems like there may be something that needs to be set up on the server...? http://ca3.php.net/manual/en/function.mail.php
Thanks,
Brad
|

23rd January 2012, 11:11
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,591 Times in 2,443 Posts
|
|
Quote:
Originally Posted by mbrad
I'm wondering, does this setup include the ability to use PHP to send emails from the server?
|
Yes.
Quote:
Originally Posted by mbrad
I'm learning how to use PHP and I've done a mail(); When I click my button, my code works, but no email shows up in my online email account, which is where I'm sending my test to.
I've read this page a few times, and it seems like there may be something that needs to be set up on the server...? http://ca3.php.net/manual/en/function.mail.php
Thanks,
Brad
|
If your server is hosted on a dynamic IP or is blacklisted (see http://www.mxtoolbox.com/blacklists.aspx ), you must set up relaying: http://www.howtoforge.com/postfix_re...her_mailserver
Also check your mail log (in the /var/log/ directory) to find out what went wrong.
|

23rd January 2012, 15:08
|
|
Junior Member
|
|
Join Date: Nov 2011
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Thanks Falko,
I will try this when I am home this evening.
Blacklisted? What is that?
My server is just in my house. It's on my local network, and has access to the internet. Does that change anything?
Thanks,
Brad
|

24th January 2012, 02:03
|
|
Junior Member
|
|
Join Date: Nov 2011
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hi Falko.
I looked in that directory and the only file in there is "Statistics". I double clicked on it and it did not open. I went into Terminal and opened it with gedit, and there was nothing in the file. There are no other files in the mail folder.
Brad
|

24th January 2012, 14:59
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,591 Times in 2,443 Posts
|
|
Quote:
Originally Posted by mbrad
Blacklisted? What is that?
My server is just in my house. It's on my local network, and has access to the internet. Does that change anything?
|
Then you probably have a dynamic IP and should set up relaying.
|

25th January 2012, 02:19
|
|
Junior Member
|
|
Join Date: Nov 2011
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Thanks for the reply.
Just so I understand...
When you say dynamic IP, you mean the IP that my ISP gives me and not the IP of my server on my local network? I have put in a static IP for my server on my network.
Thanks,
Brad
|

25th January 2012, 17:13
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,591 Times in 2,443 Posts
|
|
Yes, I mean the server's public IP address which in your case is your router's public IP address (the IP your ISP assigns to you).
|
| Thread Tools |
|
|
| Display Modes |
Hybrid Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 11:21.
|
Recent comments
1 day 11 hours ago
1 day 13 hours ago
1 day 15 hours ago
1 day 16 hours ago
1 day 18 hours ago
1 day 19 hours ago
1 day 20 hours ago
2 days 12 hours ago
2 days 13 hours ago
2 days 17 hours ago