Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mail::Sendmail

Status
Not open for further replies.

alexv2

Programmer
Sep 22, 2005
14
US
I have been programing perl for a long time now and have my new site ( written in mod_perl. This is the first site I have done that sends email to users and not just to site administrators. Just to clarify I do NOT send spam from my site and never will but all my mail which is USER requested is getting marked as spam by most free mail services. This is a big problem for me.

I have written this with Mail::Sendmail and forking sendmail directly with the same result. My guess is it is something to do with the headers but I am not mail savvy enough to figure it out. Searching for anything to do with this topic is next to pointless as it returns way to much crap. Any input would be appreciated

Thanks in advance,
-Alexander
 
why not send mail to yourself and look at the headers.
Is there any chance that the reply address is "localhost"?
Many email services refuse mail that looks like it's been auto-generated and "localhost" is often a tell-tale sign of spam.

You could try sending a test email (just one!) to alexv2@spambob.com and then logging into to see if it will show it to you. It has a feature that will allow you to see the headers in the web page. It's easy to use, you just type "alexv2" into the first box and click "get messages".



Trojan.
 
Only if applicable:- It may be that the domain in etc/postfix/main.cf does not have a resolvable myhostname = ... it could even be commented out

I had this problem a short while back and changing this to something resolvable worked a treat

This bolsters Trojan's suggestion that it would then appear as localhost (not resolvable) and therefore ... not work!

But all of this may be of no use to you at all!!! But i hope it is... :)


Kind Regards
Duncan
 
Ok so from all the input I got here I went through and tried a few things. I double checked the host thing and it is not going out as localhost but as thehobbypit.com which is good. So then I looked at other headers it might be using spambob (thanks Trojan) and still nothing.

Now the only problem is when I send mail from the server using perl. If I use a mail client like Outlook Express it goes through fine and does not get set as spam. I even tried spoofing the headers to mimic what OE sends but still no luck. Thanks for the fast feedback and I will keep plugging away. If I figure out what it is I will post it here.
 
Just an update. I have not figured this one out as of yet. Here are the headers that are getting sent out and like I said I am no guru at mail so it looks good to me.

Return-Path: <***HIDDEN***@thehobbypit.com>
Delivered-To: metapeop-spambob:com-alexv2@spambob.com
X-Envelope-To: alexv2@spambob.com
Received: (qmail 19968 invoked from network); 22 Sep 2005 22:51:17 -0000
Received: from unknown (HELO thehobbypit.com) (67.41.83.71)
by qs742.pair.com with SMTP; 22 Sep 2005 22:51:17 -0000
Received: from thehobbypit.com ([192.168.1.55])
by thehobbypit.com (8.13.4/8.13.4) with SMTP id j8MMrMU2021815
for <alexv2@spambob.com>; Thu, 22 Sep 2005 15:53:25 -0700
Message-Id: <***HIDDEN***@thehobbypit.com>
Subject: Whatever sent you an invite to TheHobbyPit.com
Mime-Version: 1.0
Content-Type: text/html
Reply-To: ***HIDDEN***@thehobbypit.com
To: alexv2@spambob.com
Content-Transfer-Encoding: quoted-printable
Date: Thu, 22 Sep 2005 15:51:13 -0700
From: ***HIDDEN***@thehobbypit.com

I have gotten rid of the HTML as well and tryed sending as plain/text but that did not help. So once again I am running out of places to look anyone else have any ideas?

-Alexander
 
Is it perhaps the content of the email that's triggering the spam filters?

Mike

You cannot really appreciate Dilbert unless you've read it in the
original Klingon.

Want great answers to your Tek-Tips questions? Have a look at faq219-2884

 
I thought that may be it as well but I tested just a plain text email with just some rambling in it and got the same thing. Even changed the mail account it was sending from to see if that had anything to do with it.

-Alexander
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top