Question

Does anyone know how to change the envelope-sender setting on SendMail and if so how?

Asked by: rssdds

Does anyone know how to change the envelope-sender setting on SendMail and if so how?

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-11-07 at 19:46:23ID24881178
Tags

sendmail linux fedora

Topics

Fedora Linux

,

Linux Setup

,

Miscellaneous Software

Participating Experts
1
Points
500
Comments
12

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Sendmail - 'X-Envelope-To' header ?
    Mailing list emails come in and get spat out with the 'To:' field containing the mailing list address, not the recipient who has subscribed. I think that sendmail can be configured to generate an 'x-envelope-to' header containing the actual recipient but I don't know how. C...
  2. Sendmail questions.
    Hi! I just tried nessus against my machine to find out if I had any security holes. I got this: Sendmail supports the EHLO greetings which means that it supports the ESMTP, which may be the source of additional security flaws that can be used by attackers. Solutions: dissa...
  3. Sendmail question
    How could I rewrite the address from user@host to user@host.domain.tld Somehow we are stuck in using the user@host format, and sendmail just complain about the address. We are running ESMTP Sendmail 8.9.3+Sun. I knew it has something to do with domain mapping, but I just...
  4. sendmail masquerade
    Hi, I have a few question relating to sendmail masquerase: 1. DM is masquerade header in sendmail.cf on solaris, how do I masquerade envelope in sendmail.cf? 2. what is masquerade envelop? 3. does the firewall filter the header masquerade or envelope masquerade? 4. If ...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: ravenplPosted on 2009-11-08 at 08:05:59ID: 25770835

You mean, You want to change the domain part of outgoing mails?
http://www.sendmail.org/m4/masquerading.html

 

by: rssddsPosted on 2009-11-08 at 10:03:32ID: 25771216

Well I am  getting the right direction but that URL you provided is far from complete.
I have to admit my abilities with sendmail are a bit limited.

I think I will need a more step by step answer on this one.
The sendmail is installed from yum and has all the defaults in place currently if that helps
Also I have a sendmail O'Reilly book from years ago if that will help
I it talks about v8 m4 configuration though I do not understand this very well
The files that talk about masquerading are:
sendmail.cf
sendmail.mc
submit.cf
sendmail.mc

virtusertable
also:


I see the first level of masquerading maybe using the
/etc/aliases  file to mask users from being exposed but would that be enabled by simply
changinging sendmail.cf file:
# location of alias file
O AliasFile=/etc/aliases

Note its odd O is used instead of 0(zero)  which is surprising I would have guessed
that meant it was disabled. But upon more reading I realized O(oh)
meant Define an Option, however it does not appear to be working because
the user sending the emails is already defined in the /.etc/aliases file
yet the email envelope shows the aliased user e.g www
so I am at a loss to understand that.

Also
Also much of the text in your link seems to point to the sendmail.mc file
Perhaps a good sample sendmail.mc file may shed some more light on this
and how the link you supplied truly works
Would you have such an example file??






 

by: rssddsPosted on 2009-11-08 at 10:19:52ID: 25771270

There was a line:
dnl FEATURE(masquerade_envelope)dnl

according to the book there needs to be a file: as  ../feature/masquerade_envelope.m4
but no such file exists. I guess that means it is undefined by default?

Maybe its me but those instructions lack a lot  with no examples and there is no mention of the  file name: sendmail.mc . Its all extremely cryptic.

 

by: ravenplPosted on 2009-11-08 at 10:44:23ID: 25771351

edit /etc/mail/sendmail.mc add/replace

MASQUERADE_AS(the-domain.tld)dnl
FEATURE(masquerade_envelope)dnl
FEATURE(masquerade_entire_domain)dnl
MASQUERADE_DOMAIN(the-domain.tld)dnl

execute
# m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
execute
# /etc/init.d/sendmail restart

 

by: rssddsPosted on 2009-11-08 at 11:35:08ID: 25771544

I will try what yo suggest but I have a few questions:
given the domain I wish to maquerade as is:  xyzdomain.com
MASQUERADE_AS(the-domain.tld)dnl
the-domain.tld  - What is that  (what does .tld signify?) ? 'xyzdomain.com' or just:
MASQUERADE_AS(xyzdomain.com)dnl

FEATURE(masquerade_envelope)dnl
Does this file: ../feature/masquerade_envelope.m4  get generated via the m4
cmd: m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf  ?

FEATURE(masquerade_entire_domain)dnl

I imagine the text below should be
MASQUERADE_DOMAIN(xyzdomain.com or 'xyzdomain.com')dnl


I am almost  there I only need to understand your above instructions just a bit more as described above. Thanks again!

 

by: ravenplPosted on 2009-11-08 at 11:41:32ID: 25771577

> the-domain.tld  - What is that  (what does .tld signify?) ? 'xyzdomain.com' or just:
tld == top level domain, eg. .com .net etc. Replace with Your domain.

All those are sendmail configuration statements encoded in m4 language. The command
 m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
interprets sendmail.mc as m4 language script and saved to sendmail.cf - the actual sendmail config file.

 

by: rssddsPosted on 2009-11-21 at 10:21:19ID: 25878888

I am sorry for the delay in getting back to everyone. I hope to resolve this soon
I think the best solution I got which I have yet to test is ravenpl:

I do apologize  ravenpl. I just have not had time to try your solution yet - Please be patient with me. I am sure you will get the points for this question.

 

by: rssddsPosted on 2009-12-02 at 00:20:35ID: 25950016

I hope to try your solution this coming weekend!

 

by: rssddsPosted on 2009-12-25 at 18:24:45ID: 26123409

Patience please - it has been a hectic time. I will try to get to this Monday!

 

by: rssddsPosted on 2009-12-31 at 17:14:52ID: 26156648

I am almost ready. I should have this by the 4th of January 2010.

Just so you know give my xyzdomain.com domain
I am planning to substitue:
MASQUERADE_AS('xyzdomain.com')dnl
FEATURE('xyzdomain.com')dnl
FEATURE('myhost.xyzdomain.com')dnl
MASQUERADE_DOMAIN('xyzdomain.com')dnl

I hope I have that right??

 

by: rssddsPosted on 2010-01-22 at 06:36:37ID: 26380640

I know I have been delaying here. I hope to verify this very soon

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...