FW: Sending Email from script
I got the following email on the servers local mail system when I tried
to email myself using the command below.
Any ideas?
Message 1:
>From MAILER-DAEMON Tue Jul 17 08:28:13 2007
Envelope-to: root@student-test.ucwv.edu
Delivery-date: Tue, 17 Jul 2007 08:28:13 -0400
X-Failed-Recipients: myaddress@ucwv.edu
Auto-Submitted: auto-replied
From: Mail Delivery System <Mailer-Daemon@student-test.ucwv.edu>
To: root@student-test.ucwv.edu
Subject: Mail delivery failed: returning message to sender
Date: Tue, 17 Jul 2007 08:28:13 -0400
This message was created automatically by mail delivery software.
A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:
myaddress@ucwv.edu
Mailing to remote domains not supported
------ This is a copy of the message, including all the headers. ------
Return-path: <root@student-test.ucwv.edu>
Received: from root by student-test.ucwv.edu with local (Exim 4.63)
(envelope-from <root@student-test.ucwv.edu>)
id 1IAmA1-0005wB-GJ
for myaddress@ucwv.edu; Tue, 17 Jul 2007 08:28:13 -0400
To: myaddress@ucwv.edu
Subject: Test email from linux
Message-Id: <E1IAmA1-0005wB-GJ@student-test.ucwv.edu>
From: root <root@student-test.ucwv.edu>
Date: Tue, 17 Jul 2007 08:28:13 -0400
Nathan
-----Original Message-----
From: Mace, Nathan
Sent: Wednesday, July 18, 2007 12:21 PM
To: 'Jon Dowland'
Subject: RE: Sending Email from script
I've uninstalled Sendmail and installed Exim4 and reconfigured it.
After doing that, I still can't send email. Doing a "date | mail -s
"testing" your.address" with my email address doesn't get me anything.
Any idea what I'm going wrong?
Nathan
-----Original Message-----
From: Jon Dowland [mailto:jon.dowland@ncl.ac.uk]
Sent: Wednesday, July 18, 2007 11:51 AM
To: debian-user@lists.debian.org
Subject: Re: Sending Email from script
> I've installed sendmail, but I'm not having much luck getting it to
> work. When I attempt to send messages from the command line by doing
> "sendmail myemail@mydomain.com"
> it appears to go, but I never get the email. Any help would be
> appreciated.
Debian comes with exim4 by default. You will probably have had this
removed by installing sendmail. Unless you are already a sendmail guru,
I'd recommend reinstalling exim4.
You can reconfigure it using "dpkg-reconfigure exim4-config". Most of
the questions are straightforward.
There is additional information available at
<http://wiki.debian.org/PkgExim4UserFAQ>.
Exim4 and most MTAs come with a "sendmail" binary that supports the same
options as the traditional sendmail does:
however, for command line mailing, "mail" or "mail x" are best.
Try:
date | mail -s "testing" your.address
And read /var/log/exim4/mainlog to see what happened.
--
Jon Dowland
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact
listmaster@lists.debian.org
Reply to: