Send a mail without going to spam

This is a discussion on Send a mail without going to spam within the PHP Language forums, part of the PHP Programming Forums category; Sanders Kaufman wrote: > Jerry Stuckle wrote: > >> You are not relaying them, then. You are acting as ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #21 (permalink)  
Old 09-17-2007
Jerry Stuckle
 
Posts: n/a
Default Re: Send a mail without going to spam

Sanders Kaufman wrote:
> Jerry Stuckle wrote:
>
>> You are not relaying them, then. You are acting as their mail MTA.

>
> That's what MTA's do - they relay mail.
> You can't be an MTA without relaying mail.
> If you do - you're a POP.
>
>> And NorTel's intranet servers are not publicly available. Nor are
>> GTE's. I don't know about your clients.

>
> That depends on your defintion of "publicly available".


MTA's are capable of relaying. But if they are configured correctly
they do not, except to intranets. Spammers love those which are
configured as open relays. They have lists of them all over the world.

And POP refers to Post Office Protocol - a protocol for RETRIEVING
messages. POP servers by themselves are not capable of receiving email
using the SMTP protocol (the one used for sending mail on the internet).
You need an MTA to receive the email and deliver it to the POP server.


--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Reply With Quote
  #22 (permalink)  
Old 09-17-2007
Jerry Stuckle
 
Posts: n/a
Default Re: Send a mail without going to spam

RageARC wrote:
> Sanders Kaufman:
>> It may cost a nickel or two, but sending your mail out through a third
>> party SMTP server that uses SSL, instead of your hosting providers
>> default mail relay may allow the mail to go through.

>
> Can you tell me where I can get access to one?
>
> Satya:
> Does it send without going to spam box? This is for a job as well ;).
>


Probably not. The most common reason for email going into spam
mailboxes is incorrect headers in the email - especially FROM: headers.
This can be caused by incorrect PHP code (or PHP configuration), an
incorrect MTA configuration, or a conflict between the MTA's headers and
the PHP headers (i.e. sending mail from www.example.com and saying it's
from satya@example.org).

Other spam filters look at the sending MTA, and if it's from a dynamic
address (most often home users), flag it as spam. (see below)

Less often, particularly if you have a good hosting company, email from
a server can be flagged as spam because someone else on your server has
sent spam and caused the server to be blacklisted. A good hosting
company will cancel the account immediately, stopping the spam, and the
server will be taken off the blacklists within 24-48 hours.

BTW - When you set up to send email from your home machine (i.e. MS
Outlook, Thunderbird, etc.) you need to specify a server - typically
your ISP or hosting company. Even though your home computer would be on
a dynamic IP address, the ISP or hosting company's server is not - and
that is the one the email is coming from.

So the first place to start is to examine the headers and compare a
working one with one flagged as spam (preferably from the same server).
Investigate any differences.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Reply With Quote
  #23 (permalink)  
Old 09-18-2007
Sanders Kaufman
 
Posts: n/a
Default Re: Send a mail without going to spam

Jerry Stuckle wrote:
> Sanders Kaufman wrote:


> MTA's are capable of relaying. But if they are configured correctly
> they do not, except to intranets. Spammers love those which are
> configured as open relays. They have lists of them all over the world.


I like the way you wobble back and forth on that.
It's not a realy - except when it is.

And then that slick way you seguay from relays, to open relays - as if
all relays were open.

That last, of course, is why I suggested that the OP use an SSL secured
mail relay.

> And POP refers to Post Office Protocol - a protocol for RETRIEVING


Actually, that's just one definition in just one context. In fact, POP
is an engineering term, not limited to the email, that means
"Point-of-Presence".

Thus, like I said a Message Transfer Agent that doesn't transfer (relay)
the messages is just a POP.




> messages. POP servers by themselves are not capable of receiving email
> using the SMTP protocol (the one used for sending mail on the internet).
> You need an MTA to receive the email and deliver it to the POP server.


Hmmm - if only there were an engineering term to describe that "receive
and deliver" process; a word that engineers have been using since the
first bucket brigade. Something like "replay" but without the sports
metaphor?
Reply With Quote
  #24 (permalink)  
Old 09-18-2007
Sanders Kaufman
 
Posts: n/a
Default Re: Send a mail without going to spam

Rik Wasmus wrote:
> On Mon, 17 Sep 2007 15:05:50 +0200, RageARC <ragearc@gmail.com> wrote:
>
>> LOL $25 + $100 is $400 xD?

>
> (12 * 25) + 100 is.
>
> You're almost better of with your own VPS though.


Yeah - if you want to secure your email, outsourcing it is not the best
strategy for success.
Reply With Quote
  #25 (permalink)  
Old 09-18-2007
Sanders Kaufman
 
Posts: n/a
Default Re: Send a mail without going to spam

