Solved

Control from address on outbound email (AIX)

Posted on 2007-04-04
1
707 Views
Last Modified: 2013-12-17
I need to see if it's possible to change the From address on email that is sent from our AIX 5.3 server.  We have an application that sends out email and the from address is "username@<servername>.domainname.com".  Is there a way in sendmail to change it so the from address is "username@domainname.com".  Also is their a way control the "username" part of the address?  If the process is run by "root" then the email come from "root@<servername>.domainname.com".
0
Comment
Question by:lwrogers
1 Comment
 
LVL 6

Accepted Solution

by:
anfi earned 500 total points
ID: 18859735
Your guestion is addressed by two Sendmail's FAQ entries:
  http://www.sendmail.org/faq/section3.html#3.2
    How do I rewrite my From: lines to read ``First_Last@My.Domain''' or ``Different_Name@My.Domain''?
  http://www.sendmail.org/faq/section3.html#3.1
    How do I make all my addresses appear to be from a single host?

Both redirect to http://www.sendmail.org/m4/masquerading.html

In short: use FEATURE(`genericstable ') with:
* FEATURE(`masquerade_envelope') if you  want to rewrite also envelope sender address
* FEATURE(`allmasquerade') if you want to rewrite also addresses in "recipient headers" (To:, Cc:)
By default sendmail rewrites *ONLY* "header sender" addresses
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Automapping, a wonderful feature with Exchange 2010 (SP2 onwards I believe), allows additional/Shared mailboxes that a user has access to be automatically mapped on Outlook client, simplifying the process by adding them while Outlook launches. Ho…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
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…
To show how to generate a certificate request in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Servers >> Certificates…

786 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