Forum     

Go Back   Digit Technology Discussion Forum > Software > Open Source
Register FAQ Calendar Mark Forums Read

Open Source A place where you can talk to like-minded people about the fastest growing software movement today! Discuss anything and everything about Open Source software and Operating Systems.


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 18-03-2005, 12:49 AM   #1 (permalink)
String Phreak
 
mediator's Avatar
 
Join Date: Mar 2005
Location: In ur Evil Mind!
Posts: 2,457
Default How to Work with sendmail and smtp!


Q1:
I tried a lot but i dunno how to work with sendmail and smtp!
Please tell me how to work wwith sendmail !

I used smtp like "telnet some.mailserver.com 25".Connected ok.
blah blah!
then, RCPT TO:name@another.mailserver.com
But insted of 250 ok!
I get relaying error and authentication error!

CAN YOU HELP ME?


Q2:
I alo want to know how to modify email headers with pine?
mediator is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 18-03-2005, 09:35 AM   #2 (permalink)
Right Off the Assembly Line
 
Join Date: Mar 2005
Location: before you
Posts: 10
Default

hey want to send fake mail
and u want help
__________________
live life linux size
grub is offline  
Old 18-03-2005, 02:24 PM   #3 (permalink)
FooBar Guy
 
GNUrag's Avatar
 
Join Date: Jun 2004
Location: GNUmbai
Posts: 1,245
Default Re: How to Work with sendmail and smtp!

Quote:
Originally Posted by mediator
Q1:
I tried a lot but i dunno how to work with sendmail and smtp!
Please tell me how to work wwith sendmail !
Ans 1:
Read the SMTP's RFC about the smtp protocol's commands. The RFC is available at www.faqs.org


Quote:
Originally Posted by mediator
I used smtp like "telnet some.mailserver.com 25".Connected ok.
blah blah!
then, RCPT TO:name@another.mailserver.com
But insted of 250 ok!
I get relaying error and authentication error!
The server does not allow relaying of email through the mail server.

NOTE: The following post has been copied from my previous post at:
http://www.thinkdigit.com/forum/viewtopic.php?t=12170
----------
Quote:
Originally Posted by esumitkumar
hi so can we send mail from like that???[/b]
From : billgates@microsoft.com
to
To : raabo@digit.com
the domain digit.com does not have any mail exchanger defined.



Anyways, let's assume that i'm sending a mail to anurag[AT]gnu.org.in from a non existant email billgates@microsoft.com then here is what i do.

Note, the commands in bold is what i am supposed to type. This process includes the detection of mail exchange server, to telnetting into its smtp port and typing mail ....

