[SUMMARY #2] sendmail - Convert local mail to internet mal?

From: Ryan Anderson <Ryan.Anderson_at_baesystems.com>
Date: Wed Jan 25 2006 - 14:15:09 EST
I just got this response, which was exactly what I was looking for from Sal
Serafino:

===========
I didn't see your original post, sorry.  I accomplish this by setting:

DScshl.edu
DRcshl.edu
DHcshl.edu
DMcshl.edu

These require LOCAL_RELAY and MASQUERADE_DOMAIN.  Also, look at classes E, L,
M,
and N.  Beats the b'geezus out of setting up aliases!

Hope this helps,
-Sal
=============

RCA
--
UNIX Administrator - BAE Systems Land & Armaments
Desk: 763-572-6684 Pager: 952-235-9936


>>> "Ryan Anderson" <Ryan.Anderson@baesystems.com> 1/24/2006 8:46:17 AM >>>

I was trying to avoid using /etc/mail/aliases, but based on the responses I
got, its what I need to do. The best reply was from Chris Hoogendyk
(hoogendyk_at_bio.umass.edu):

++++++++++++++++++++++++++++
you could set up a script that would do it for you.

grab a copy of /etc/passwd, use awk and/or sed to strip out the usernames,
add
the aliases to the lines, and then copy the resulting file to the end of a
copy of the aliases file. If you put a marker at the end of the regular
aliases file, then you could duplicate the aliases file, delete everything
after the marker, and run the script that puts the aliases at the end, then
move it back to aliases and do a newaliases. you would have to make sure the
system accounts (root, lp,smmsp, nobody, etc) were removed.

if you are brave, put that all in a script and do it in one fell swoop
whenever you have added users.
+++++++++++++++++++++++


RCA
--
UNIX Administrator - BAE Systems Land & Armaments
Desk: 763-572-6684 Pager: 952-235-9936


>>> "Darren Brechman-Toussaint" <Darren.Toussaint@SecurityMail.com.au>
1/23/2006 12:53:18 AM >>>

Ryan,

Just edit /etc/mail/aliases and at the bottom add lines like: (see the
doco in the aliases file)
jschmoe:  jschmoe@foobar.com

Then just run newaliases to rebuild the aliases database.

Thanks
Darren

-----Original Message-----
From: sunmanagers-bounces@sunmanagers.org
[mailto:sunmanagers-bounces@sunmanagers.org] On Behalf Of Ryan Anderson
Sent: Saturday, 21 January 2006 4:30
To: sunmanagers@sunmanagers.org
Subject: sendmail - Convert local mail to internet mal?

I want to make it so that on Solaris systems, when mail is sent to a
local
user (ie jschmoe, root), it gets converted to an internet mail address,
like
jschmoe@foobar.com. I'd like to avoid having a UNIX mail spool with
local mail
sent to it, I'd rather it just be converted to an internet mail address
and go
to our regular mail system.

I've tried various combinations with LOCAL_RELAY, MASQUERADE_DOMAIN,
FEATURE('mailertable`) to no avail. Ideas?

RCA
--
UNIX Administrator - BAE Systems Land & Armaments
Desk: 763-572-6684 Pager: 952-235-9936
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Wed Jan 25 14:16:15 2006

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:54 EST