[TriLUG] Setting up roots email address?

Jason Tower jason at cerient.net
Mon Jan 13 16:07:07 EST 2003


there's a line in /etc/postfix/main.cf that specicies the default sending
domain name to use (i don't have access to my box right now or i'd find
the specific line).  there's a good chance that will fix things.

> 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
>>
>
>
> _______________________________________________
> 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