Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

error 550 Domain not allowed in header from

I am trying to get namecheap c-panel email hooked up with my nodemailer server instance but I am unable to find how to do that.

here is my nodemailer code

let transporter = nodemailer.createTransport({
   host: "premium174.web-hosting.com",
   port: 465,
   secure: true,
   auth: {
      user: username,
      pass: password
   },
   connectionTimeout: 30000
});

from part in the sendMail method contains the email I am logging in to

I am able to establish a connection the server using these details but I can't send any email, AT ALL. anytime I try to send it the error I get is

code: 'EENVELOPE',
  response: '550-"Your IP: my-ip-here : Your domain domain-here is not allowed in header\n' +
    '550 From"',
  responseCode: 550,
  command: 'RCPT TO'

the send mail part is all correct and it works with the other emails I have but this one just would not work

like image 552
JohnSmith Avatar asked Oct 18 '25 04:10

JohnSmith


1 Answers

You can visit Email Routing from cPanel and choose "Local Mail Exchanger" under Configure Email Routing.

like image 54
Shadow Avatar answered Oct 23 '25 22:10

Shadow