We have CEntOS 6.3 on DELL server. WE try to use following mail command but failed. This command perfect work on CentOS 5.X. $ mail -s "test..." user1@sun.com -- -f NoReply@App.MD.gov test . EOT $ /home/app/oracle/dead.letter... Saved message in /home/app/oracle/dead.letter
problem come from "-- -f NoReply@App.MD.gov". But it work correctly on CentOS 5.x. Anyone know how to fix it? Thanks
On 05/19/2015 10:07 AM, mcclnx mcc wrote:
We have CEntOS 6.3 on DELL server. WE try to use following mail command but failed. This command perfect work on CentOS 5.X. $ mail -s "test..." user1@sun.com -- -f NoReply@App.MD.gov test . EOT $ /home/app/oracle/dead.letter... Saved message in /home/app/oracle/dead.letter
problem come from "-- -f NoReply@App.MD.gov". But it work correctly on CentOS 5.x. Anyone know how to fix it?
CentOS 6 man page says '-f' means "mail the contents of the file." YOu probably want '-r'
I have tried "-r" but still not work.
Tim Evans tkevans@tkevans.com 於 2015/5/19 (週二) 10:14 AM 寫道﹕
On 05/19/2015 10:07 AM, mcclnx mcc wrote:
We have CEntOS 6.3 on DELL server. WE try to use following mail command but failed. This command perfect work on CentOS 5.X. $ mail -s "test..." user1@sun.com -- -f NoReply@App.MD.gov test . EOT $ /home/app/oracle/dead.letter... Saved message in /home/app/oracle/dead.letter
problem come from "-- -f NoReply@App.MD.gov". But it work correctly on CentOS 5.x. Anyone know how to fix it?
CentOS 6 man page says '-f' means "mail the contents of the file." YOu probably want '-r'
寫
On 05/19/2015 10:07 AM, mcclnx mcc wrote: We have CEntOS 6.3 on DELL server. WE try to use following mail command but failed. This command perfect work on CentOS 5.X. $ mail -s "test..." user1@sun.com -- -f NoReply@App.MD.gov test . EOT $ /home/app/oracle/dead.letter... Saved message in /home/app/oracle/dead.letter
problem come from "-- -f NoReply@App.MD.gov". But it work correctly on CentOS 5.x. Anyone know how to fix it?
Tim Evans tkevans@tkevans.com ? 2015/5/19 (??) 10:14 AM CentOS 6 man page says '-f' means "mail the contents of the file." YOu probably want '-r'
Date: Tuesday, May 19, 2015 02:34:19 PM +0000 From: mcclnx mcc mcclnx@yahoo.com.tw
I have tried "-r" but still not work.
The -r should work with mailx, but you need to drop the "--", which was a flag for mail, and doesn't work with mailx. [see my previous message about the mail program/flag changes between 5 and 6/7.]
mcclnx mcc wrote:
We have CEntOS 6.3 on DELL server. WE try to use following mail command but failed. This command perfect work on CentOS 5.X. $ mail -s "test..." user1@sun.com -- -f NoReply@App.MD.gov test . EOT $ /home/app/oracle/dead.letter... Saved message in /home/app/oracle/dead.letter
problem come from "-- -f NoReply@App.MD.gov". But it work correctly on CentOS 5.x. Anyone know how to fix it? Thanks
A couple of unrelated questions: 1. Why 6.3 - why not upgrade to 6.6, with all the security and bugfixes. 2. On a more personal and professional note: you're email is from Taiwan. Why are you sending osmething from some app to the government of my state, Maryland, in the US?
mark