저는 집에 고정 IP가있는 서버가 있습니다. 도메인으로 내 웹 페이지를 서비스하며 정상적으로 작동합니다.메일 서버 및 nodejs를 사용하여 서버에서 전자 메일을 보내는 방법
내 웹 페이지에 이메일 및 비밀번호로 등록 할 수 있습니다. nodemailer라는 노드 모듈을 등록 할 때 Google 계정에서 이메일을 보내면 문제는 Google 계정에 보낸 이메일의 한도가 있다는 것입니다.
그래서 내 집에있는 서버에 nodemailer 모듈을 연결해야합니다.
Google에서 검색하지만 비슷한 답변은 없습니다.
nodejs와 함께 postfix를 사용하는 방법 ??
는 또는
https://github.com/baudehlo/Haraka
그래서 난 내 질문을 반복 nodemailer와 haraka 모듈을 사용하는 방법, 내 웹에 등록 이메일 사용자에게 내 서버에서 이메일을 보낼 필요가 . 예를 들어
...사용자가 내 웹에 등록 [email protected]
nodemailer 구성은 ...
exports.newRegistration=function(parametros,callback)
{
var mailOptions =
{
from: "<[email protected]>",//my email
to: parametros.useremail,//user email
subject: 'Welcome '+parametros.useremail+'.',
html: '<br><b>Hello</b><br>'+ // html
};
var smtpTransport = nodemailer.createTransport("SMTP",
{
service: "Gmail",
secureConnection: true,
auth:
{
user: "[email protected]",
pass: "7ftera359c28a",
},
});
smtpTransport.sendMail(mailOptions, function(err, response)
{
if(err)
{
smtpTransport.close();
console.warn(err);
return callback(err,null);
}else{
smtpTransport.close();
return callback(null,response);
}
});
}
이메일 확인을 보내지 만, 그것은 한계가있다 하루에.
그래서 난 TNX
편집 2
내가 가진 mailutils 설치 .... 제한이 내 이메일을 보내 이메일 서버를 사용할 필요가
을 적절를-얻고 지금은
시도mail [email protected]
Cc: // press enter
Subject: Welcome
Hello Mail.
// Ctrl+D
이 내 사서함에 이메일을 보내고 내가 이메일 [email protected]에서 보낸 스팸 메일에 수신
...때문에, 후위 노력하고 있습니다,하지만, 난 여전히 emailjs 또는 nodemailer와 이메일을 보낼 수 없습니다
나는 내가에서 검색이
smtp: '535 5.7.8 Error: authentication failed: generic failure\n'
을받을 이메일이나 nodemailer으로 이메일을 보내려고
Google에 오류가 있으며 인증 로그인 오류가 발생했습니다. 시스템에 로그인 할 수 없습니다. 그래서이 로그 파일Jun 20 15:50:16 myname postfix/smtpd[12528]: warning: localhost[127.0.0.1]: SASL login authentication failed: another step is needed in authentication
이다 내가 다시
220 mydomain.com ESMTP Postfix (Ubuntu)
ehlo localhost
250-mydomain.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH PLAIN LOGIN
250-AUTH=PLAIN LOGIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
AUTH LOGIN
334 VXNlcm5hbWU6
UbuntuUser
535 5.7.8 Error: authentication failed: another step is needed in authentication
을 시도하고 다시 루트
220 mydomain.com ESMTP Postfix (Ubuntu)
ehlo localhost
250-mydomain.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH PLAIN LOGIN
250-AUTH=PLAIN LOGIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
auth login
334 VXNlcm5hbWU6
root
334 UGFzc3dvcmQ6
rootPassword
535 5.7.8 Error: authentication failed: another step is needed in authentication
로 텔넷
telnet localhost 25
ehlo localhost
250-mydomain.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH PLAIN LOGIN
250-AUTH=PLAIN LOGIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
mail to: [email protected]
501 5.5.4 Syntax: MAIL FROM:<address>
mail from: [email protected]
250 2.1.0 Ok
rcpt to: [email protected]
451 4.3.0 <[email protected]>: Temporary lookup failure
data
554 5.5.1 Error: no valid recipients
AUTH LOGIN
503 5.5.1 Error: MAIL transaction in progress
으로 시도하고 그게 다에요. .. 프로는 어디 있습니까? 이것에서 흠집 ???
좋아, 내가 오류가이 메신저 .... 내가이 순간 – andrescabana86
에 노력하겠습니다을 찾고 무엇을 생각 : {[오류 : authorization.failed] 코드 : 3, 이전 : {[오류 : 'N2Z0ZXJhMzU5YzI4YQ =='] code : 2, smtp : '535 5.7.8 오류 : 인증 실패 : 일반 오류 \ n'}, smtp : undefined} – andrescabana86