Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Sendmail reply-to null

Posted on 2006-07-13
7
Medium Priority
?
392 Views
Last Modified: 2013-12-27
When our application sends an email on a solaris 5.8 system it sends it with the reply to address user@domain.com.
When our users recieve the file and reply-to or reply-to-all... the system recieves that mail message and we want to stop that...

Is there an option setting so we can set the reply-to so when the mailhost automatically drops the return message?

using a mailx and a javamail.api command through sendmail
0
Comment
Question by:kevinfo1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
7 Comments
 
LVL 48

Expert Comment

by:Tintin
ID: 17104395
Kind of depends on how standard compliant yoru javamail app is.

Good MUA's will use

X-Reply-To header, eg:

X-Reply-To: devnull@domain.com

where devnull is a alias

devnull:  /dev/null

ie: throw the mail to the bit bucket.
0
 

Author Comment

by:kevinfo1
ID: 17110895
does this get set in the /home/.mailrc?

I am more concerned with how mailx will handle this.
0
 
LVL 48

Expert Comment

by:Tintin
ID: 17118367
So when you say your "application sends an email", you are really referring to mailx?  If so, do

mailx -r devnull@domain.com .........

0
 

Author Comment

by:kevinfo1
ID: 17123581
This changes the from address to the devnull... how do I keep the user id as the from?
0
 
LVL 48

Accepted Solution

by:
Tintin earned 2000 total points
ID: 17126029
I don't think mailx has the ability to change the mail envelope.  You might have to try something along the lines of:

message=`cat /your/mail/message`

/usr/lib/sendmail -oi -t <<EOF
From: user@example.com
To: users@example.com
X-Reply-To: devnull@example.com
Subject: Email

$message
EOF

0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question