Solved

AIX sendmail command

Posted on 2010-11-22
6
910 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
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
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

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.

Question has a verified solution.

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

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
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…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

776 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