def connect
      begin
        smtp = Net::SMTP.new(self.host_name || self.ip_address)
        smtp.start(@config[:smtp_helo_name] || 'localhost')
        smtp.mailfrom @config[:smtp_mail_from] || 'postmaster@localhost'
        smtp.rcptto self.to_s
        #p [:connect]
        smtp.finish
        true
      rescue Net::SMTPUnknownError => e
        set_error(:address_unknown, e.to_s)
      rescue Net::SMTPFatalError => e
        set_error(:address_unknown, e.to_s)
      rescue SocketError => e
        set_error(:address_unknown, e.to_s)
      ensure
        if smtp && smtp.started?
          smtp.finish
        end
        !!@error
      end
    end
def connect
      begin
        smtp = Net::SMTP.new(self.host_name || self.ip_address)
        smtp.start(@config[:smtp_helo_name] || 'localhost')
        smtp.mailfrom @config[:smtp_mail_from] || 'postmaster@localhost'
        smtp.rcptto self.to_s
        #p [:connect]
        smtp.finish
        true
      rescue Net::SMTPUnknownError => e
        set_error(:address_unknown, e.to_s)
      rescue Net::SMTPFatalError => e
        set_error(:address_unknown, e.to_s)
      rescue SocketError => e
        set_error(:address_unknown, e.to_s)
      ensure
        if smtp && smtp.started?
          smtp.finish
        end
        !!@error
      end
    end
Connects to host to test if user can receive email. This should NOT be performed
 as an email address check, but is provided to assist in problem resolution.
 If you abuse this, you *could* be blocked by the ESP.