CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
Emails and that good stuff

 



Pro_4
User

May 31, 2001, 2:03 PM

Post #1 of 12 (3060 views)
Emails and that good stuff Can't Post

Hey,

I have been fiddling around with sendmail recently and have a question. Say i had a few admins and they wanted to send emails. That sendmail would send it to the person from say admin1@mywebsite.com. Although that is not a legitimate email address my site has it still sends the mail(is that legal?). Since that is not a real email address is there a program that will take in the responses sent back to that address? Anyways i was just wondering.

Thanks :)

P.S. For like those auto-response things like sign ups, there is a auto@perlguru.com, is that a real address or is that just the sendmail?

Yes i am a palm tree. What are you plantist or something!?


AICapone
Deleted

May 31, 2001, 4:33 PM

Post #2 of 12 (3056 views)
Re: Emails and that good stuff [In reply to] Can't Post

hello there,

I thought about it some time before and came to following conclusions.
One, in PHP we can give 'reply to' header so when soemone will press reply they will write to you though they might've got an email from bill@microsoft..com. Problem is that I am not quite sure how (thats if) its done in Perl.
Two, it is more or less legal to send emails from not existing addresses since they are under your control. (did anyone get it? what I meant is that as long as you own www.mysite.com its perfectly fine to send emails from there).
Again, it is just my opinion, and I never saw any writen laws supporting or rejecting it so far.

P.S. No, Pro_4, there are no programs that could pick up emails from other addresses (at leas not that I am aware of), or we would have huuuggge problem with sniffing and stealing emails.
CYA

-----------------------------------------------------------
What is difficlut takes time, what is impossible takes a little longer


Pro_4
User

Jun 1, 2001, 3:45 PM

Post #3 of 12 (3049 views)
Re: Emails and that good stuff [In reply to] Can't Post

Hey,

This is really interesting. I could use that sendmail program to send emails from my Hotmail account yet i did not have to provide any passwords. I received the email to. That is kinda weird. There has to be something against that because people could impersonate you and send tons of people insulting emails from your address that you didnt even send.

Maybe someone else can provide some information about this.

Yes i am a palm tree. What are you plantist or something!?


AICapone
Deleted

Jun 2, 2001, 8:04 AM

Post #4 of 12 (3037 views)
Re: Emails and that good stuff [In reply to] Can't Post

heyya Pro_4,
see, you are kinda mistaking. Next time you send email to yourself, please do turn on `full header` option in your settings. For example I send an email from my homepage at www.f2s.com:

From: billy.Gates@server0039.freedom2surf.net Save Address - Block Sender
Reply-To: yari2k@hotmail.com
To: undisclosed-recipients:; Save Address
Subject: send sucsessful!!!
Date: Sat, 2 Jun 2001 14:59:25 GMT
Received: from [194.106.33.44] by hotmail.com (3.2) with ESMTP id MHotMailBCE24A4D006040043790C26A212CA2B40; Sat Jun 02 07:59:26 2001
Received: from server0039.freedom2surf.net (server0039.freedom2surf.net [194.106.33.50])by server0032.freedom2surf.net (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id OAA27505for <yari2k@hotmail.com>; Sat, 2 Jun 2001 14:59:25 GMT
Received: (from Unknown UID 185078@localhost)by server0039.freedom2surf.net (8.9.3/8.9.3/Debian 8.9.3-21) id OAA12687for yari2k@hotmail.com; Sat, 2 Jun 2001 14:59:25 GMT
From postmaster@server0039.freedom2surf.net Sat Jun 02 08:00:06 2001
Message-Id: <200106021459.OAA12687@server0039.freedom2surf.net>

blah blah blah. See these nasty lines right there?
......
Received: from server0039.freedom2surf.net.....
...
Received: (from Unknown UID 185078@localhost... (dast ist me :))...
....
From postmaster@server0039.freedom2surf.net ...
... (now here is your REAL from)

I am not talkin about what what happens when you try to send an email from your apache (or whatever) from your personal computer. oh boy we got your IP!
Anyway, if you send lets say to georgbush@whitehouse.org some offensive letter they will get you in five (may be six :)) minutes, yet if you send to you lame frend who doesn't know a thing about computers he'll buy it
CYA

-----------------------------------------------------------
What is difficlut takes time, what is impossible takes a little longer


freddo
User

Jun 2, 2001, 4:49 PM

Post #5 of 12 (3036 views)
Re: Emails and that good stuff [In reply to] Can't Post

