Visit Our UNIX and Linux User Community


smtp question


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers smtp question
# 1  
Old 11-02-2001
Question smtp question

When I establish a connection to port 25 (the mail port), I was unable to send an email when I typed:

rcpt to: username

I didn't know the exact username(s) on that machine. My question is, how do you find out who's logged in that machine or what user names have accounts on it that I can send mail to? Any kind of help is greatly appreciated!

Thanks in advance
# 2  
Old 11-02-2001
Well, you could try the finger command, if the remote server allows it (this is becoming less and less common, so don't be surprised if it doesn't work).
Code:
$ finger livinfree@myserver.example.com
Login: livinfree                             Name: Living Free
Directory: /home/livinfree            Shell: /bin/bash
Office:                                          Home Phone:
Never logged in.
New mail received Sat Oct 27 00:00 2001 (/etc/localtime)
     Unread since Thu Oct 18 04:35 2001 (/etc/localtime)
Plan:

If that doesn't work, you can also try the VRFY and EXPN commands...

Code:
$nc mail2.example.com

220 mail2.example.com ESMTP Sendmail 8.9.3 (PHNE_18546)/8.8.6; Thu, 1 Nov 2001 23:33:25 -0800 (PST)
vrfy livinfree
250 Living Free < livinfree@examle.com >
expn mikea
250 Living Free < livinfree@examle.com >
quit
221 mail2.example.com closing connection

(note: the expn (expand) command will tell you not only if the account exists, but also will show the names associated with a list, or if the user is using an alias, it may show thier true user ID - who the mail is really going to...)

Once again though, it doesn't always work:

Code:
$ nc mail1.example.com 25

220 mail1.example.com ESMTP server (InterMail vM.4.01.03.27 201-229-121-127-20010626) ready Fri, 2 Nov 2001 07:31:29 +0000
vrfy livinfree
502 Command is locally disabled

Hope this helps a little...
 

Previous Thread | Next Thread
Test Your Knowledge in Computers #941
Difficulty: Medium
A ping of death is a type of attack on a computer system that involves sending a malformed or otherwise malicious ping to a computer.
True or False?

10 More Discussions You Might Find Interesting

1. Solaris

SMTP relay Help

Hello!! Mau I know is there anyway that I can set the sendmail to relay the mail to different mail server base on the domain name? For example, Mail for abc.test.com will be sent to 1.1.1.1 and Mail for def.example.com will be sent to 2.2.2.2 Thanks for the help!!! (2 Replies)
Discussion started by: xiaochensg
2 Replies

2. Red Hat

SMTP Settings

Hi all, Please help to check weather the SMTP settings are configured or not on my LINUX server? I want to send a mail to mailbox. I know that the target SMTP server has to be configured on LINUX box to do so. How can i see weather it is configured or not? --Ramesh Ch. (3 Replies)
Discussion started by: Raamc
3 Replies

3. UNIX for Dummies Questions & Answers

Smtp

Hi All, I have a unix box which is in a network with windows machine, I am able to send the mails to the user id's with in the unix box. I dont have Internet connection for this box, so I am not able to test if it can send mails to external network or not? I want to know, if SMTP is already... (1 Reply)
Discussion started by: balu_puttaganti
1 Replies

4. AIX

SMTP doubt

Hi All, I have a unix box which is in a network with windows machine, I am able to send the mails to the user id's with in the unix box. I dont have Internet connection for this box, so I am not able to test if it can send mails to external network or not? I want to know, if SMTP is already... (0 Replies)
Discussion started by: balu_puttaganti
0 Replies

5. Solaris

SMTP Configuration

Hello everyone, I've got this Java script which needs to know the SMTP host in order to send out mails from a particular mail ID. But I have no idea how or what to configure in SMTP for getting this code up and running.(All I know is SMTP=Simple Mail Transfer Protocol). I'm using Solaris 5.8.... (1 Reply)
Discussion started by: Rajat
1 Replies

6. Programming

C Smtp

how do you send a ".\n" in a smtp client? >354 Send message, end with <CRLF>.<CRLF> >. > i have already issued a "./n" but it doesnt work. please help. thanks. (1 Reply)
Discussion started by: grotesque
1 Replies

7. IP Networking

SMTP with sendmail

Hi, I have a solaris 9 box, and 2 domains A.com and B.net. the machine is on B.net. I am not able to send emails to @A.com using mail or mailx. after reading on sendmail, there was something about relaying and editing the file /etc/mail/relay-domains. Please let me know if this is what i... (1 Reply)
Discussion started by: 0ktalmagik
1 Replies

8. IP Networking

SMTP mail

I want to send e-mail from my yahoo account. But mail -s "title" *@yahoo.com < line.txt is from my local address to *@yahoo.com. How can i do this? (1 Reply)
Discussion started by: Euler04
1 Replies

9. UNIX for Advanced & Expert Users

Smtp

Hi All, I am running an email server on a Linux machine. My goal is to set up in a way that I can use pop3 to retrieve mail from a Windows machine using Outlook. Now I can download the messages from the Linux email server, however I can not send out messages. I encounter this error: ... (1 Reply)
Discussion started by: vtran4270
1 Replies

10. UNIX for Dummies Questions & Answers

SMTP setup

Can anyone please explain me or send me a link to configure/setup SMTP on Sun Solaris server. Thanx a lot. Kavita (1 Reply)
Discussion started by: knarayan
1 Replies

Featured Tech Videos