- I normally don't have to do much with setting up Ubuntu email, so I'm basically a beginner at it, please be kind.
- I have Sendemail 1.56 by Brandon Sehm on Ubuntu 14.04.02LTS. The Ubuntu machine name is "ubuntucomp.net". Sendemail is the only mail package that doesn't require an MTA and full registered domain address. My VM Ubuntu machine does not have a registered domain because I only want to send email within our local network.
- Email is outgoing only from ubuntu.net. There is no need to receive email.
- I use Sendemail from the command line to send emails with attachments, which are backups of Perl files. Backups are run by cron and the job backs up files and emails them to my work address, email@example.com, within our network.
- smtp.mywork.com uses a non standard port, 2500, which I specify on the sendemail command line:
sendemail -f firstname.lastname@example.org -t email@example.com -u "Perl test ubuntu backups $zipfile" -s smtp.mywork.com:2500 -l $basedir/smtp.log -S /usr/sbin/sendmail -a $zipfile < $basedir/mailbody.txt
- Sendemail seems to use /usr/sbin/sendmail.
- The new smtp server Sendemail does not work with is smtp.mywork.com. It requires no username and no password for authentication, but the From: address must be "firstname.lastname@example.org".
- I will never have admin access to smtp.mywork.com, and no one else does either. So let's not go there. I have to work around this. I know it's silly, but there's nothing I can do about that.
- Also, the new smtp.mywork.com works fine with my other perl programs running on this same machine, but not with sendemail from the command line.
Sendemail worked fine with one Godaddy server, but now I have to change servers to use one in our own network, call it smtp.mywork.com, set up by someone else. Also, the new smtp.mywork.com works fine with my other perl programs, but not with sendemail. I've double checked the man pages, googled for answers, but found nothing helpful.
The original message was received at Thu, 6 Aug 2015 13:49:44 -0400 from localhost [127.0.0.1] ----- The following addresses had permanent fatal errors ----- <email@example.com> (reason: 550 relay not permitted) ----- Transcript of session follows ----- ... while talking to mywork.com.: >>> DATA <<< 550 relay not permitted 550 5.1.1 <firstname.lastname@example.org>... User unknown <<< 503-All RCPT commands were rejected with this error: <<< 503-relay not permitted <<< 503 Valid RCPT command must precede DATA [ Part 2: "Delivery Status" ] Reporting-MTA: dns; ubuntucomp.net Received-From-MTA: DNS; localhost Arrival-Date: Thu, 6 Aug 2015 13:49:44 -0400 Final-Recipient: RFC822; email@example.com Action: failed Status: 5.1.1 Remote-MTA: DNS; mywork.com Diagnostic-Code: SMTP; 550 relay not permitted Last-Attempt-Date: Thu, 6 Aug 2015 13:49:44 -0400 Return-Path: <firstname.lastname@example.org> Received: from ubuntucomp.net (localhost [127.0.0.1]) by ubuntucomp.net (8.14.4/8.14.4/Debian-4.1ubuntu1) with ESMTP id t76Hni3S011456 for <email@example.com>; Thu, 6 Aug 2015 13:49:44 -0400 Received: (from chuck@localhost) by ubuntucomp.net (8.14.4/8.14.4/Submit) id t76HniR9011455; Thu, 6 Aug 2015 13:49:44 -0400 Message-ID: <741542.889128567-sendEmail@ubuntucomp> From: "firstname.lastname@example.org" <email@example.com> To: "firstname.lastname@example.org" <email@example.com> Subject: Perl prod ubuntu backups /home/comp/perl/backprod-ub20150806.zip Date: Thu, 6 Aug 2015 17:49:44 +0000 X-Mailer: sendEmail-1.56 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----MIME delimiter for sendEmail-327729.490659298"
When I try to use Sendemail, Sendemail says email was sent, which it was, but then I immediately get back an error message, which is above. My questions.
- Which software is sending me the email error? Is it from my Ubuntu machine? If so, what config files do I have to change so it works with smtp.mywork.com?
- Does sendemail even read a config file on Ubuntu before it sends the email off the machine?
- How do I fix this problem so Sendemail works?
- Why does my error message also say
550 5.1.1 <firstname.lastname@example.org>... User unknown? Is that the root problem?