Solved

Sendmail reply-to null

Posted on 2006-07-13
7
389 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 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
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…
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 navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses

623 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