Solved

AIX sendmail command

Posted on 2010-11-22
6
927 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
[X]
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
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
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Redhat upgrade 1 69
Install XRDP on Ubuntu Server 16.10 x64 3 120
exchange, squid, proxy, linux 6 89
how to write and save a unix script 12 40
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…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses

752 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