A user sends a monthly email newsletter to a distribution list on an email
server I maintain that uses sendmail. He sends the message to an
email alias
on the system where sendmail converts the alias to all of the email
addresses in the mailing list and the sends it out through a
smart host to be
delivered to all of the recipients of the newsletter. The sender sends the
message from his verizon.net address and I needed to convert the "from"
address from a verizon.net email address to a local email address on the
server running sendmail. To do so, I placed the following lines at the
end of /etc/mail/sendmail.mc
. For the example below, I use the
example.com domain as the local domain name for the server.
MASQUERADE_DOMAIN(`verizon.net')dnl MASQUERADE_AS(`example.com')dnl
Note: the "dnl" at the end of each line has the letter "l", not the
number "1" at the end of the line. And a
backtick, i.e., `
, is used before
"verizon.net" while a single quote is used after it.
[ More Info ]