Mails going to Spam

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
kkonline
Forum Contributor
Posts: 251
Joined: Thu Aug 16, 2007 12:54 am

Mails going to Spam

Post by kkonline »

Hi,
I have swiftmailer class installed on my server and was working fine with emails delivered to inbox... but recently all the emails are just coming in spam. What can be done.?

Basically I want to send an attachment to gmail/yahoo type email inbox . Is there any sample tested code which I can test? I used the standard codes available on the swiftmailer site but no use ...
hoopplaya4
Forum Newbie
Posts: 9
Joined: Wed Dec 17, 2008 6:16 pm

Re: Mails going to Spam

Post by hoopplaya4 »

kkonline
Forum Contributor
Posts: 251
Joined: Thu Aug 16, 2007 12:54 am

Re: Mails going to Spam

Post by kkonline »

Hi,
I am using bind9 on debian etch vps server. Have postfix installed. I noticed one thing that incase a mail is sent with smtp server localhost it goes to spam but incase it is sent from any other smtp server like gmail for example then it reaches inbox.
xxx.x.xxx.rev

Code: Select all

$TTL 1d ;
$ORIGIN xxx.x.xxx.IN-ADDR.ARPA.
@       IN      SOA     ns1.net4india.com.    (
                                       2007011501
                                       7200
                                       120
                                       2419200
                                       604800
)
        IN      NS      ns1.net4india.com.
        IN      NS      ns2.net4india.com.
1       IN      PTR     ns1.net4india.com.
2       IN      PTR     ns2.net4india.com.
mydomain.org.db

Code: Select all

;
; BIND data file for mysite.org
;
$TTL    604800
@       IN      SOA     mysite.org. (
                            2007011501         ; Serial
                                  7200         ; Refresh
                                   120         ; Retry
                               2419200         ; Expire
                                604800)        ; Default TTL
;
@       IN      NS      ns1.net4india.com.
@       IN      NS      ns2.net4india.com.
mysite.org.    IN      MX      10      mail.mysite.org.
mysite.org.    IN      A       xxx.x.xxx.xxx
www                     IN      CNAME   mysite.org.
mail                    IN      A       xxx.x.xxx.xxx
ftp                     IN      CNAME   mysite.org.
mysite.org.         IN      TXT     "v=spf1 ip4:xxx.x.xxx.xxx a mx ~all"
mail                    IN      TXT     "v=spf1 a -all"
Your suggestions required on the same
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: Mails going to Spam

Post by Chris Corbyn »

Sounds as though you're blacklisted. It may be the case that your IP itself is not blacklisted, but your entire /24 is blocked - all too common with many webhosts (including "quality" hosts like Amazon EC2) :(
kkonline
Forum Contributor
Posts: 251
Joined: Thu Aug 16, 2007 12:54 am

Re: Mails going to Spam

Post by kkonline »

HI Chris,
I understand your point. Is there any way I can make localhost replace by mysite.org and then try; may be it will go into the inbox then. Incase I need to do this change should I change the Postfix configurations?

Also since past few days it was going into inbox, only couple of days back started sending all mails to spam. There has to be a way out; kindly please suggest.
Post Reply