Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6545955
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:39:00+00:00 2026-05-25T11:39:00+00:00

I want to create a simple smtp proxy using node.js, which receives mails and

  • 0

I want to create a simple smtp proxy using node.js, which receives mails and then sends them to a custom Gmail account. But when I connect to the Gmail smtp server, I need an authentication with username & password. BUT: How should the sender know the username and password of the receiver?

Why isn´t my smtp client able to send an email to a Gmail address without such an authentication?

Have I missed something?

My code:

var tls = require("tls");
var fs = require("fs");

var o = {
    cert:fs.readFileSync("/certificate.pem"),
    key:fs.readFileSync("/key.pem")
};

var c = tls.connect(465,"smtp.gmail.com",o,function(){
    c.once("data",function(d){
        c.write("HELO cloudstudios.ch\r\n");
        c.once("data",function(d){
            c.write("MAIL FROM:<test@cloudstudios.ch>\r\n");
            
        });
    });
    c.on("data",function(d){
        console.log(d+"");
    });
});

output:

220 mx.google.com ESMTP u14sm14212124eeh.1

250 mx.google.com at your service

530-5.5.1 Authentication Required. Learn more at
530 5.5.1 http://mail.google.com/support/bin/answer.py?answer=14257 u14sm14212124eeh.1
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T11:39:00+00:00Added an answer on May 25, 2026 at 11:39 am

    You’re using the wrong server. smtp.gmail.com is for relaying outbound email from Gmail users, and requires them to authenticate. Inbound email to Gmail users should go via the servers specified in the MX record for gmail.com, which don’t require authentication — the highest priority such server at present is gmail-smtp-in.l.google.com, but that is liable to change at any time.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to create a simple application which performs some calculations and then draws
I want to create a simple http proxy server that does some very basic
I want to create a simple menu function which can call it example get_menu()
I want to create simple custom control (derived from control and with look defined
i want to create a simple text editor for a website which works something
I want to create a simple text editor for a website which works something
I want to create a simple summary report in Reporting Services using age ,
I want to create simple dummy tag which can work with Struts2. I have
I want to create a simple application using the classes in System.Reflection.Emit. How can
I am new to android... I want to create simple android game using Andengine.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.