Solved

Sendmail reply-to null

Posted on 2006-07-13
7
385 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
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 500 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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Suggested Solutions

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
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…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

808 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