swiftmailer with hotmail and gmail accounts PROBLEMS

Swift Mailer is a fantastic library for sending email with php. Discuss this library or ask any questions about it here.

Moderators: Chris Corbyn, General Moderators

Post Reply
brunobraga
Forum Newbie
Posts: 6
Joined: Fri Jun 01, 2007 7:43 pm

swiftmailer with hotmail and gmail accounts PROBLEMS

Post by brunobraga »

Hi... First off all let me thank you for this great product. it really simplifies things up.

Well.. lets go directly to my problem, shall we..:)

Im currently developing a newsletter module for my CMS, and i'm having some troubles sent mails to gmail and hotmail.
they allways end up in junk folder:(

i've already set the dns for the SPF record. (my domain is websoft.com.pt and its on a shared server.)
if you check this link ( http://www.dnsstuff.com/tools/dnsreport ... oft.com.pt ) you will see that the SPF passes the test.

Well... if i check the test mail that i sent to gmail.. in the headers, SPF has a SOFTFAIL, (but it passes on the check above).. and perhaps that why my emails are sent to junk folder in gmail and hotmail. (the email also has inline images)

GMAIL HEADERS:

Delivered-To: bmpbraga@gmail.com
Received: by 10.78.172.17 with SMTP id u17cs60763hue;
Sat, 2 Jun 2007 16:33:01 -0700 (PDT)
Received: by 10.82.108.9 with SMTP id g9mr3951948buc.1180827181232;
Sat, 02 Jun 2007 16:33:01 -0700 (PDT)
Return-Path: <websoft@websoft.com.pt>
Received: from server1.rededelta.net ([81.92.197.199])
by mx.google.com with ESMTP id k10si864273nfh.2007.06.02.16.33.00;
Sat, 02 Jun 2007 16:33:01 -0700 (PDT)
Received-SPF: softfail (google.com: domain of transitioning websoft@websoft.com.pt does not designate 81.92.197.199 as permitted sender)
Received: (qmail 22200 invoked from network); 3 Jun 2007 00:33:00 +0100
Received: from server.sitedinamico.com (HELO ?81.92.197.193?) (81.92.197.193)
by server.sitedinamico.com with SMTP; 3 Jun 2007 00:33:00 +0100
Return-Path: <websoft@websoft.com.pt>
To: bruno braga <bmpbraga@gmail.com>
From: websoft <websoft@websoft.com.pt>
Reply-To: websoft <websoft@websoft.com.pt>
Subject: flash extended dropdown menu pro
Date: Sun, 03 Jun 2007 00:32:59 +0100
X-LibVersion: 3.2.4_4
MIME-Version: 1.0
Content-Type: multipart/related;
boundary="_=_swift-15893773244661fe2be1aaf0.74739221_=_"
Content-Transfer-Encoding: 7bit
Message-ID: <20070602233300.17840.76960257.swift@websoft.com.pt>

This is a message in multipart MIME format. Your mail client should not
be displaying this. Consider upgrading your mail client to view this
message correctly.
--_=_swift-15893773244661fe2be1aaf0.74739221_=_
Content-Type: multipart/alternative;
boundary="_=_swift-9060166944661fe2be1d767.23870453_=_"
Content-Transfer-Encoding: 7bit
....


Perhaps something is missing me...
Could someone give me some directions, on what im doing wrong..
Any help is really apreciated.

Best regards and thanks in advanced.


(btw, sorry about my english )
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

You have no reverse DNS. This is pretty important on mail servers. If the server sends mail it should be possible to get a name from it's IP. Your server(s) do not do this. Make sure you have a postmaster@websoft.com.pt address which functions too.
DNSStuff wrote:ERROR: None of your mail server(s) seem to have reverse DNS (PTR) entries (I didn't get any responses for them). RFC1912 2.1 says you should have a reverse DNS for all your mail servers. It is strongly urged that you have them, as many mailservers will not accept mail from mailservers with no reverse DNS entry. You can double-check using the 'Reverse DNS Lookup' tool at the DNSstuff site (it contacts your servers in real time; the reverse DNS lookups in the DNS report use our local caching DNS server).
brunobraga
Forum Newbie
Posts: 6
Joined: Fri Jun 01, 2007 7:43 pm

Post by brunobraga »

d11wtq wrote:You have no reverse DNS. This is pretty important on mail servers. If the server sends mail it should be possible to get a name from it's IP. Your server(s) do not do this. Make sure you have a postmaster@websoft.com.pt address which functions too.

Well... since my domain is on a shared servers i have no way of making the PTR, right?
i found this:
an IP address can only point to one domain name (one PTR record per IP). You can obviously host multiple domains on a single IP, but an IP can only point back to one of them.
the PTR for my host is 193.197.92.81.in-addr.arpa server.sitedinamico.com. [TTL=7200]

So i cannot have a PTR for my domain name, right?:(

Is there any other way of setting this... some dns service provider.. or anything else!?

Best regards,
Bruno
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

It's the mail servers that have the problem, not your domain name. What'd odd is that DNS Stuff has now picked up the PTR entries. There must have been a problem before. It doesn't matter if the reverse DNS is not the same as your domain name :)

What's server 81.92.197.199? That's the server that's causing your SPF record to fail. You only allow A records, MX records and PTR records (this seems wrong by the way... PTR isn't much use in SPF). Your A record is 81.92.197.193, the MX record appears to point to the same server 81.92.197.193, yet mail is being sent from 81.92.197.199?

<off-topic>
Why have you got multiple NS records pointing to the same IP address? If your name server goes down then nobody will be able to connect to you. Same for mail, you'll physically lose mail into the ether with only one MX record.
</off-topic>

The DNS stuff check only checks that you have a SPF record... it does not verify that it is correct.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

This looks fishy too:

Code: Select all

w3style.co.uk:/srv/www/trunk.swiftmailer.org# ping websoft.com.pt
PING websoft.com.pt (81.92.197.193) 56(84) bytes of data.
64 bytes from server.sitedinamico.com (81.92.197.193): icmp_seq=1 ttl=56 time=34.5 ms

--- websoft.com.pt ping statistics ---
2 packets transmitted, 1 received, 50% packet loss, time 999ms
rtt min/avg/max/mdev = 34.517/34.517/34.517/0.000 ms
w3style.co.uk:/srv/www/trunk.swiftmailer.org# ping server.sitedinamico.com
ping: unknown host server.sitedinamico.com
w3style.co.uk:/srv/www/trunk.swiftmailer.org#
The rDNS definition does not actually exist. You might want to let your host know about that ;)
brunobraga
Forum Newbie
Posts: 6
Joined: Fri Jun 01, 2007 7:43 pm

Post by brunobraga »

trying to solve this out..
be in contact real soon..

just want to say thanks for your real fast replies.

BEst regards,
Bruno Braga
Post Reply