Quote:
anurag@hbcse:~/cvs-web$ nslookup
Note: nslookup is deprecated and may be removed from future releases.
Consider using the `dig' or `host' programs instead. Run nslookup with
the `-sil[ent]' option to prevent this message from appearing.
> set type=MX
> gnu.org.in
Server: 158.144.1.28
Address: 158.144.1.28#53

Non-authoritative answer:
gnu.org.in mail exchanger = 5 cc4.tifr.res.in.

Authoritative answers can be found from:
gnu.org.in nameserver = cc4.tifr.res.in.
cc4.tifr.res.in internet address = 158.144.1.20
>
anurag@hbcse:~/cvs-web$ telnet cc4.tifr.res.in 25
Trying 158.144.1.20...
Connected to tifrc6.tifr.res.in.
Escape character is '^]'.
220 cc4.tifr.res.in ESMTP Exim 4.34 Fri, 31 Dec 2004 19:42:46 +0530
helo laptop.billgates.microsoft.com
250 cc4.tifr.res.in Hello hbcse.tifr.res.in [158.144.44.129]
mail from: billgates@microsoft.com
250 OK
rcpt to: anurag[AT]gnu.org.in
250 Accepted
data
354 Enter message, ending with "." on a line by itself
From: "Billy Gates" <billgates@microsoft.com>
To: "Anurag P" <anurag[AT]gnu.org.in>
Subject: A digit member asked me to send this!

hi!

a digit forum member asked me to send this spam to you!

regards,
Bill Gates
.

250 OK id=1CkNX2-00023d-Dc
quit
221 cc4.tifr.res.in closing connection
Connection closed by foreign host.
You have new mail in /var/mail/anurag
anurag@hbcse:~/cvs-web$
I have scrambled my email address to prevent spamming. Just replace [AT] with @
And here is the email that i got that my friend Bill Gates sent to me.


Some short answer questions.

Q 1) How does one learn to do this ?
Ans ) Read the documentation of Sendmail, Postfix and the RFC paper on SMTP protocol.

Q 2) Is this illegal to do?
Ans ) Nope. This is not illegal. This is how all the email servers deliver emails around the world. Only difference is that here a human is issuing SMTP commands.

Q 3) Is it possible without access to Unix/Linux box ?
Ans) It can be done in Windows also. Windows XP ships with nslookup utility. I believe so.
----------


Quote:
Originally Posted by mediator
Q2:
I alo want to know how to modify email headers with pine?
Ans 2:
In pine you can press CTRL + R to enable Rich Headers. But you cannot add your own headers. However in mutt its possible to edit headers and add custom headers also. If you want my muttrc file then tell me.

Quote:
Originally Posted by grub
hey want to send fake mail
and u want help
This is nothing illegal. This method is used to check if the mail server is installed properly and relaying emails properly.
__________________
- --
http://web.gnuer.org
GNUrag is offline  
Old 18-03-2005, 08:09 PM   #4 (permalink)
Wise Old Owl
 
enoonmai's Avatar
 
Join Date: Oct 2004
Location: Parked diagonally in a parallel universe
Posts: 1,304
Default

@grub: Apart from what GNUrag just said, one small note though, this doesn't work with all major mail servers, except that of GMail. It works with a lot of corporate mail servers, though. However, if you're testing your sendmail, then its an entirely different matter altogether.
__________________
Face it, kid! Provoking a reaction isn't the same thing as saying something significant - Calvin
A64 3000+@2.4G/Asus A8V-DLX/1G DDR400/BBA X800 XT PE/320G HGST SATA2
Playing FEAR XP/LSW2
enoonmai is offline  
Old 19-03-2005, 09:08 AM   #5 (permalink)
Right Off the Assembly Line
 
Join Date: Mar 2005
Location: before you
Posts: 10
Default

it's all right , but there are a lots of another method to check whether ur sendmail is working fine or not .
the method he applied to check sendmail is suspicies ,and this method is defind in many website to send fake mail, that's why i wrote that
__________________
live life linux size
grub is offline  
Old 19-03-2005, 12:11 PM   #6 (permalink)
Wise Old Owl
 
enoonmai's Avatar
 
Join Date: Oct 2004
Location: Parked diagonally in a parallel universe
Posts: 1,304
Default

Sending spam/fake email to myself to check if my sendmail is working properly is not illegal, is it? But yes, that is just one method to send a fake email, but you should know that most major email providers do not allow this kind of mail relaying, and even if they do, they will put in "Unknown" in the From: field and automatically redirect it to the Spam Folder. BTW, any legit spammer must be totally mad if he's gonna use the manual method.
__________________
Face it, kid! Provoking a reaction isn't the same thing as saying something significant - Calvin
A64 3000+@2.4G/Asus A8V-DLX/1G DDR400/BBA X800 XT PE/320G HGST SATA2
Playing FEAR XP/LSW2
enoonmai is offline  
Old 19-03-2005, 04:45 PM   #7 (permalink)
Alpha Geek
 
Join Date: Feb 2004
Location: Belgaum
Posts: 745
Default

Yeah enoonmai true its a cumbersome process for them but the last I heard was email servers with mail relaying was one of the primary means of sending spam messages.There must be a automated processfor sending bulk spam messages?or did I miss something ?
__________________
The protection of a machine is a process & not a given -Duane Arnold.
www.Oobertech.net
Look ma my blog http://techhub.blogspot.com/
digen is offline  
Old 19-03-2005, 04:50 PM   #8 (permalink)
Wise Old Owl
 
enoonmai's Avatar
 
Join Date: Oct 2004
Location: Parked diagonally in a parallel universe
Posts: 1,304
Default

No, that is what I was saying too. There's gonna be no spammer who's gonna sit and "manually" send mails by logging on to a mail server and then sending the mail using their SMTP servers He would be mad to do something like that, and yes, there are automated tools for it, that rely on their own installed SMTP servers for relaying, pretty much the way new viruses have their own SMTP relays built into them. They rely on bulk spamming for their income, so they'd try to get out as many mails as possible in the shortest possible time.
__________________
Face it, kid! Provoking a reaction isn't the same thing as saying something significant - Calvin
A64 3000+@2.4G/Asus A8V-DLX/1G DDR400/BBA X800 XT PE/320G HGST SATA2
Playing FEAR XP/LSW2
enoonmai is offline  
Closed Thread

Bookmarks

Thread Tools
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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by Sarath
- by Charley
- by Charan
- by Tenida

Advertisement




All times are GMT +5.5. The time now is 02:20 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2