1847203 Members
3183 Online
110263 Solutions
New Discussion

Re: MAILX

 
Josee Bourget-Thuma
Frequent Advisor

MAILX

2 things:

A- I want to prevent exchange autoreply system from from cluttering the HP mail logs. I found some info but not enough details for me to go further.

B- I also want to use the sendto replyto options with mailx but cannot figure out the proper syntax.

Thanks in advance for your help!

Failure is not an option.
6 REPLIES 6
Dave Kelly_1
Respected Contributor

Re: MAILX

I need more information if I can help you further:

1) Blocking auto-replies from Exchange depends on what user name the messages have. If they are from a MAILER-DAEMON type address, you have to be careful because it is likely you will also block non-delivery messages which you probably want.

2) What problem are you having with the options. Are you running mailx interactively ?
Josee Bourget-Thuma
Frequent Advisor

Re: MAILX

Dave,

Thanks for replying.

A- I'd like to block autoreplies which come from users who set autoreply while they are away from work.

B- The mailx command is run from withing a shell script and sends various reports to outside users. The autoreplies in item A are generated following the mailx discussed in item B.

Thanks!
Josee
Failure is not an option.
James H. Trice Ph.D.
Occasional Advisor

Re: MAILX

Take a look at procmail. It is freely available on the net and relatively easy to compile and setup some simple filters on an individual account.
One source
ftp://gatekeeper.dec.com/pub/BSD/FreeBSD/packages/All/procmail-3.13.1.tgz
Jim Trice
Volker Borowski
Honored Contributor

Re: MAILX

Hi Josee,

no idea how to avoid auto-replys.

Use MAILX like this:

mailx -r somebody@somewhere.com -t
To: friend@company.com
Reply-To: autoreply@trash.dump
Subject: Urgent Report
Bla bla blaBla bla blaBla bla blaBla bla
blaBla bla blaBla bla blaBla bla blaBla
bla blaBla bla blaBla bla blaBla bla
blaBla bla bla


Hope this helps
Volker

Josee Bourget-Thuma
Frequent Advisor

Re: MAILX

Thanks Volker, I got that much in my scripts. I also know there is a way to use it with "sentto" and "replyto". I just can't nail the syntax. Thanks for trying to help.

Josee
Failure is not an option.
Volker Borowski
Honored Contributor

Re: MAILX

Hello Josee,

#+*~@@@ (sorry) I checked that syntax on one of my solaris-boxes....... #+**#@@~

it works there just like that.
It is "-t" as the option, that makes the fields
"To:" and "Reply-To:" work.

BUT !!!!!

I managed a way using "mail" not "mailx" on HP-UX

Just have it:
--------------------------
mail e-mail-target
To: e-mail-target
From: e-mail-sender
Reply-To: e-mail-reply-target
Subject: Test
Blabla ,,,,


Hope this really helps :-)
Volker