C. wrote:
> On 16 Sep, 21:55, Sanders Kaufman <bu...@kaufman.net> wrote:
>> RageARC wrote:
>>> I've made a script that sends mails, and it sends mails correctly for
>>> gMail, but not for Hotmail. What happens is that on Hotmail the mails
>>> are not even received! Nor on spam box, nor on inbox.

> <snip>
>> It may cost a nickel or two, but sending your mail out through a third
>> party SMTP server that uses SSL, instead of your hosting providers
>> default mail relay may allow the mail to go through.

>
> ?


If you're on a black-hole list, it's easier to find a new relay than to
try to fight the most powerful force in the universe. :)

If you use SSL to connect to the SMTP relay, your login credentials
can't easily be "sniffed".


> Certainly you will have problems sending mail from a known DHCP
> address (on Unix/Linux try a null mailer going through a registered
> MX) if you have an MX address on the origin already, make sure you've
> got a sensible SPF enabled in your DNS.


SPF?


> At the end of the day, though, the Hotmail service is worth exactly
> what most users pay for it. And don't expect any help from them as to
> why mail gets detected as SPAM.


When I first started participating in Usenet Political discussions, I
used my hotmail address - then one day I tried to login and got a "go to
hell, you spammer" denial message. Same thing with Yahoo.

Screw 'em, both.

Reply With Quote
  #26 (permalink)  
Old 09-18-2007
Jerry Stuckle
 
Posts: n/a
Default Re: Send a mail without going to spam

Sanders Kaufman wrote:
> Jerry Stuckle wrote:
>> Sanders Kaufman wrote:

>
>> MTA's are capable of relaying. But if they are configured correctly
>> they do not, except to intranets. Spammers love those which are
>> configured as open relays. They have lists of them all over the world.

>
> I like the way you wobble back and forth on that.
> It's not a realy - except when it is.
>


Nope, I stand that most public MTA's are not relays.

> And then that slick way you seguay from relays, to open relays - as if
> all relays were open.
>


I never said all relays were open relays. Just that spammers like the
ones out there.

> That last, of course, is why I suggested that the OP use an SSL secured
> mail relay.
>


Which has absolutely no effect on whether the relay is secure or not.
All SSL does is encrypt the data.

>> And POP refers to Post Office Protocol - a protocol for RETRIEVING

>
> Actually, that's just one definition in just one context. In fact, POP
> is an engineering term, not limited to the email, that means
> "Point-of-Presence".
>


When dealing with email POP is not a "Point-of-Presence". Check your
terminology to understand what it means - if you are capable, of course.

> Thus, like I said a Message Transfer Agent that doesn't transfer (relay)
> the messages is just a POP.
>
>


No. Two entirely different things. None of the MTA's are capable of
providing POP services, and none of the POP servers are capable of
handling SMTP traffic.

>
>
>> messages. POP servers by themselves are not capable of receiving
>> email using the SMTP protocol (the one used for sending mail on the
>> internet). You need an MTA to receive the email and deliver it to the
>> POP server.

>
> Hmmm - if only there were an engineering term to describe that "receive
> and deliver" process; a word that engineers have been using since the
> first bucket brigade. Something like "replay" but without the sports
> metaphor?


When an MTA receives a message and places it in a POP (or IMAP) mailbox,
it is called "Delivery", not relay. Relay is used to indicate passing
on to another MTA.


--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Reply With Quote
  #27 (permalink)  
Old 09-18-2007
Sanders Kaufman
 
Posts: n/a
Default Re: Send a mail without going to spam

Jerry Stuckle wrote:
> Sanders Kaufman wrote:


>> I like the way you wobble back and forth on that.
>> It's not a realy - except when it is.

>
> Nope, I stand that most public MTA's are not relays.


OK, Jerry - but that requires a very wrong interpretation of the word
"Transfer".

Seriously - on this I consider myself an honest expert. Back in 95, I
built the first Fax-Over-IP protocol, as you've heard me say once or
twice before.

In that effort, I spent a year *constantly* consulting with Marshall
Rose and he gave me an excellent education on this. If you don't know
who he is, check the SMTP specification; his name is on it.

I can't claim his expertise as my own - but when you consider that MTA
stands for Message Transfer Agent, the truth that it is a relay becomes
quite self-evident.


>> That last, of course, is why I suggested that the OP use an SSL
>> secured mail relay.

>
> Which has absolutely no effect on whether the relay is secure or not.
> All SSL does is encrypt the data.


Wow - could you BE more self-contradictory?


> When an MTA receives a message and places it in a POP (or IMAP) mailbox,
> it is called "Delivery", not relay. Relay is used to indicate passing
> on to another MTA.


And how does it get from the outgoing MTA, to the incoming MTA? Relay.
Thus - an MTA that does not relay, is merely a POP.

