#!/bin/bash

import socket
import sys

if len(sys.argv) != 2:
        print "Usage: vrfy.py <username>"
        sys.exit(0)

s=socket.socket(socket.AF_INET, socket.SOCK_STREAM) # Create a Socket
connect=s.connect(('10.11.10.12',25))   #Connect to the server
banner=s.recv(1024)                     # Receive the banner
print banner
s.send('VRFY ' + sys.argv[1] + '\r\n')
results=s.recv(1024)
print result
s.close()

Create vrfy.py