Hi Pro4,

For sure, you can send an email with any identity you wish. Your IP is logged, but a little spoofing tool can really make think you are sending an email being someone else. If peoples need a good way to authenticate who's writting, i suggest them to use pgp (or, of course, gpg) and to have a local SECURE server to check auth keys and sigs.

Here's a simple telnet session i made sending you an email:

Code
freddo@FANTA /cygdrive/h/scripts.pl/perlguru/pro4/ 
$ telnet smtp.skynet.be 25

Trying 195.238.3.131...
Connected to out.mx.skynet.be.
Escape character is '^]'.
220 picard.skynet.be ESMTP Sendmail 8.11.2/8.11.2/Skynet-OUT-2.11; Sat, 2 Jun 2001 15:56:24 +0200 (MET DST)
HELO freddo
250 picard.skynet.be Hello adsl-41081.turboline.skynet.be [217.136.32.121], pleased to meet you
MAIL FROM: forums@perlarchive.com
250 2.1.0 forums@perlarchive.com... Sender ok
RCPT TO: Pro_4@homestead.com
250 2.1.5 Pro_4@homestead.com... Recipient ok
DATA
354 Enter mail, end with "." on a line by itself
Subject: A sample email from telnet
X-Mailer: Freddo's keyboard
Disposition-Notification-To: <ffreddo@ibelgique.com>
Date: Thu, 3 May 2001 06:56:44 +0200 (MET DST)

You are receiving this email because you have asked one or more questions to PerlGuru's Daily Forum
Archives. Remember, you can change your sexuality by logging in (at http://forums.perlguru.com)
, clicking "Edit my file" and then "Edit Emails/Sexcriptions". 'Sexuality Programming Help'. The forum
location is http://forums.perlguru.com/

You must check the following url, else tomorrow the sun will not get up:
http://forums.perlguru.com/showflat.pl?Cat=&Board=Forum2&Number=10697&page=0&view=expanded&sb=5
.

250 2.0.0 f52DuZL05411 Message accepted for delivery
quit
221 2.0.0 picard.skynet.be closing connection
Connection closed by foreign host.

Legend: Red Text is from the server, -- Green is what i had to type...

I hope this helps, if you have more questions, you might first want to check http://RFC Editor. Then ask me what you want (and, for example, how to use spoof.c -- but i'm sure you can find it by yourself Cool).

Notice the headers of the message you have received (the following is from a test i made with my own email):

Code
X-Persona: <freddo@belgacom.net>Received: from crusher.skynet.be (crusher.skynet.be [195.238.3.130]) 
by hotbert.skynet.be (8.11.1/8.9.3) with ESMTP id f52Dv5X06215
for <freddo@belgacom.net>; Sat, 2 Jun 2001 15:57:06 +0200 (MET DST)
Received: from picard.skynet.be (picard.skynet.be [195.238.3.131])
by crusher.skynet.be (8.11.2/8.11.2/Skynet-IN-2.17) with ESMTP id f52Dv3428386
for <freddo@belgacom.net>; Sat, 2 Jun 2001 15:57:03 +0200 (MET DST)
(envelope-from <forums@perlarchive.com>)
Received: from freddo (adsl-41081.turboline.skynet.be [217.136.32.121])
by picard.skynet.be (8.11.2/8.11.2/Skynet-OUT-2.11) with SMTP id f52DuZL05411
for freddo@belgacom.net; Sat, 2 Jun 2001 15:56:44 +0200 (MET DST)
(envelope-from <forums@perlarchive.com>)
Date: Sat, 2 Jun 2001 15:56:44 +0200 (MET DST)
From: forums@perlarchive.com
Message-Id: <200106021356.f52DuZL05411@picard.skynet.be>
Subject: A sample email from telnet
X-Mailer: Freddo's keyboard
Disposition-Notification-To: <ffreddo@ibelgique.com>
X-UIDL: 204eda5c75f3daec16630952d177784d


You are receiving this email because you have asked one or more questions to PerlGuru's Daily Forum
Archives. Remember, you can change your sexuality by logging in (at http://forums.perlguru.com)
, clicking "Edit my file" and then "Edit Emails/Sexcriptions". 'Sexuality Programming Help'. The forum
location is http://forums.perlguru.com/

You must check the following url, else tomorrow the sun will not get up:

use IO::Socket;

$socket = new IO::Socket::INET (
PeerAddr => 'smtp.skynet.be',
PeerPort => '25',
Proto => 'tcp',
Type => SOCK_STREAM
) or die "Could not create socket: $!\n";

@text = (
"MAIL FROM: ffreddo\@ibelgique.com",
"RCPT TO: ffreddo\@ibelgique.com",
"DATA",
"Subject: hello world\n\nhi dude!\n.",
"QUIT"
);

for (@text) {
$x = <$socket>; print $x;
print $socket "$_\n";
}

$x = <$socket>; print $x;

close($socket);

I hope this helps,
freddo


freddo
User

Jun 2, 2001, 5:01 PM

Post #6 of 12 (3036 views)
Re: Emails and that good stuff [In reply to] Can't Post

Heya Al,

i just wanted to talk about your remark about emails from @whitehouse.gov, actually (on the ISP i am using, at least) those are monitored, and probably really well checked, they are generally received 2 (TWO) week after having being sent.

And emails from crash@tests.dummies.com are just received in few seconds...

You said Carnivore, Echelon?
freddo

;---
ygjohn: sometimes. you talk too much.. hahaha..


Pro_4
User

Jun 2, 2001, 7:02 PM

Post #7 of 12 (3030 views)
Re: Emails and that good stuff [In reply to] Can't Post

Alright thanks for clearing that up for me. But the thing is i have my program to auto send a email to that person when they sign up. So it wouldnt track my ip, so would it be my servers ip?

BTW freddo i love your profile LOL.

:)

Yes i am a palm tree. What are you plantist or something!?


freddo
User

Jun 2, 2001, 7:20 PM

Post #8 of 12 (3029 views)
Re: Emails and that good stuff [In reply to] Can't Post


In Reply To
i have my program to auto send a email to that person when they sign up. So it wouldnt track my ip, so would it be my servers ip?

yes for sure.

freddo



;---
ygjohn: sometimes. you talk too much.. hahaha..


Pro_4
User

Jun 3, 2001, 8:04 AM

Post #9 of 12 (3022 views)
Re: Emails and that good stuff [In reply to] Can't Post

LOL freddo i just checked my mail. Hehe that is some pretty funny stuff. Dang i am going to pull the biggest halloween prank on my friends.

Just wondering why was the to: part of the email blank. You sent it to me but it didnt say it was to me. ?

Oh well. :)

