Saved message in /usr/rp//dead.letter when sending e-mail on CentOS The 2019 Stack Overflow Developer Survey Results Are InApache mail sending flowchart / workflow?Sending mail using sendmailprivoxy show client ip when sending mailSending mail to lan ip failedWhy doesn't sendmail validate credentials before sending out a mailSending mail using Sendmail : DSesmtp settingHow to send raw mail message on Linux?Sending mail with sendmail and attachmentSending attachments with GNU mail to @kindle.comLinux Mailx is creating a dead.letter and not sending email
Falsification in Math vs Science
Does a dangling wire really electrocute me if I'm standing in water?
Why is the maximum length of OpenWrt’s root password 8 characters?
What tool would a Roman-age civilization have to grind silver and other metals into dust?
Spanish for "widget"
How was Skylab's orbit inclination chosen?
How are circuits which use complex ICs normally simulated?
Why don't Unix/Linux systems traverse through directories until they find the required version of a linked library?
Why is Grand Jury testimony secret?
Limit the amount of RAM Mathematica may access?
What do the Banks children have against barley water?
What does "rabbited" mean/imply in this sentence?
What does "sndry explns" mean in one of the Hitchhiker's guide books?
Inline version of a function returns different value than non-inline version
Where to refill my bottle in India?
Idiomatic way to prevent slicing?
Extreme, unacceptable situation and I can't attend work tomorrow morning
How to deal with fear of taking dependencies
Carnot-Caratheodory metric
If the Wish spell is used to duplicate the effect of Simulacrum, are existing duplicates destroyed?
Why do UK politicians seemingly ignore opinion polls on Brexit?
What is the steepest angle that a canal can be traversable without locks?
Should I use my personal or workplace e-mail when registering to external websites for work purpose?
Patience, young "Padovan"
Saved message in /usr/rp//dead.letter when sending e-mail on CentOS
The 2019 Stack Overflow Developer Survey Results Are InApache mail sending flowchart / workflow?Sending mail using sendmailprivoxy show client ip when sending mailSending mail to lan ip failedWhy doesn't sendmail validate credentials before sending out a mailSending mail using Sendmail : DSesmtp settingHow to send raw mail message on Linux?Sending mail with sendmail and attachmentSending attachments with GNU mail to @kindle.comLinux Mailx is creating a dead.letter and not sending email
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
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
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: <rp>
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: <201610071056.u97Au2No020739@EXAMPLESERVER.localdomain>
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(@<W!E8VEF:65D"@H*4U`R+3`S,#8Z($EN=F%L
M:60@;W!T:6]N+@I5<V%G93H@0T].3EM%0U1=(%ML;V=O;ET@6T%3('M365-$
M0D%4UE33U!%4GU="G=H97)E(#QL;V=O;CX@(#HZ/2`=7-E<FYA;64^6R\
M<&%S<W=O<F0^75M`/&-O;FYE8W1?:61E;G1I9FEE<CY=('P@+PI34#(M,#,P
M-CH@26YV86QI9"!O<'1I;VXN"E5S86=E.B!#3TY.6T5#5%T@6VQO9V]N72!;
M05,@>U-94T1"07Q365-/4$52?5T*=VAE<F4@/&QO9V]N/B`@.CH](#QU<V5R
M;F%M93Y;+SQP87-S=V]R9#Y=6T`8V]N;F5C=%]I9&5N=&EF:65R/ET@?"`O
M"E-0,BTP,34W.B!U;F%B;&4@=&@0T].3D5#5"!T;R!/4D%#3$4@869T97(@
<,R!A='1E;7!T<RQE>&ET:6YG(%-13"I0;'5S"@``
`
end
centos email sendmail
add a comment |
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
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: <rp>
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: <201610071056.u97Au2No020739@EXAMPLESERVER.localdomain>
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(@<W!E8VEF:65D"@H*4U`R+3`S,#8Z($EN=F%L
M:60@;W!T:6]N+@I5<V%G93H@0T].3EM%0U1=(%ML;V=O;ET@6T%3('M365-$
M0D%4UE33U!%4GU="G=H97)E(#QL;V=O;CX@(#HZ/2`=7-E<FYA;64^6R\
M<&%S<W=O<F0^75M`/&-O;FYE8W1?:61E;G1I9FEE<CY=('P@+PI34#(M,#,P
M-CH@26YV86QI9"!O<'1I;VXN"E5S86=E.B!#3TY.6T5#5%T@6VQO9V]N72!;
M05,@>U-94T1"07Q365-/4$52?5T*=VAE<F4@/&QO9V]N/B`@.CH](#QU<V5R
M;F%M93Y;+SQP87-S=V]R9#Y=6T`8V]N;F5C=%]I9&5N=&EF:65R/ET@?"`O
M"E-0,BTP,34W.B!U;F%B;&4@=&@0T].3D5#5"!T;R!/4D%#3$4@869T97(@
<,R!A='1E;7!T<RQE>&ET:6YG(%-13"I0;'5S"@``
`
end
centos email sendmail
Which user is running the script/sending the email? What does dead letter say?
– Rui F Ribeiro
Oct 7 '16 at 10:14
I have added the contents ofdead.letter
, notice the strangeTo:
line. We have old RHEL servers still running this script fine. It's just this new server (CentOS) which can't.
– user6888062
Oct 7 '16 at 10:58
add a comment |
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
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: <rp>
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: <201610071056.u97Au2No020739@EXAMPLESERVER.localdomain>
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(@<W!E8VEF:65D"@H*4U`R+3`S,#8Z($EN=F%L
M:60@;W!T:6]N+@I5<V%G93H@0T].3EM%0U1=(%ML;V=O;ET@6T%3('M365-$
M0D%4UE33U!%4GU="G=H97)E(#QL;V=O;CX@(#HZ/2`=7-E<FYA;64^6R\
M<&%S<W=O<F0^75M`/&-O;FYE8W1?:61E;G1I9FEE<CY=('P@+PI34#(M,#,P
M-CH@26YV86QI9"!O<'1I;VXN"E5S86=E.B!#3TY.6T5#5%T@6VQO9V]N72!;
M05,@>U-94T1"07Q365-/4$52?5T*=VAE<F4@/&QO9V]N/B`@.CH](#QU<V5R
M;F%M93Y;+SQP87-S=V]R9#Y=6T`8V]N;F5C=%]I9&5N=&EF:65R/ET@?"`O
M"E-0,BTP,34W.B!U;F%B;&4@=&@0T].3D5#5"!T;R!/4D%#3$4@869T97(@
<,R!A='1E;7!T<RQE>&ET:6YG(%-13"I0;'5S"@``
`
end
centos email sendmail
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
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: <rp>
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: <201610071056.u97Au2No020739@EXAMPLESERVER.localdomain>
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(@<W!E8VEF:65D"@H*4U`R+3`S,#8Z($EN=F%L
M:60@;W!T:6]N+@I5<V%G93H@0T].3EM%0U1=(%ML;V=O;ET@6T%3('M365-$
M0D%4UE33U!%4GU="G=H97)E(#QL;V=O;CX@(#HZ/2`=7-E<FYA;64^6R\
M<&%S<W=O<F0^75M`/&-O;FYE8W1?:61E;G1I9FEE<CY=('P@+PI34#(M,#,P
M-CH@26YV86QI9"!O<'1I;VXN"E5S86=E.B!#3TY.6T5#5%T@6VQO9V]N72!;
M05,@>U-94T1"07Q365-/4$52?5T*=VAE<F4@/&QO9V]N/B`@.CH](#QU<V5R
M;F%M93Y;+SQP87-S=V]R9#Y=6T`8V]N;F5C=%]I9&5N=&EF:65R/ET@?"`O
M"E-0,BTP,34W.B!U;F%B;&4@=&@0T].3D5#5"!T;R!/4D%#3$4@869T97(@
<,R!A='1E;7!T<RQE>&ET:6YG(%-13"I0;'5S"@``
`
end
centos email sendmail
centos email sendmail
edited Oct 7 '16 at 10:58
user6888062
asked Oct 7 '16 at 10:11
user6888062user6888062
2115
2115
Which user is running the script/sending the email? What does dead letter say?
– Rui F Ribeiro
Oct 7 '16 at 10:14
I have added the contents ofdead.letter
, notice the strangeTo:
line. We have old RHEL servers still running this script fine. It's just this new server (CentOS) which can't.
– user6888062
Oct 7 '16 at 10:58
add a comment |
Which user is running the script/sending the email? What does dead letter say?
– Rui F Ribeiro
Oct 7 '16 at 10:14
I have added the contents ofdead.letter
, notice the strangeTo:
line. We have old RHEL servers still running this script fine. It's just this new server (CentOS) which can't.
– user6888062
Oct 7 '16 at 10:58
Which user is running the script/sending the email? What does dead letter say?
– Rui F Ribeiro
Oct 7 '16 at 10:14
Which user is running the script/sending the email? What does dead letter say?
– Rui F Ribeiro
Oct 7 '16 at 10:14
I have added the contents of
dead.letter
, notice the strange To:
line. We have old RHEL servers still running this script fine. It's just this new server (CentOS) which can't.– user6888062
Oct 7 '16 at 10:58
I have added the contents of
dead.letter
, notice the strange To:
line. We have old RHEL servers still running this script fine. It's just this new server (CentOS) which can't.– user6888062
Oct 7 '16 at 10:58
add a comment |
1 Answer
1
active
oldest
votes
The dead.letter
thing is easy to explain: This is the standard reaction if a mail should be sent but no method of delivery can be found by the mail-sending software.
So you need to find out why this script does not work while the others don't.
First step to try is to run the mail commands of a succeeding and the failing scripts from the command line. With that, find out whether it is a wrong command-line option (these can vary between distros), or some environmental difference (such as environment variable, or shell aliases, or shell functions).
If you can reproduce the difference on the command line, check the parameters and fix them.
If you cannot, insert a which mail
line before the mail-sending line in the failing script, so that you see whether it is running the mail
binary, a shell alias, or a shell function.
If the failing script is running the expected binary, it could be an environment variable that it is setting in a way that fits RHEL but not CentOS.
In other words: Investigate possible differences until you find the culprit.
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f314935%2fsaved-message-in-usr-rp-dead-letter-when-sending-e-mail-on-centos%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
The dead.letter
thing is easy to explain: This is the standard reaction if a mail should be sent but no method of delivery can be found by the mail-sending software.
So you need to find out why this script does not work while the others don't.
First step to try is to run the mail commands of a succeeding and the failing scripts from the command line. With that, find out whether it is a wrong command-line option (these can vary between distros), or some environmental difference (such as environment variable, or shell aliases, or shell functions).
If you can reproduce the difference on the command line, check the parameters and fix them.
If you cannot, insert a which mail
line before the mail-sending line in the failing script, so that you see whether it is running the mail
binary, a shell alias, or a shell function.
If the failing script is running the expected binary, it could be an environment variable that it is setting in a way that fits RHEL but not CentOS.
In other words: Investigate possible differences until you find the culprit.
add a comment |
The dead.letter
thing is easy to explain: This is the standard reaction if a mail should be sent but no method of delivery can be found by the mail-sending software.
So you need to find out why this script does not work while the others don't.
First step to try is to run the mail commands of a succeeding and the failing scripts from the command line. With that, find out whether it is a wrong command-line option (these can vary between distros), or some environmental difference (such as environment variable, or shell aliases, or shell functions).
If you can reproduce the difference on the command line, check the parameters and fix them.
If you cannot, insert a which mail
line before the mail-sending line in the failing script, so that you see whether it is running the mail
binary, a shell alias, or a shell function.
If the failing script is running the expected binary, it could be an environment variable that it is setting in a way that fits RHEL but not CentOS.
In other words: Investigate possible differences until you find the culprit.
add a comment |
The dead.letter
thing is easy to explain: This is the standard reaction if a mail should be sent but no method of delivery can be found by the mail-sending software.
So you need to find out why this script does not work while the others don't.
First step to try is to run the mail commands of a succeeding and the failing scripts from the command line. With that, find out whether it is a wrong command-line option (these can vary between distros), or some environmental difference (such as environment variable, or shell aliases, or shell functions).
If you can reproduce the difference on the command line, check the parameters and fix them.
If you cannot, insert a which mail
line before the mail-sending line in the failing script, so that you see whether it is running the mail
binary, a shell alias, or a shell function.
If the failing script is running the expected binary, it could be an environment variable that it is setting in a way that fits RHEL but not CentOS.
In other words: Investigate possible differences until you find the culprit.
The dead.letter
thing is easy to explain: This is the standard reaction if a mail should be sent but no method of delivery can be found by the mail-sending software.
So you need to find out why this script does not work while the others don't.
First step to try is to run the mail commands of a succeeding and the failing scripts from the command line. With that, find out whether it is a wrong command-line option (these can vary between distros), or some environmental difference (such as environment variable, or shell aliases, or shell functions).
If you can reproduce the difference on the command line, check the parameters and fix them.
If you cannot, insert a which mail
line before the mail-sending line in the failing script, so that you see whether it is running the mail
binary, a shell alias, or a shell function.
If the failing script is running the expected binary, it could be an environment variable that it is setting in a way that fits RHEL but not CentOS.
In other words: Investigate possible differences until you find the culprit.
answered Sep 29 '18 at 18:14
toolforgertoolforger
1512
1512
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f314935%2fsaved-message-in-usr-rp-dead-letter-when-sending-e-mail-on-centos%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Which user is running the script/sending the email? What does dead letter say?
– Rui F Ribeiro
Oct 7 '16 at 10:14
I have added the contents of
dead.letter
, notice the strangeTo:
line. We have old RHEL servers still running this script fine. It's just this new server (CentOS) which can't.– user6888062
Oct 7 '16 at 10:58