Saved message in /usr/rp//dead.letter when sending e-mail on CentOS
0
votes
1
answer
2172
views
We just changed a server from RHEL to CentOS. We have some scripts which run some reports and e-mail them. The part that does the e-mailing is below.
function email_report
{
( echo "Report attached."; uuencode report.csv report.csv ) |
mail -s "Report" john.doe@example.com -- -f noreply@example.com
}
but the reports aren't received and we see this message:
> /usr/rp/dead.letter... Saved message in /usr/rp//dead.letter
Does anyone know how to solve this? It is just this script which is causing that message. Other scripts that send e-mail don't have an issue.
Contents of
dead.letter
:
From rp Fri Oct 7 11:56:02 2016
Return-Path:
Received: (from rp@localhost)
by EXAMPLESERVER.localdomain (8.14.4/8.14.4/Submit) id u97Au2No020739;
Fri, 7 Oct 2016 11:56:02 +0100
From: rp
Message-Id:
Date: Fri, 07 Oct 2016 11:56:02 +0100
To: noreply@example.com, -f, --, john.doe@example.com
Subject: Report
User-Agent: Heirloom mailx 12.4 7/29/08
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Report attached.
begin 664 OSWHMFHXSF.csv
M15)23U(Z"D]202TQ,C$U-#H@5$Y3.F-O=6QD(&YO="!R97-O;'9E('1H92!C
M;VYN96-T(&ED96YT:69I97(@U-94T1"07Q365-/4$52?5T*=VAE&ET:6YG(%-13"I0;'5S"@``
`
end
Asked by user6888062
(151 rep)
Oct 7, 2016, 10:11 AM
Last activity: Sep 15, 2024, 01:07 AM
Last activity: Sep 15, 2024, 01:07 AM