Re: How long does read(2) wait before an EAGAIN is thrown?
- From: "lovecreatesbea...@xxxxxxxxx" <lovecreatesbeauty@xxxxxxxxx>
- Date: Mon, 23 Jun 2008 01:22:00 -0700 (PDT)
On Jun 23, 8:09 am, David Schwartz <dav...@xxxxxxxxxxxxx> wrote:
On Jun 20, 6:53 pm, Logan Shaw <lshaw-use...@xxxxxxxxxxxxx> wrote:
The original poster is talking about initiating a connection to an
SMTP server, so how would the code they're writing to do this be
part of the spam rejection process?
That's when the server first knows the IP address the information is
coming from. That may trigger various blacklist lookups and the like.
The idea being that if the server is known to be a pure spam source,
the connection can be dropped at the earliest point.
It may also delay/block the connection just because the IP address is
not on its approved list. The idea is to slow the sender down a bit,
drop the connection, and let the connection through later if the
sender retries in a reasonable interval. The hope is that spam sources
will not retry while legitimate mail sources will.
What do I do to act like a legitimate sender?
That is, what value does the
SMTP protocol timing have in rejecting spam if you're the sender
of the message?
I'm not sure I follow what you're saying here.
It's not clear if his code waits for the initial greeting before
sending his hello or not. I think that would generally be considered
good practice, but you don't really need to. As a result, it may be
tricky to isolate the initial greeting delay from the hello response
delay.
I'm connecting to the Exim SMTP server on my local Linux box, and let
Exim send a message to an free email account on hotmail.com. That
email account never receives the messages. How can I make the messages
reach those free email accounts?
$ ./smtp-client.out lijh@uit-sz-lijh-2 uit-sz-lijh-2 25
lovecreatesbea...@xxxxxxxxxxx "SMTP example" "hello world from code"
"`date`"
220 uit-sz-lijh-2 ESMTP Exim 4.63 Mon, 23 Jun 2008 15:16:49 +0800
HELO uit-sz-lijh-2
250 uit-sz-lijh-2 Hello lijh at uit-sz-lijh-2 [192.168.3.208]
MAIL FROM:<lijh@uit-sz-lijh-2>
250 OK
RCPT TO:<lovecreatesbea...@xxxxxxxxxxx>
250 Accepted
DATA
354 Enter message, ending with "." on a line by itself
Subject: SMTP example
From: lijh@uit-sz-lijh-2
To: lovecreatesbea...@xxxxxxxxxxx
Date: Mon Jun 23 15:16:48 CST 2008
hello world from code
250 OK id=1KAgID-0004V3-SG
QUIT
221 uit-sz-lijh-2 closing connection
$
.
- Follow-Ups:
- Re: How long does read(2) wait before an EAGAIN is thrown?
- From: Gordon Burditt
- Re: How long does read(2) wait before an EAGAIN is thrown?
- From: David Schwartz
- Re: How long does read(2) wait before an EAGAIN is thrown?
- References:
- How long does read(2) wait before an EAGAIN is thrown?
- From: lovecreatesbea...@xxxxxxxxx
- Re: How long does read(2) wait before an EAGAIN is thrown?
- From: Rainer Weikusat
- Re: How long does read(2) wait before an EAGAIN is thrown?
- From: lovecreatesbea...@xxxxxxxxx
- Re: How long does read(2) wait before an EAGAIN is thrown?
- From: Rainer Weikusat
- Re: How long does read(2) wait before an EAGAIN is thrown?
- From: Logan Shaw
- Re: How long does read(2) wait before an EAGAIN is thrown?
- From: David Schwartz
- How long does read(2) wait before an EAGAIN is thrown?
- Prev by Date: Re: How long does read(2) wait before an EAGAIN is thrown?
- Next by Date: Re: How long does read(2) wait before an EAGAIN is thrown?
- Previous by thread: Re: How long does read(2) wait before an EAGAIN is thrown?
- Next by thread: Re: How long does read(2) wait before an EAGAIN is thrown?
- Index(es):
Relevant Pages
|
Loading