LOL that is some good stuff

Yes i am a palm tree. What are you plantist or something!?


freddo
User

Jun 3, 2001, 9:57 AM

Post #10 of 12 (3019 views)
Re: Emails and that good stuff [In reply to] Can't Post

Hi Pro4,

Well that's because i didnt filled it into the headers. You can put whatever you want in the message header. Just make some test.

Here's a little example of what you can put in the Header:

Code
Subject: A sample email from telnet 
X-Mailer: Freddo's keyboard
Disposition-Notification-To: <ffreddo@ibelgique.com>
Date: Thu, 3 May 2001 06:56:44 +0200 (MET DST)
# This empty line marks the end of the headers
You are receiving this email because you have asked
one or more questions to PerlGuru's Daily
ForumArchives.

. # This line marks the end of the message

(the red text are the headers, green - the body of the message, and in blue some comments.

You can add a

Code
To: "Pro 4" <Pro_4@homestead.com>



i hope this clarify my previous post a little,
freddo

;---
ygjohn: sometimes. you talk too much.. hahaha..


Pro_4
User

Jun 6, 2001, 1:36 PM

Post #11 of 12 (3000 views)
Re: Emails and that good stuff [In reply to] Can't Post

Just wondering,

Do hotmail and places like that actually have that many email addresses?!

It would seem that they have some kinda of system that takes in all of the emails to the @hotmail.com and then distributes it to the proper person. Or maybe i am insane?

:)

Yes i am a palm tree. What are you plantist or something!?


freddo
User

Jun 10, 2001, 12:39 PM

Post #12 of 12 (2990 views)
Re: Emails and that good stuff [In reply to] Can't Post

Hi Pro,

I dont understand your last question, could you explain what you wanna say about hotmail more clearly?

If it's about when you type RCPT TO: Pro_4 (without the @homestead.com at your smtp service -- homestead.com) then the server will probabaly check if there's an email (or a user) with that name trying to recognise it. Still about that, i also recommand you to check the unix man page about who command, and finger programs.

catch you on irc,
freddo

;---
ygjohn: sometimes. you talk too much.. hahaha..

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives