Solved

Sendmail reply-to null

Posted on 2006-07-13
7
378 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
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…

728 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now