Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-20-2014, 08:44 AM   #1
LQ Newbie
Registered: Mar 2014
Posts: 20

Rep: Reputation: Disabled
How check existence of smtp users in a file against a server?

how do i check existence of smtp users in a file against a server and report those that exist?
Old 04-20-2014, 11:09 AM   #2
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
In theory, you could connect to the server and use this SMTP protocol to attempt to send mail to each of the users (but abort the connection before any e-mail is actually sent). In theory you could also use the VRFY command for this, but it's often disabled.

This looks to me like a question that might be asked by a spammer, so let me give a couple friendly words of advice:

(1) Don't actually do this unless you have explicit written permission from the owner of the SMTP server. Otherwise you will look like a spammer, your IP will be added to the common spam blacklists, and the abuse department of your ISP will be notified.
(2) If you can't figure out the SMTP protocol well enough to understand how to do this, don't even think of attempting it.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
bash script to check for multiple file existence and then scp to another server Iyyappan Linux - Server 2 01-24-2014 12:07 AM
check file existence in your directory ust Linux - Newbie 6 07-27-2011 05:12 AM
[bash] Remote file existence check danket Linux - Newbie 5 01-14-2008 04:39 PM
[Question] Check File existence hbinded Programming 3 12-19-2006 05:15 PM
check for existence of file j-me Linux - Newbie 5 07-29-2003 07:58 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:21 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration