Solved

AIX sendmail command

Posted on 2010-11-22
6
885 Views
Last Modified: 2012-05-10
When I send email via the 'sendmail' command, the email sent shows 'user@domain.com' as the From Address.  This is ok, but I have a user that would like it to display their name or something like 'user@domain.com  User Name'  or 'user@domain.com  My Company Name'.

What would I need to do to have the From address display differently than just the email address?

Note: below is the command that is currently being used, and the 'User Name" does not display just the email address in the From address.
!sendmail -t -F"User Name"  -fuser@domain.com < /tmp/tmpwork/mail.1566741834

Open in new window

0
Comment
Question by:eagle-22
  • 3
  • 3
6 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
ID: 34191812
Hi,

you can't use "-f" and "-F" simultaneously. "-f" will take precedence!

wmp
0
 
LVL 3

Author Comment

by:eagle-22
ID: 34192113
Do you know what syntax I should use?  Something like this?

sendmail -F"User Name <user@domain.com>"

I am trying some different variations but it is not coming out right.
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 34192126
Your example should work!

0
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
LVL 3

Author Comment

by:eagle-22
ID: 34192183
When I look at the email in Outlook, the Display name is 'User Name <user@domain.com>', which is fine, but the E-mail address is 'root@ibm520.domain.com'

So I would like the E-mail address to just be 'user@domain.com'
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 34192306
Try changing the From: field in your input file.

To masquerade the domain of all your emails you could change the "DM" macro in sendmail.cf, but that's a global setting! Additionally, the username must not appear in the "CE" macro.

I don't see other options at the moment, sorry!

wmp
0
 
LVL 3

Author Closing Comment

by:eagle-22
ID: 34244137
I didn't get the answer I was looking for, but your comment helped.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now