dbtoomey
By:
dbtoomey

Unable to get SendMail to work.

December 29, 2013 9.1k views
I set up my mx record to be "mail" with priority one. I am able to successfully ping mail@my-domain.com I've followed this documentation: https://wiki.archlinux.org/index.php/sendmail I then: $ sendmail -vt < test-message.txt The output looks like this (please note that I changed some of the stuff to hide my droplet name, domain name, and username. I've cap-locked those parts to make it obvious. WARNING: local host name (DROPLET) is not qualified; see cf/README: WHO AM I? TEST@EMAIL.COM... Connecting to [127.0.0.1] via relay... 220 MY-DOMAIN.COM ESMTP Sendmail 8.14.7/8.14.7; Mon, 23 Dec 2013 06:00:31 GMT >>> EHLO camille 250-MY-DOMAIN.COM Hello localhost.localdomain [127.0.0.1], pleased to meet you 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-EXPN 250-VERB 250-8BITMIME 250-SIZE 250-DSN 250-ETRN 250-DELIVERBY 250 HELP >>> VERB 250 2.0.0 Verbose mode >>> MAIL From: SIZE=111 050 ... Transient parse error -- message queued for future delivery 553 5.1.8 ... Domain of sender address MY-LOGIN@MY-DROPLET does not exist .../dead.letter... Saved message in .../dead.letter Closing connection to [127.0.0.1] >>> QUIT 221 2.0.0 MY-DOMAIN.COM closing connection
10 Answers
WARNING: local host name (MY-DROPLET) is not qualified; see cf/README: WHO AM I?
TEST@EMAIL.COM... Connecting to [127.0.0.1] via relay...
220 MY-DOMAIN.COM ESMTP Sendmail 8.14.7/8.14.7; Sun, 29 Dec 2013 05:01:15 GMT
>>> EHLO MY-DROPLET
250-MY-DOMAIN.COM Hello localhost.localdomain [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-EXPN
250-VERB
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-DELIVERBY
250 HELP
>>> VERB
250 2.0.0 Verbose mode
>>> MAIL From: SIZE=74
553 5.1.8 ... Domain of sender address MY-LOGIN@MY-DROPLET does not exist
MY-LOGIN... Using cached ESMTP connection to [127.0.0.1] via relay...
>>> RSET
250 2.0.0 Reset state
>>> MAIL From:<> SIZE=1098
250 2.1.0 <>... Sender ok
>>> RCPT To:
>>> DATA
250 2.1.5 ... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .
050 ... Connecting to local...
050 ... Sent
250 2.0.0 rBT51FM3009927 Message accepted for delivery
MY-LOGIN... Sent (rBT51FM3009927 Message accepted for delivery)
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 MY-DOMAIN.COM closing connection
Try entering the input manually rather than using a text file:

http://flurdy.com/docs/postfix/#test-postfix-receive

Do you get the same error?
when I do the telnet command from the article, I get:

Trying ::1...
Connection failed: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 MY-DOMAIN.COM ESMTP Sendmail 8.14.7/8.14.7; Sun, 29 Dec 2013 07:56:25 GMT

***

interesting to note than when I do:

sendmail -vf mail@my-domain.com me@my-email.com

The email comes in.
When I do the telnet operation, the email comes in as well.
Seems like it's working then :]
Okay... then why is it throwing the error that says my login name does not have an account?

This line:
Domain of sender address MY-LOGIN@MY-DROPLET does not exist

Why aren't I getting an email from the server? There must be something obvious here, but I don't know what it could be.
"I set up my mx record to be "mail" ..."

The MX records needs to be a FQDN, with a trailing dot (and requires a corresponding A record), e.g.,

(assuming you're using DigitalOcean DNS Manager):

A record: mail

MX record: mail.yourdomain.com.
by Etel Sverdlov
This article walks you through setting up the DNS for your site. The tutorial includes steps to set up an A records, point your nameservers, and provides some information about MX records.
I set up the MX record and went through setting up sendmail again, but still no dice.

I still get the same error as here:
Domain of sender address MY-LOGIN@MY-DROPLET does not exist

I would list all the sites and blogs I looked into for answers, but nothing seems to be working.
What operating system are you running?
Thanks for all the help guys. It turned out that I should have simply ignored that error. I sent a test email from the site and it works.
Have another answer? Share your knowledge.