btw - it would be more accurate for you to say POP3 Server, because POP
has a very specific tele-communications networking meaning beyond
internet email.
Reply With Quote
  #28 (permalink)  
Old 09-18-2007
Jerry Stuckle
 
Posts: n/a
Default Re: Send a mail without going to spam

Sanders Kaufman wrote:
> Jerry Stuckle wrote:
>> Sanders Kaufman wrote:

>
>>> I like the way you wobble back and forth on that.
>>> It's not a realy - except when it is.

>>
>> Nope, I stand that most public MTA's are not relays.

>
> OK, Jerry - but that requires a very wrong interpretation of the word
> "Transfer".
>


No, it doesn't. Transfer can take many forms. Relay is only one of them.

> Seriously - on this I consider myself an honest expert. Back in 95, I
> built the first Fax-Over-IP protocol, as you've heard me say once or
> twice before.
>


Hmmm, you've already shown you don't understand the difference between
"relay" and "delivery", don't know a POP server cannot receive SMTP
email, or an MTA cannot handle POP3 protocol.

> In that effort, I spent a year *constantly* consulting with Marshall
> Rose and he gave me an excellent education on this. If you don't know
> who he is, check the SMTP specification; his name is on it.
>


I think you need to go back to school. I've been setting up MTA's, POP3
servers, etc. for quite a number of years. How many have you set up
from scratch?

> I can't claim his expertise as my own - but when you consider that MTA
> stands for Message Transfer Agent, the truth that it is a relay becomes
> quite self-evident.
>


Obviously. And you obviously can look up MTA in Wikipedia. But you
need to understand what it means.

>
>>> That last, of course, is why I suggested that the OP use an SSL
>>> secured mail relay.

>>
>> Which has absolutely no effect on whether the relay is secure or not.
>> All SSL does is encrypt the data.

>
> Wow - could you BE more self-contradictory?
>


Not at all contradictory. SSL just ensures the data sent between MTA's
is secure, not an MTA itself. The MTA can still be compromised, and if
it is the destination MTA, the data will be available unencrypted.

>
>> When an MTA receives a message and places it in a POP (or IMAP)
>> mailbox, it is called "Delivery", not relay. Relay is used to
>> indicate passing on to another MTA.

>
> And how does it get from the outgoing MTA, to the incoming MTA? Relay.
> Thus - an MTA that does not relay, is merely a POP.
>


Nope. Straight SMTP protocol. There is no no relay involved because
the two communicate directly. Relaying is done through a third party.

> btw - it would be more accurate for you to say POP3 Server, because POP
> has a very specific tele-communications networking meaning beyond
> internet email.


Yes, I know. Lots of terms and acronyms have different meanings when
used in different contexts. This is not a telecommunications newsgroup.

And, POP is also correct. It describes a generic type of protocol. POP3
specifies a specific implementation of that protocol.

And you have a LOT to learn about this subject, Sanders.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Reply With Quote
  #29 (permalink)  
Old 09-18-2007
Jerry Stuckle
 
Posts: n/a
Default Re: Send a mail without going to spam

Sanders Kaufman wrote:
> C. wrote:
>> On 16 Sep, 21:55, Sanders Kaufman <bu...@kaufman.net> wrote:
>>> RageARC wrote:
>>>> I've made a script that sends mails, and it sends mails correctly for
>>>> gMail, but not for Hotmail. What happens is that on Hotmail the mails
>>>> are not even received! Nor on spam box, nor on inbox.

>> <snip>
>>> It may cost a nickel or two, but sending your mail out through a third
>>> party SMTP server that uses SSL, instead of your hosting providers
>>> default mail relay may allow the mail to go through.

>>
>> ?

>
> If you're on a black-hole list, it's easier to find a new relay than to
> try to fight the most powerful force in the universe. :)
>


Actually, most blacklists (at least the commonly used ones) will remove
the host within 24 hours of the spam stopping. They understand
sometimes a hosting company gets blind-sided by a spammer, and as long
as the problem is fixed quickly, the server will be removed from the
blacklist quickly.

> If you use SSL to connect to the SMTP relay, your login credentials
> can't easily be "sniffed".
>


But that's not the most common reason for a server getting blacklisted.
And it's also only valid if you have your own MTA (not shared by
anyone else) on your own IP and have it configured correctly.

>
>> Certainly you will have problems sending mail from a known DHCP
>> address (on Unix/Linux try a null mailer going through a registered
>> MX) if you have an MX address on the origin already, make sure you've
>> got a sensible SPF enabled in your DNS.

>
> SPF?
>


I thought you were an expert on this.

Something that's a good concept, but full of holes. It's not widely
used, and probably never will be.

>
>> At the end of the day, though, the Hotmail service is worth exactly
>> what most users pay for it. And don't expect any help from them as to
>> why mail gets detected as SPAM.

