Server set up for email?

Discussion in 'Server Operation' started by mbrad, Jan 22, 2012.

  1. mbrad

    mbrad New Member

    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-server-fedora-15-x86_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
     
  2. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    Yes.

    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_relaying_through_another_mailserver

    Also check your mail log (in the /var/log/ directory) to find out what went wrong.
     
  3. mbrad

    mbrad New Member

    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
     
  4. mbrad

    mbrad New Member

    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
     
  5. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    Then you probably have a dynamic IP and should set up relaying.
     
  6. mbrad

    mbrad New Member

    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
     
  7. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    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).
     

Share This Page