Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Sendmail reply-to null

Posted on 2006-07-13
7
Medium Priority
?
397 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
  • 3
  • 2
5 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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
Course of the Month6 days, 14 hours left to enroll

782 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