LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 01-27-2010, 03:58 PM   #1
corrosivemisery
LQ Newbie
 
Registered: Jul 2007
Posts: 19

Rep: Reputation: 9
Solaris: Setting a reply to address for a particular account


I have a Solaris server that sends emails and I use Google Apps for office mail. I've setup and group in GA to take care of emails for the group of people that receive emails for the project.

What I need is to find a way to make the emails from the Unix server have a reply to address matching that Google group.

Example:

Server: Unixmailer (FQDN: Unixmailer.co.somecompany.com)
Unix Account: unixaccount
Internal domain name is "co.somecompany.com"
External is "somecompany.com"

Some email servers reject unixaccount@unixmailer.co.somecompany.com due to no DNS entry for it in the cloud. Also poses the risk that if someone were to reply, it would fail vs. going to the Google group for a response. So I need a way to make the reply to address unixaccount@somecompany.com (the group).

The system sends email via the sendmail server but doesn't use mailx, so I can't just use the from flags for mailx.

Any help appreciated.

Thanks,
-Corr
 
Old 01-29-2010, 03:12 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

You can use the following command to change the From: address:
Code:
echo -e "Subject:Project\nFrom:unixaccount@somecompany.com"`cat mail.txt` | sendmail recipient@gmail.com
Regards

Last edited by bathory; 01-29-2010 at 03:13 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Solaris 8 - disable user account noir911 Solaris / OpenSolaris 4 02-18-2009 02:46 AM
How to : Find Account Lockout Setting in Solaris 5.8 & 5.9 avklinux Solaris / OpenSolaris 1 12-12-2008 01:09 PM
Auto reply with postfix and procmail . my setting dosnt's work.? combilli Linux - Software 1 11-03-2006 09:16 AM
Reply::Finding ip address again rupeshdwivedi Linux - Networking 1 09-01-2005 04:03 AM
set reply to address on mailx hamish Linux - Newbie 3 05-31-2005 02:28 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 05:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration