Problem with Webform and getting email notifications

Events happening in the community are now at Drupal community events on www.drupal.org.
gilcreque's picture

I considered posting this in the issue queue but it's been open for a year and a half and thought maybe someone here has fixed it.

I'm working on a contact page using Webform and have it set to email the submissions to appropriate email addresses. The problem is that they aren't being sent. I tried the workaround of blanking the From name but that didn't work either. I should have prefaced this with the fact that I have received other emails (such as the super user login info) just fine.

The main difference I think is that the emails that are getting through from Drupal are using the php mail function (which I believe uses sendmail) where as the Webform emails attempt to use postfix. While using postfix it attempts to make a SMTP connection to the servers of the To: address. mail.log file entry below

Any ideas?

P.S. this is all being done on my Mac via MAMP

Jun 22 16:22:01 cyberbrainhub postfix/master[5215]: daemon started -- version 2.5.5, configuration /etc/postfix
Jun 22 16:22:01 cyberbrainhub postfix/qmgr[5217]: 20F0BC803B9: from=<gilcreque@cyberbrainhub.gmrs.polling.net>, size=999, nrcpt=1 (queue active)
Jun 22 16:22:01 cyberbrainhub postfix/pickup[5216]: 66BA4C807CC: uid=501 from=<gilcreque>
Jun 22 16:22:01 cyberbrainhub postfix/cleanup[5218]: 66BA4C807CC: message-id=<20100622202201.66BA4C807CC@cyberbrainhub.gmrs.polling.net>
Jun 22 16:22:01 cyberbrainhub postfix/qmgr[5217]: 66BA4C807CC: from=<gilcreque@cyberbrainhub.gmrs.polling.net>, size=925, nrcpt=1 (queue active)
Jun 22 16:22:01 cyberbrainhub postfix/smtp[5221]: connect to gmail-smtp-in.l.google.com[74.125.45.27]:25: Connection refused
Jun 22 16:22:01 cyberbrainhub postfix/smtp[5221]: connect to alt1.gmail-smtp-in.l.google.com[209.85.229.27]:25: Connection refused
Jun 22 16:22:01 cyberbrainhub postfix/smtp[5222]: connect to gmail-smtp-in.l.google.com[74.125.45.27]:25: Connection refused
Jun 22 16:22:01 cyberbrainhub postfix/smtp[5221]: connect to alt2.gmail-smtp-in.l.google.com[209.85.129.114]:25: Connection refused
Jun 22 16:22:01 cyberbrainhub postfix/smtp[5222]: connect to alt1.gmail-smtp-in.l.google.com[209.85.229.27]:25: Connection refused
Jun 22 16:22:01 cyberbrainhub postfix/smtp[5221]: connect to alt3.gmail-smtp-in.l.google.com[209.85.135.114]:25: Connection refused
Jun 22 16:22:01 cyberbrainhub postfix/smtp[5222]: connect to alt2.gmail-smtp-in.l.google.com[209.85.129.114]:25: Connection refused
Jun 22 16:22:01 cyberbrainhub postfix/smtp[5221]: connect to alt4.gmail-smtp-in.l.google.com[74.125.53.27]:25: Connection refused
Jun 22 16:22:01 cyberbrainhub postfix/smtp[5222]: connect to alt3.gmail-smtp-in.l.google.com[209.85.135.114]:25: Connection refused
Jun 22 16:22:01 cyberbrainhub postfix/smtp[5222]: connect to alt4.gmail-smtp-in.l.google.com[74.125.53.27]:25: Connection refused
Jun 22 16:22:01 cyberbrainhub postfix/smtp[5221]: 20F0BC803B9: to=<gilcreque@gmail.com>, relay=none, delay=3624, delays=3623/0.3/0.23/0, dsn=4.4.1, status=deferred (connect to alt4.gmail-smtp-in.l.google.com[74.125.53.27]:25: Connection refused)
Jun 22 16:22:01 cyberbrainhub postfix/smtp[5222]: 66BA4C807CC: to=<gilcreque@gmail.com>, relay=none, delay=0.68, delays=0.44/0.01/0.23/0, dsn=4.4.1, status=deferred (connect to alt4.gmail-smtp-in.l.google.com[74.125.53.27]:25: Connection refused)
Jun 22 16:23:01 cyberbrainhub postfix/master[5215]: master exit time has arrived

Comments

Probably blacklisted (not your fault)

mediagearhead's picture

If you are testing this at home then I would probably attribute this to you being on a dynamic IP address. I had a similar issue where I could not test a mail server from home because there was a block on my IP. Basically Time Warner supplies Spamhaus and other anti spam agencies with their dynamic IP range to allow them to be listed easily. It is a problem but I would recommend reconfiguring the email sending to use an smtp email account not on a dynamic IP address.

Of course I could be wrong and you are sending from an email account on a typical server but from what you have stated this is my conclusion.

check the sender's domain

modulist's picture

A common mistake is to have the domain on the site's email (e.g. admin@webdeveloper.com) as different from the site's domain (webmaster@clientsdomain.com). Your outbound email will fail a reverse lookup test, which is a key test with most antispam software. The email will bounce, and the only way you'll know is if you receive bounced email notifications.

It's especially easy to make this mistake if you're migrating from a development server to a production server with different domains.

@modulist

Thanks for the info guys.

gilcreque's picture

Thanks for the info guys. I'm still working on getting this worked out. I appreciate the input.

Florida

Group organizers

Group categories

Florida Topics

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week