user7030890
user7030890

Reputation:

ssmtp: 550 invalid DNS MX or A/AAAA resource record

I am trying to send a mail from centos machine, but I came to a problem. I have installed "mail" and ssmtp inside my linux machine and I got this response when I try to send a mail.

ssmtp: 550 invalid DNS MX or A/AAAA resource record

FromLineOverride=YES mailhub=smtp.1und1.de:587 UseSTARTTLS=YES

Of course, with the correct password and user. I have tried already couple of users and everybody are returning the same. I have tried even with my own user and the password that I have, but it won't work. If you have any other approaches to this problem let me know also.

What am I doing wrong ?

Upvotes: 4

Views: 3493

Answers (1)

Sepultura
Sepultura

Reputation: 1047

The problem seems to be the FROM address for the SMTP envelope. Some SMTP servers will ignore an invalid value like Gmail for example (that's why it worked for me with Gmail) but if you're using 1und1 SMTP-Server you have to override the domain if it's not the same as the mail domain (e.g. if you're on a local test server). You can override the domain in the /etc/ssmtp/ssmtp.conf:

Assuming your email is: [email protected]

rewriteDomain=yourdomain.de

Upvotes: 3

Related Questions