Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am using Mandrill mail server for sending emails to users and I have my own domain added to Mandrill to send out mails. Suppose I have configured Mandrill to use info@mydomain.com to send out emails and then it should send mails which it does. And any reply sent to info@mydomain.com will be forwarded to traditional mailboxes.

Now I have a doubt on receiving emails via Mandrill, once I add an inbound domain and route its path to my desired location, it should be ready to receive mails. Well I have read similar questions on Stack Overflow and it has been said that if someone wants to use traditional mailboxes for receiving mails then its better not to use Mandrill or use a custom sub domain.

Also it has been said that it is not possible for Mandrill to receive mail which is already configured or forwarded to some other traditional mailboxes.

So I added a sub domain to Mandrill’s inbound domain like inbound.mydomain.com and receive emails on this domain which will be received by Mandrill and will be send to the desired route which we set up. Now I will have to change my sender domain with the same that is inbound.mydomain.com to make users reply to this domain which will be received at Mandrill. What I want is :

  1. Send mails using info@mydomain.com

  2. Receive mails to my location using inbound domains

share|improve this question
    
what should be done? –  RoR May 9 at 6:15
    
Why don't you ask their support? This is pretty far out of scope for serverfault. –  devicenull May 10 at 20:32
    
i was told to put this post here –  RoR May 10 at 20:38
    
and now i am getting negative votes instead of answers –  RoR May 10 at 20:39

1 Answer 1

Yes, it's possible to receive emails using Mandrill. I've recently set up something similar, although more like a reverse case of what you want:

  1. First I set up Mandrill to send email from info@email.mydomain.com Setting up sending domain.
  2. Next I set up the same domain for inbound emails Inbound email processing.
  3. I created a webhook on our server to process events from Mandrill, it looks something like this:

    (defn forward-email [request] (doseq [event (get-inbound-events request)] (let [email {:to "info@mydomain.com" :from-address "info@email.mydomain.com" :from-display (-> event :msg :from_name) :reply-to (-> event :msg :from_email) :subject (-> event :msg :subject) :body (-> event :msg :text)}] (send-email email))))

    I'm not sure how versed you are in Clojure, but the basic gist is that you extract the information from the request (use Webhook structure for reference) and forward it to another email address using the SMTP from step 1. It's important to note that you are not sending it on behalf of someone else, you are just setting their address as a "Reply To".

  4. In my case info@mydomain.com is a Google Apps address, so I just use Gmail as my inbox

  5. Finally, I added info@email.mydomain.com as my sending address in Gmail

So I send all emails from info@email.healthunlocked.com, but receive all emails on info@mydomain.com. The advantage is that I'm not limited by the Gmail sending quota, but can still use Gmail to manage the emails.

You can also use Desk with this set up really easily, and it will even automatically recognise "Reply To" in the header and send an auto-acknowledgement, even if it was forwarded from Mandrill. You will need to set it to poll from info@mydomain.com and send from info@email.mydomain.com as well.

share|improve this answer
    
what is Desk? and how are you able to forward email to your gmail. Does you server host its own smtp server as well. –  Muhammad Umer Jul 18 at 22:59
    
1. What is Desk? 2. We forward email using Mandrill API, which is our SMTP. –  Shagglez Jul 24 at 17:14

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.