AIX sendmail command

Posted on 2010-11-22
Last Modified: 2012-05-10
When I send email via the 'sendmail' command, the email sent shows '' as the From Address.  This is ok, but I have a user that would like it to display their name or something like '  User Name'  or '  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" < /tmp/tmpwork/mail.1566741834

Open in new window

Question by:eagle-22
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
LVL 68

Accepted Solution

woolmilkporc earned 500 total points
ID: 34191812

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


Author Comment

ID: 34192113
Do you know what syntax I should use?  Something like this?

sendmail -F"User Name <>"

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

Expert Comment

ID: 34192126
Your example should work!

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.


Author Comment

ID: 34192183
When I look at the email in Outlook, the Display name is 'User Name <>', which is fine, but the E-mail address is ''

So I would like the E-mail address to just be ''
LVL 68

Expert Comment

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, 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!


Author Closing Comment

ID: 34244137
I didn't get the answer I was looking for, but your comment helped.

Featured Post

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

627 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