Sending email from same domain with Mandrill and Google Apps

October 23, 2014 3.2k views

I have configured postfix to send email with mandrillapp for mydomain.com, I have also emails @mydomain.com configured with Google Apps, and all MX entries from google. How do I get the PHP form to send emails from someemail@mydomain.com to someotheremail@mydomain.com?

  • This is the error message, have edited "mydomain.com":

    From MAILER-DAEMON  Thu Oct 23 21:00:16 2014
    Return-Path: <>
    X-Original-To: www-data@mydomain.com
    Delivered-To: www-data@mydomain.com
    Received: by mydomain.com (Postfix)
            id B62D71410B4; Thu, 23 Oct 2014 21:00:16 -0200 (BRST)
    Date: Thu, 23 Oct 2014 21:00:16 -0200 (BRST)
    From: MAILER-DAEMON@mydomain.com (Mail Delivery System)
    Subject: Undelivered Mail Returned to Sender
    To: www-data@mydomain.com
    Auto-Submitted: auto-replied
    MIME-Version: 1.0
    Content-Type: multipart/report; report-type=delivery-status;
    Message-Id: <20141023230016.B62D71410B4@mydomain.com>
    This is a MIME-encapsulated message.
    Content-Description: Notification
    Content-Type: text/plain; charset=us-ascii
    This is the mail system at host mydomain.com.
    I'm sorry to have to inform you that your message could not
    be delivered to one or more recipients. It's attached below.
    For further assistance, please send mail to postmaster.
    If you do so, please include this problem report. You can
    delete your own text from the attached returned message.
                       The mail system
    <contato@mydomain.com>: unknown user: "contato"
    Content-Description: Delivery report
  • Hi Droopi, I'm nterested to know whether you have an outcome?

    Not sure if your intention is similar to mine, with the above, but I've been wanting to use Mandril to track my sent Google Apps mail. (Using the Mandril smtp server: smtp.mandrillapp.com

    I've tried to edit my Googles Apps User Smtp within my Google Apps account itself, without using a third party email client. (Admin > Apps > Google Apps > Settings for Gmail > Advanced settings >

    1. Allow per-user outbound gateways
      Locally applied - Allow users to send mail through an external SMTP server when configuring a "from" address hosted outside your email domains. Mail sent via external SMTP will circumvent your outbound gateway.

    2. Outbound gateway
      Locally applied
      Route outgoing emails to the following SMTP server:
      If you authenticate outgoing email using an SPF record or DKIM, you may need to update your configuration.

    Note. I also went to my domain provider and added two TTS records, DKIM & SPF for Mandril to verify the domain.

    Am I dreaming here.... or could this work? And how...? I don't think it is working for me...


Be the first one to answer this question.