PHP mail ... Not working to own domain

Discussion in 'Web Design and Development' started by sfh, Mar 14, 2009.

  1. sfh macrumors regular

    May 27, 2008
    Sacramento CA
    We have a separate mail server from our hosting server.
    So any emails sent from the site to anyone in our domain don't go through.
    ( sends form to and it doesn't work) sends form to works)

    does anyone have experience with this type of situation and a fix?

    its a joomla site so I tried changing the mail settings to sendmail and smtp but neither worked.
  2. angelwatt Moderator emeritus


    Aug 16, 2005
    I would guess there may be a setting on the mail server that is causing this. Are the email addresses for your domain registered in some way? Yahoo for instance checks yahoo email addresses against their registration to see if it's a real email address. That's the only thing I can think of. I've done the same as you're doing and haven't had any issues.
  3. SrWebDeveloper macrumors 68000


    Dec 7, 2007
    Alexandria, VA, USA
    Assuming your MTA is sendmail and there are no issues with firewall or anti-spam filters (and the address you're testing is a valid mail account) then ask your system admin to ensure the following (intended for Linux):

    [FONT=Arial, Helvetica, sans-serif]Edit the /etc/mail/access file to include IP addresses or domains for which you will relay mail. By default, no other hosts other than localhost can send mail to outside destinations. If you want to provide outbound smtp functionality to other computers on your network, include the network addresses for these other computers here. If you want to allow relaying from hosts outside of your network, enter their IPs or domains here.

    For example:

    localhost.localdomain RELAY
    localhost RELAY RELAY

    If you only want to relay mail for users who authenticate with a username and password, use SMTP Authentication.
    To enable your changes, run the following as root: # makemap hash /etc/mail/access.db < /etc/mail/access

Share This Page