[TriLUG] Setting up roots email address?
Jeremy Portzer
jeremyp at pobox.com
Mon Jan 13 15:38:57 EST 2003
Jason,
Read over his question a little more closely. Your fix changes who
email *to* the root user is delivered to. He wants to change where mail
*from* the root user appears to be *coming from*.
BP:
I'm not sure there's much that can be done when you use the basic "mail"
program. You can fix the local hostname to update the
"localhost.localdomain" part (/etc/sysconfig/network and also your
postfix configs) , but the message will always appear to be from root
since "mail" is being run as root. Alternatively you can write a script
that calls "sendmail -t" directly (should work under postfix too, since
postfix includes a sendmail wrapper) and then supplies the necessary
"From" header.
--Jeremy
On Mon, 2003-01-13 at 15:28, jason at cerient.net wrote:
> there is a line near the bottom of /etc/postfix/aliases that does this
> very thing. change it to the user you want and run 'postalias
> /etc/postfix/aliases'
>
> that'll do ya
>
> > I started running Postfix at home and would like to know how you
> > associate a email address with root or another system user.
> >
> > When I execate a cmd like:
> > cat afile | mail -s "My eml subj" recipent at domain.com
> >
> > The email arrives fine but appears to be from "root"
> > <root at localhost.localdomain>
> >
> > How would I change this system wide to a real name and email address?
> >
> > -bp
> >
> > _______________________________________________
> > TriLUG mailing list
> > http://www.trilug.org/mailman/listinfo/trilug
> > TriLUG Organizational FAQ:
> > http://www.trilug.org/~lovelace/faq/TriLUG-faq.html
>
>
>
> _______________________________________________
> TriLUG mailing list
> http://www.trilug.org/mailman/listinfo/trilug
> TriLUG Organizational FAQ:
> http://www.trilug.org/~lovelace/faq/TriLUG-faq.html
>
More information about the TriLUG
mailing list