Question on email aliases

hi all,I have doubt in my unix. Whenever i send any emails from unix machine. The receipent is recieving with the name pepsi retail do you have idea where i the email aliases name is hardcoded in the unix settings.

-----Original Message-----
From: Pepsi Retail c6306393 [mailto:kol@pepsi.info.com] 
Sent: Friday, July 07, 2015 7:05 PM

What is the command used for sending the email ?

used mailx command.

@arun888, you need to give all the information. mailx command agreed but what are the parameters passed.

This is a format of the mailx command. Check if you have "Pepsi Retail" in place of <from email Id>

Hope this helps.

mailx -r<from email id> -s <Subject> <To email id> 
NOTIFY1="arunkumar@delivary.com
"
mailx -s "Db  instance has been started now" $NOTIFY1

I am recieveing the below name form the email. I would like to know where the alias name is set in the unix server,

-----Original Message-----
From: Pepsi Retail c6306393 [mailto:kol@pepsi.info.com] 
Sent: Friday, July 07, 2015 7:05 PM

---------- Post updated at 08:18 AM ---------- Previous update was at 07:50 AM ----------

From address is from the server. i would like to server email aliases set in the from address of the server.

---------- Post updated at 08:29 AM ---------- Previous update was at 08:18 AM ----------

I am logging the unix server from kol@pepsi.info.com user id. I would like to know only how the

 Pepsi Retail c6306393 

is set in the unix server.

Use the

 set 

command to check the environment variables that are set and override the variable with the

mail -x 

command listed before.

hi all,

can anyone where the alias has been as pepsi retail for the server which we are sending from email. any inputs please .

Have you looked at the /etc/aliases file?

It might have been added by a mailer (e.g. M$ Exchange) or a mail client (e.g. M$ Outlook).
It can also be set during sending by the sending mailer (sendmail, postfix, ... running on the Unix system), by means of a sender rewriting rule.
Further it can be set by a sending mail agent (mail, mailx, on the Unix system) that insert the user name from the passwd file.
The latter can be seen with

getent passwd kol

(field #5)
--
NB /etc/aliases is for rewriting the receiver (To: ).