#1  
Old 22nd January 2012, 16:25
mbrad mbrad is offline
Junior Member
 
Join Date: Nov 2011
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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
Reply With Quote
Sponsored Links
  #2  
Old 23rd January 2012, 11:11
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Quote:
Originally Posted by mbrad View Post
I'm wondering, does this setup include the ability to use PHP to send emails from the server?
Yes.

Quote:
Originally Posted by mbrad View Post
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.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 23rd January 2012, 15:08
mbrad mbrad is offline
Junior Member
 
Join Date: Nov 2011
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
Reply With Quote
  #4  
Old 24th January 2012, 02:03
mbrad mbrad is offline
Junior Member
 
Join Date: Nov 2011
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
Reply With Quote
  #5  
Old 24th January 2012, 14:59
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Quote:
Originally Posted by mbrad View Post
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.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #6  
Old 25th January 2012, 02:19
mbrad mbrad is offline
Junior Member
 
Join Date: Nov 2011
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
Reply With Quote
  #7  
Old 25th January 2012, 17:13
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
 
Default

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).
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail -Ubuntu 8.04 c4rdinal HOWTO-Related Questions 112 23rd August 2011 10:49
Can't receive mails baicunko Server Operation 12 3rd August 2011 22:02
ISPConfig 3 Installation - Postfix queue stuck andrew971218 Installation/Configuration 21 15th July 2011 14:42
Not working emails (DNS and postfix problem?) shekiman Installation/Configuration 9 1st March 2011 16:25
Can't start apache Musty Server Operation 12 9th March 2008 13:58


All times are GMT +2. The time now is 05:32.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.