>
> When I first started participating in Usenet Political discussions, I
> used my hotmail address - then one day I tried to login and got a "go to
> hell, you spammer" denial message. Same thing with Yahoo.
>
> Screw 'em, both.
>


And it can happen on any email you post on usenet.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Reply With Quote
  #30 (permalink)  
Old 09-19-2007
Gordon Burditt
 
Posts: n/a
Default Re: Send a mail without going to spam

>>> I like the way you wobble back and forth on that.
>>> It's not a realy - except when it is.

>>
>> Nope, I stand that most public MTA's are not relays.

>
>OK, Jerry - but that requires a very wrong interpretation of the word
>"Transfer".


A typical public MTA that is NOT considered an open relay will
permit mail traffic that is:

(a) destined for mailboxes that it handles (incoming mail from
anywhere is allowed, subject to SPAM filtering). Note that
the mailboxes are NOT necessarily on the same machine. In
large setups the public MTA may be a border MX machine with
few (e.g. "root" only) or no mailboxes and they pass the mail
to the servers with the mailboxes.
or (b) sent in by trusted customers or from trusted locations to the
world (outgoing mail from my customers is allowed). This may
be checked by a number of methods:
(1) Authenticated SMTP, with or without SSL
(2) POP-before-send: you must check your mailbox from the
IP address you are using within X minutes before sending
mail out.
(3) SSL with user certificates
(4) Using extensions to POP3 or IMAP to send mail during
a mail-fetching session.
(5) Allowing any mail from IP blocks owned by the ISP
(6) Combinations of these, such as (5) from DSL or dialup
lines and (1) or (2) from "roaming" customers
(7) There's all sorts of other methods also.

This does not address the subject of SPAM filtering or virus scanning.

Incidentally, there's a subtle difference between "relay" and
"forward". This terminology might not be universal but its in
use at some ISP abuse departments.

Let's suppose that there is a mail service that will accept mail
to me at me@service.com and forward it to any mailbox I designate.
I designate my mailbox at my local ISP, me@isp.com . When someone
does a spam run against the @service.com addresses, service.com may
get accused of being an open relay when it doesn't really deserve
it.

A spammer connects to the service.com mail server and drops off a
penis enlargement ad for me@service.com. Their server transfers it
to the mail server at isp.com, which delivers into the me@isp.com
mailbox. This is a *forward*. The *customer* requested the routing
from service.com to isp.com.

A spammer connects to the service.com mail server and drops off a
penis enlargement ad for you@aol.com. Their server transfers it to
the mail server at aol.com. Unless the spammer had authentication
or permission to use the service.com mail server, this makes it an
open relay. The *spammer*, not the AOL customer, requested the
routing from service.com to aol.com.


>Seriously - on this I consider myself an honest expert. Back in 95, I
>built the first Fax-Over-IP protocol, as you've heard me say once or
>twice before.
>
>In that effort, I spent a year *constantly* consulting with Marshall
>Rose and he gave me an excellent education on this. If you don't know
>who he is, check the SMTP specification; his name is on it.
>
>I can't claim his expertise as my own - but when you consider that MTA
>stands for Message Transfer Agent, the truth that it is a relay becomes
>quite self-evident.
>
>
>>> That last, of course, is why I suggested that the OP use an SSL
>>> secured mail relay.

>>
>> Which has absolutely no effect on whether the relay is secure or not.
>> All SSL does is encrypt the data.

>
>Wow - could you BE more self-contradictory?


SSL encrypts the data so the thief of a customer (using a phony
credit card number) can rip off the thief running the web site
before any other thief (such as the FBI or dishonest ISP employee)
can get to the card number. SSL does not identify the customer to
the web site, unless it insists on user certificates.

It works the same way with email. A spammer can securely shower
the whole internet with penis enlargement ads while making it
difficult for someone tapping the net to see what's in the email
until their copy lands in their mailbox.


>> When an MTA receives a message and places it in a POP (or IMAP) mailbox,
>> it is called "Delivery", not relay. Relay is used to indicate passing
>> on to another MTA.


Many corporate and ISP setups have "border MX machines" running a
MTA which receives the email and passes it on to one of a bunch of
another machines which actually hold the mailboxes. The "border
MX machines" have few or no mailboxes themselves.

>And how does it get from the outgoing MTA, to the incoming MTA? Relay.
>Thus - an MTA that does not relay, is merely a POP.


I suggest not using the abbreviation "POP" to refer to "Point of
Presence" when discussing mail protocols. There's another meaning
for that TLA (And I don't mean Tokyo Law Association). Similarly,
don't use "IP" to mean "Intellectual Property" when discussing TCP
port numbers.

>btw - it would be more accurate for you to say POP3 Server, because POP
>has a very specific tele-communications networking meaning beyond
>internet email.



Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 08:10 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0