By gmasky on
I have setup Google apps for my domain name and it works just fine.
I have also setup my Drupal contact form to send mail to admin@mydomain.com (drupal apps account) as well as myname@gmail.com. I receive mail at my gmail account but not at my Google apps account.
Any help to resolve this will be highly appreciated.
Comments
correction
admin@mydomain.com (Google apps account)
I am not sure if this is
I am not sure if this is drupal's fault. I once configured google's apps and did not receive mail on google apps mail account. I had actually configured wrong google mail dns settings. Did you send an email to your admin@mydomain.com from another email account. Try doing that first. If it doesn't work then you need alter your mail dns . Reply if this doesn't work.
Ali Hammad Raza
WordsValley
Google Apps
The Google Apps account works fine while sending and receiving mail.It is configured correctly.
However when I use the Google apps account while configuring the Drupal website contact form I do not receive any mail. If I use a regular gmail account in the form, I receive mail.
Is it going into your junk
Is it going into your junk mail folder? What do your mail logs say?
I use google apps for almost all my email accounts and on many of my drupal sites and it works fine, but I use it with the SMTP module (i.e. I'm not sending mail outbound from my server, but through googles smtp service) -- http://drupal.org/project/smtp . I have a feeling that this cuts down on mail getting marked as junk. I had problems before sending to @yahoo, @hotmail, etc. because I was in a shared hosting environment and my server was often blacklisted due to work that others were doing on the server.
The following discussion and my comments about using the returnpath module may also be helpful:
http://drupal.org/node/59085#comment-206284
Not going to Junk folder
That is the first place I looked, it is not going into my google apps junk folder. I do not think it is a junk mail issue.
I was just reading this http://www.bluehostforum.com/showthread.php?t=6168
However I have not been able to resolve the problem as stated in this thread. I will give the smtp module a try.
SMTP module did the trick
I installed the smtp module with the following settings
server: smtp.gmail.com
port 465 (port 587 does not work)
username:username for google apps a/c
PW: password for google apps a/c
Thanks for the help
I just wanted to thank you.
I just wanted to thank you. This helped me fix my problem.
Turn off server email service for the domain
I ran into this problem, on a 6.x install and SMTP mail isn't updated to D6 yet - although that sounds like a good solution. If all of a specific domain's email is getting routed to Google apps, you can turn off the mail service for the specific domain (not the mail service on the server). This was simple in Plesk, can turn it off in the mail settings for the domain - not sure how other services would work. Removes the conflict of the domain snagging the mail before it gets routed out to gmail.
I think that might be my solution
I got a bunch of domains and the ones registered by my hosting company work fine. But anything I registered @ yahoo is getting screwed up with the contact form, I have my gmail settings at my hosting company's Dns zone files, but I go to yahoo and they have their own MX records going to Yahoo mail servers that you can't remove.
Assumed Solution:
-move all the settings to the yahoo settings page and see if that works
-or get rid of yahoo domains, because they recently raised the yearly rate by 3x, mmm options.
Solution to WebForm Module Sending email
I got my WebForm Module to send email, by making sure the sending to address was something other than my domain name used at my hosting server. This is also used if you are using Google Apps as your email server.
You see if you have a website say: www.bobsfish.com and your using bob@bobsfish.com.
Webform will try and send to yourself, and thats where things go bad. Your email system says, its my domain so why send this to myself and it just drops it.
But if you set your Webform sending email to say: bob@gmail.com - No problem it sends out just fine.
At least it did for me:
Using Drupal 6.4
cPanel on my shared website server running Apache
Godaddy as my DNS Host
Google Apps as my Email server
mis-configuration on cPanel
I just resolved the same issue for myself. It turns out to be a mis-configuration on cPanel when changing the MX entries. Here are the details: http://tianbai.org/blog/2009/08/fail-to-receive-emails-with-google-apps/. Hope it works for you as well.
Tian Bai | http://tianbai.org
I had high hopes for this solution
But I don't have that box checked in Cpanel. I'm using Drupal 6.13 and Cpanel, forwarding my mx records to google so I can use Gmail on my domain.
As others have experienced, I can send mail to a gmail account, but not to the same domain on Google apps, nor a different domain where the email is hosted by google.
So I don't think it's just a "hey this is the same server" thing. It seems to be google apps or at least google mail related.
Maybe I'll try the SMTP module and see if that helps. Otherwise I can always create a dummy gmail account and forward the emails automatically.
PHPMailer module worked great
I had to install the actual PHPMailer as well (duh), but that worked just fine after I did that. Here's the link for the module:
http://drupal.org/project/phpmailer
There are very good instructions for configuring things with google mail. It seems like that's what it was made for.
I am able to receive contact emails on the same domain as my drupal site, as well as send emails from the other google apps site using the contact form.
Victory!
J
worked for me too!
worked for me too!
PHP mailer was also the
PHP mailer was also the solution for me. Didn't had to use the SMTP-module to be able to send mails from and to google apps accounts.
Thank you soo much!
I tried both phpmailer and
I tried both phpmailer and smtp modules. Emails were received through Google Apps. However, the "from" field is always from email@mydomain.com and not the email address that the user originally put in the contact form.
Each time I reply to an email, I'm replying to myself. So I have to copy and manually paste the user's email address from one of the fields in the email header into the "to" field.
The from is always supposed
The from is always supposed to be from your domain otherwise you will get marked as spam. What you want is a proper reply-to set (which works in everything except gmail which seems to ignore it). Unfortunately drupal doesn't do this without a patch to the contact module - read http://drupal.org/node/366238#comment-1228416 for mine. (I posted fixes for both d5 and d6 in there)
remove domain from mydestination parameter
Wow, took all morning to discover this one-liner solution, which works if you're using Postfix:
remove your domain from the "mydestination" parameter in /etc/postfix/main.cf
This problem with my setup was that the Mail Transfer Agent (Postfix), when sending an email to my domain, was trying to send it "locally", which means giving it to another user on the Ubuntu machine. These emails never made it to the internet, so the MX records had no effect.
I'm running Drupal7, and have
I'm running Drupal7, and have run into this problem. I tried the fixes listed above (using phpmailer or smtp) but that doesn't seem to work, and these modules are still classed as "dev". There's really no solid answer in this thread that I see.
The problem is that when sendmail tries to send the mail, it resolves my domain name into 127.0.0.1 instead of sending to gmail. So basically I can send mail anywhere as long as it's not on my own domain. Then I end up with a bunch of failed emails in /var/mail/root Under some circumstances that might be okay to live with but I really need to be able to kick off emails to people on my domain.
Any ideas?
Edit: I've done more mucking around. It seems the problem stems from the way drupal is sending email. I tried to capture the output to the mail function with watchdog but I'm still a drupal newbie and it didn't work. Regardless, sending email to my own domain using the commandline sendmail -t works fine, but when its sent through drupal it chokes and tries to find the user on the local system. I guess later on I'll be doing some more reading through drupal core, but if anyone has any help that would be great. Specifically how to capture what drupal is trying to send or what weird configuration it's adding to the mail call that isn't present on the command line.
This was not Drupal's doing
This was not Drupal's doing at all. After a lot of searching I finally figured it out. I had to change my hostname to something else, if your hostname and your google apps domain are the same, sendmail tries to send locally.
PHP Mailer Worked!
I was trying to figure this out for weeks and php mailer module worked perfectly. I had a google apps account using gmail and drupal wouldn't let me send to my same domain name (from coolexample.com to steve@coolexample.com).
Great, it works for mee!
I use Google Apps and Webforms, and now using phpmailer it works to have mail from my website.
Thanks!!
No Limits