Sponsored Content
Top Forums UNIX for Dummies Questions & Answers mailx- can we change the from address in the email that is sent out. Post 83880 by radhika on Tuesday 20th of September 2005 01:59:07 PM
Old 09-20-2005
mailx- can we change the from address in the email that is sent out.

Hello,

Is there anyway to change the from address in the email sent using mailx command?

I have the following command:
mailx -s $subject xxx@xxxx.com < $mail_mesg

This defaults to the following format "acctname@usserver.companyname.com" as the from address in the email. Problem is this is not a valid one and the recieving server is bouncing the email since it's not a valid address. And we need to change the from address to be a valid one.

Any suggestions are appreciated.
Thankyou,
Radhika.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

change from address in mailx

Hi, i am sending mails regulary for updation of data. The from addresses dispaly like POP.RECH@skk182.com i want display like oracle@skk182.com can u help me on this. (1 Reply)
Discussion started by: koti_rama
1 Replies

2. Shell Programming and Scripting

how to know if the mailx command really sends the mail to the email address?

Hi guys, I have a question about the returning message of the mailx command. if I run a mailx command, how can I know if the email has been sent to the email address? If the email address doesn't exist, is there any error message returned? If yes, how can I get the error message? Thanks... (3 Replies)
Discussion started by: sheenshine
3 Replies

3. UNIX for Dummies Questions & Answers

How to verify email address using mailx command ?

Is there any way i can verify the email address (before sending the mail) using the mailx command ? I know that sendmail -bv email@address.com can do it but there is a compatibility issues with the version of Unix we have. So mailx is the only command we can used at this point. Any... (1 Reply)
Discussion started by: rak007
1 Replies

4. HP-UX

How to change the email from address?

Hi Friends, I am facing one issue with my hpux server. I used to send mail from the hpux server directly to the customer id. By default the from address includes the complete hostname(eg:- user1@hostname.domain.com). My domain name is registered, but this individual hostname is not... (1 Reply)
Discussion started by: arumon
1 Replies

5. AIX

System email address change?

With a recent move to a new data center, the domain for our system emails have changed. We used automated emails with our daily process for informational and report sending. I edited the /etc/mail/sendmail.cf file where it had an entry pointing to the old mail server so I change this to our new... (3 Replies)
Discussion started by: NycUnxer
3 Replies

6. OS X (Apple)

mailx to external email address

Hi, How can I use "mailx" command to send message to an email address like this? echo "This email body" | mailx -s "my subject" "email@hostname.com" There may be some setup required in sendmail or postfix?? OS = Snow Leopard 10.6 (4 Replies)
Discussion started by: FlyingSquirrel
4 Replies

7. Forum Support Area for Unregistered Users & Account Problems

Email address change issue

Hi Neo/Scott, I decided to change my email address in my details from my earlier one to the one I got with my VIP membership. After the change, I got a message that I'll receive an activation link at the new address to re-activate my account. I haven't got that link till now. Also, all my... (3 Replies)
Discussion started by: elixir_sinari
3 Replies

8. Forum Support Area for Unregistered Users & Account Problems

Change email address

How can I change email address registered with my unix.com account (1 Reply)
Discussion started by: hiten.r.chauhan
1 Replies

9. Shell Programming and Scripting

Mailx options to change from address

hi, I had a request to change the from email address while sending the email to the users. Current From email address : pepsimanufacturer@pepsi.com Requested From Email Adreess: manucturer@pepsi.com Any idea how the from addres can be changed. ---------- Post updated at 06:42 AM... (3 Replies)
Discussion started by: arun888
3 Replies

10. Shell Programming and Scripting

Mailx issue; email address starting with #

Hello All, I have a requirement to generate report and send them to a distribution list. The problem I am facing is when sending out the email using mailx. The email address (DL) we have is starting with # and because of this it's not recognising the email and throwing the below error. ... (2 Replies)
Discussion started by: Pradeep_Raj
2 Replies
aliases(5)							File Formats Manual							aliases(5)

NAME
aliases - aliases file for sendmail SYNOPSIS
DESCRIPTION
The command (which is the same as see sendmail(1M)) builds the sendmail alias database from a text file. The default text file is Local addresses (local user names) are looked up in the alias database and expanded as necessary, unless the user name is preceded by a backslash When the aliases file contains multiple entries for a given alias, only the last entry is used. Except when the processing option (the send to me option) is set in the command or in the configuration file, the sender is not included in any alias expansions. For example, if sends a message to and the expansion of includes the message is not delivered to Each line of the alias text file must be of the form: Mailing lists can be continued onto multiple lines. Each continuation line must begin with white space. Lines beginning with # are com- ments. A mailing-list is a comma-separated list of one or more of the following: user-name Local user names occurring in alias expansions will themselves be looked up in the alias database unless they are preceded by backslash remote-address The remote address syntax understood by is configured in the configuration file, and typically includes the RFC-822-style and the UUCP-style filename This must be an absolute path name. appends a message to the file only if the directory in which it resides is readable and searchable by all, and only if the file already exists, is not executable, and is writable by all. pipes the message as standard input to the specified command. If command-line contains blanks, it must be enclosed in quotation marks (). For example, reads filename for a list of recipient addresses and forwards the message to each. For example, an alias such as: would read for the list of addresses making up the group. If a file named exists in a user's home directory and is owned by the user, redirects mail for that user to the list of addresses in the file. An address in a or file can be anything that can appear as a mailing-list in the alias text file. can run programs or write to files using file. This is controlled by the file. If the owner of the file lacks a valid shell as listed in file, the execution of such programs will be disallowed. The user can still execute such programs by placing the special string in the file. The alias database is examined before a recipient's file is examined. After aliasing has been done, local and valid recipients who have a file in their home directory will have messages forwarded to the list of users defined in that file. Aliasing occurs only on local names. Loops can not occur, since no message will be sent to any person more than once. Aliases defined in will NOT be expanded in headers from (see mailx(1)), but WILL be visible over networks and in headers from (see mail(1)). is only the raw data file. The actual aliasing information is placed into a binary format in the file using (see newaliases(1M)). A command should be executed each time the file is changed in order for the change to take effect. Note that the NIS alias maps are gener- ated by using which leaves and in the directory. AUTHOR
was developed by the University of California, Berkeley, and originally appeared in 4.0BSD. FILES
User's mail forwarding file raw data file for alias names database of alias names SEE ALSO
mail(1), mailx(1), makemap(1M), newaliases(1M), sendmail(1M). aliases(5)
All times are GMT -4. The time now is 05:53 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy