Ho do I masquerade the "user@user.local" address in mail/mailx?


 
Thread Tools Search this Thread
Operating Systems OS X (Apple) Ho do I masquerade the "user@user.local" address in mail/mailx?
# 1  
Old 04-18-2009
Ho do I masquerade the "user@user.local" address in mail/mailx?

Hi,

I'm brand new here and looking for a solution:

I'm using mail or mailx. The default reply address is «myshortusername@mylongusername.local» which makes absolutely no sense for anybody receiving my emails.

But how do I change it? There seem to be many solutions but none for Mac OS X. I'm using 10.5.

Where are the files that I need to change? What do I need to add or change?

Thanks a lot for your help!

Gary
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Mailx is adding a random "!" in the middle of my mail

I made a script that sends an email with one long line, line looks like this. UY453;HJ345;BM342;JH526;HJ245;HJ234;NM235;........JK453;SD245; The mail has about 200 of those IDs in one line, each ID is separtated by ";". The problem is that there is a random exclemation mark and it... (3 Replies)
Discussion started by: ajetangay
3 Replies

2. UNIX for Dummies Questions & Answers

Using "mailx" command to read "to" and "cc" email addreses from input file

How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address and column 3 contains “cc” e-mail address to include with same email. Sample input file, email.txt Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies

3. UNIX for Dummies Questions & Answers

Finding e-mail address using "find" command

any useful command to find and e-mail address hardcoded into a cfg file on an specific server? I already tried with:: find . -type f | xargs grep -l "nobody@foundstone.com" Thanks!! (1 Reply)
Discussion started by: JLo5621
1 Replies

4. UNIX for Dummies Questions & Answers

What is the significance of sh -s in ssh -qtt ${user}@${host} "sh -s "${version}"" < test.sh?

Please can you help me understand the significance of providing arguments under sh -s in > ssh -qtt ${user}@${host} "sh -s "${version}"" < test.sh (4 Replies)
Discussion started by: Sree10
4 Replies

5. Shell Programming and Scripting

If cmd in in "A/user/bin A/bin A/user/sbin" but not "B/user/bin B/bin B/user/sbin" directory print t

there are two directories A and B if cmd in in "A/user/bin A/bin A/user/sbin" but not "B/user/bin B/bin B/user/sbin" directory print them (1 Reply)
Discussion started by: yanglei_fage
1 Replies

6. UNIX for Advanced & Expert Users

[SOLVED] Root mail going to user "mail" instead of root

I running Linux Mint Debian Edition tracking testing and have started a cron job that will send something to the root mailbox. Mint has heirloom and exim4 installed. However, mail was getting nothing. I realized that in /etc/aliases, there was a line root: mintSince you can't log into the mint... (0 Replies)
Discussion started by: Narnie
0 Replies

7. Shell Programming and Scripting

Using mailx to send in the future? Also change "from" address?

Hey, I've got a script using mailx to send an email to the user, but i'd like it if I could have it send the email sometime in the future, not right away. And by future, i mean like 1 minute in the future. And I don't want it to halt the script in anyway. Perhaps there's a way to have it... (3 Replies)
Discussion started by: paqman
3 Replies

8. HP-UX

use an alias for "from" address in mailx

Hi, I am sending an attchement using the mailx command in HP-UX, I am using the following command, uuencode test.csv test.csv | mailx -r "Healthy Planet" -m -s "$2" someone@somewhere.com when I do this, I am receiveing the mail and in the from address field, its displayed in the... (1 Reply)
Discussion started by: muralikancherla
1 Replies

9. Solaris

sendmail "root... User address required." error

I'm running sendmail (8.13.8+Sun/8.13.8/Submit) solaris 10. When I send mail to root at the command line (whether I use a full-qualified address or just root), I get the error message root... User address required. Sending mail to root (either at the command line or in a cron job),... (10 Replies)
Discussion started by: csgonan
10 Replies

10. Shell Programming and Scripting

communicating wth another user aside from "wall" and "write"

Hi, Can anyone suggest a Unix command or c-shell algorithm to simulate to behavior of "wall" command minus the "all users"? What I'm trying to do is to send a notice to just one particular user but i dont want other remotely-logged-on users to receive the message (on the pseudo-terminals). I... (6 Replies)
Discussion started by: Deanne
6 Replies
Login or Register to Ask a Question
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)