Solved

Control from address on outbound email (AIX)

Posted on 2007-04-04
1
705 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

Will my email signature work in Office 365?

You've built an email signature using raw HTML code in Office 365, but you can't review how it looks with Transport Rules. So you have to test it over and over again before it can be used. Isn't this a bit of a waste of your time? Wouldn't a WYSIWYG editor make it a lot easier?

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
MarkLogic 1 69
Outlook 2013 and Gmail via IMAP all messed up - lost cause?! 8 63
Email password question 6 31
Handling abuse of email address 7 10
Local Continuous Replication is a cost effective and quick way of backing up Exchange server data. The following article describes the steps required to configure Local Continuous Replication. Also, the article tells you how to restore from a backup…
This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
In this video we show how to create a Contact 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 Recipients >> Contact ta…
In this video we show how to create a mailbox database 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 >> Data…

895 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

11 Experts available now in Live!

Get 1:1 Help Now