[Ubuntu 14.04 LAMP] Installed sendmail -- fatal error when I sent first message
OS: Ubuntu 14.04
I followed Jonathan’s instructions from from this post.
I created a test email and saved it at
I tried to send a test email from a text file to my Yahoo email account using this command:
sendmail email@example.com < /tmp/email.txt
The process completed.
When I logged back in, it said I had mail.
I installed mailutils to read the mail. It was a returned message saying sendmail couldn’t send the message and it mentioned a fatal error.
Here is the complete message:
From MAILER-DAEMON Fri Nov 13 11:22:34 2015 Return-Path: <MAILER-DAEMON> Received: from localhost (localhost) by roypenroddotcom (8.14.4/8.14.4/Debian-4.1ubuntu1) id tADGMYu6005485; Fri, 13 Nov 2015 11:22:34 -0500 Date: Fri, 13 Nov 2015 11:22:34 -0500 From: Mail Delivery Subsystem <MAILER-DAEMON> Message-Id: <201511131622.tADGMYu6005485@roypenroddotcom> To: <roy@roypenroddotcom> MIME-Version: 1.0 Content-Type: multipart/report; report-type=delivery-status; boundary="tADGMYu6005485.1447431754/roypenroddotcom" Subject: Returned mail: see transcript for details Auto-Submitted: auto-generated (failure) This is a MIME-encapsulated message --tADGMYu6005485.1447431754/roypenroddotcom The original message was received at Fri, 13 Nov 2015 11:22:33 -0500 from localhost [127.0.0.1] ----- The following addresses had permanent fatal errors ----- <firstname.lastname@example.org> (reason: 501 Syntax error in parameters or arguments) ----- Transcript of session follows ----- ... while talking to mta7.am0.yahoodns.net.: >>> MAIL From:<roy@roypenroddotcom> SIZE=637 <<< 501 Syntax error in parameters or arguments 501 5.6.0 Data format error --tADGMYu6005485.1447431754/roypenroddotcom Content-Type: message/delivery-status Reporting-MTA: dns; roypenroddotcom Received-From-MTA: DNS; localhost Arrival-Date: Fri, 13 Nov 2015 11:22:33 -0500 Final-Recipient: RFC822; email@example.com Action: failed Status: 5.5.2 Diagnostic-Code: SMTP; 501 Syntax error in parameters or arguments Last-Attempt-Date: Fri, 13 Nov 2015 11:22:34 -0500 --tADGMYu6005485.1447431754/roypenroddotcom Content-Type: text/rfc822-headers Return-Path: <roy@roypenroddotcom> Received: from roypenroddotcom (localhost [127.0.0.1]) by roypenroddotcom (8.14.4/8.14.4/Debian-4.1ubuntu1) with ESMTP id tADGMXu6005483 for <firstname.lastname@example.org>; Fri, 13 Nov 2015 11:22:33 -0500 Received: (from roy@localhost) by roypenroddotcom (8.14.4/8.14.4/Submit) id tADGMXlU005480 for email@example.com; Fri, 13 Nov 2015 11:22:33 -0500 Date: Fri, 13 Nov 2015 11:22:33 -0500 From: Roy Penrod <roy@roypenroddotcom> Message-Id: <201511131622.tADGMXlU005480@roypenroddotcom> Subject: Terminal Email Send --tADGMYu6005485.1447431754/roypenroddotcom--
I noticed the return-path is roy@roypenroddotcom. I named my host roypenroddotcom because it’s hosting my own personal site, roypenrod.com.
I’m very new to Linux, so I didn’t know the hostname would affect this. How do I change it so my email address is actually firstname.lastname@example.org?
Why did the sendmail fail? Was it the incorrect email address? Did I set something up wrong? Do I need to configure sendmail?
Any help you can give me is very much appreciated.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×