Results 1 to 5 of 5
  1. #1
    Join Date
    Jun 2001
    United Kingdom

    Problems sending emails to gmail

    Customer is having real problems sending emails to mainly gmail / gmail relay addresses.

    Setup is that the apache server sends email via Sendmail from within an application but "normal" email is hosted using Office 365 - only problems seem to be with email sent from the server and not from Offiec 365.

    SPF record has been set up to allow Office 365 to work but does one need to be set to allow the server to send?

    When I look at mail logs I see ctladdr=<[email protected]> as the sending address. Current SPF record shows:

    "v=spf1 ip4:XXX.XXX.XXX.XXX ip4:XXX.XXX.YYY.XXX ~all"

    Does this need an entry for or it automatically covered under the main entry for

    If not, what else could cause this? I get the feeling this is a DNS issue but not sure what to try?


  2. #2
    Join Date
    May 2009

  3. #3
    It looks like that the script does not have "From" header specified hence it is sending email using [email protected] It is a best practice to specify from address in the script it self. Also, you will need to make sure that you have allowed your webserver's IP address in SPF record otherwise your outgoing emails via script may be flagged as spam.

  4. #4
    Create a SPF record here with a wizard:
    Then add it to your DNS records, check your reverse dns & any blacklistings here:
    English & Spanish Ecards

  5. #5
    Join Date
    May 2009
    Italy - Rome
    Try to install suphp, suexec, php5-mailheader module of php to trace better the email source like cpanel do.

    You can also set a dedicate php.ini in each vhost/domain and force sendmail to use smtp or a custom/fixed "From:"

Similar Threads

  1. Problem with sending emails from our serverto gmail
    By hamed niki in forum Hosting Security and Technology
    Replies: 21
    Last Post: 06-29-2009, 07:22 AM
  2. Replies: 3
    Last Post: 02-18-2008, 02:55 PM
  3. Problems Sending Emails
    By otisdog in forum Reseller Hosting
    Replies: 28
    Last Post: 12-26-2007, 02:46 PM
  4. How can I know how is sending emails?
    By Costaud in forum Dedicated Server
    Replies: 4
    Last Post: 05-09-2007, 02:47 PM
  5. problems sending emails with php script
    By man_mm in forum Web Design and Content
    Replies: 7
    Last Post: 03-22-2006, 05:11 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts