Hello,

i need to change sender root in email header.
I am using webmin to create alerts on user creation and modify.
As i understand webmin use root account to send mail. I haven't found how to 
change default user to send mail in webmin or in exim4.
would by grateful for any ideas.

With etc/email-addresses i can change senders email but not the user who sends 
mail.
I need to change this in email:
From: root [[email protected]]

to

From: what_i_type [[email protected]]


If i use etc/email-addresses:

root: [email protected]


i get

From: root [[email protected]]

Second aproach that i tryed is rewriting rules. In my exim config only 
rewriting rule that works on sending emails from pc:

# This rewriting rule is particularily useful for dialup users who
# don't have their own domain, but could be useful for anyone.
# It looks up the real address of all local users in a file
.ifndef NO_EAA_REWRITE_REWRITE
 *@+local_domains "${lookup{${local_part}}lsearch{/etc/email-addresses}\
                   {$value}fail}" Ffrs
# identical rewriting rule for /etc/mailname
*@ETC_MAILNAME "${lookup{${local_part}}lsearch{/etc/email-addresses}\
                   {$value}fail}" Ffrs
.endif


Still i can change only email but how to change user to what i want.

Mindaugas

-- 
## List details at http://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to