Simpler Navigation for Servers and Operating Systems
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
cancel
Showing results for 
Search instead for 
Did you mean: 

masquerading

SOLVED
Go to solution
David Franke
Occasional Visitor

masquerading

I have just started working with sendmail,and have a couple questions. First the easy one.
Is there a way to remove mail from the outgoing mail queue, without stop/starting sendmail?

Second one is a little more involved. I am behind a corp. firewall/mail service provider, that checks the reply address for the correct domain. If the domain does not match abc.com it will drop outgoing mail. I would like to change the reply to email address. ie. dfranke@abc.com instead of root@localhost
Can this be done on a per user bases, or will I have to do site hiding and then mask the ones I do not want masqueraded?
Thanks for the help in advance.
Dave
4 REPLIES
Rick Garland
Honored Contributor
Solution

Re: masquerading

You could remove messages from the mqueue but that means removing the message file and the control file as well. You would be better off bouncing sendmail.

To masquerade, there is a macro in the sendmail.cf file that will rewrite all outgoing messages. If you are looking for a per user basis, have a look at the mailertable.
Kofi ARTHIABAH
Honored Contributor

Re: masquerading

#sendmail -q -v
should attempt to redeliver your messages
nothing wrong with me that a few lines of code cannot fix!
Dave Kelly_1
Respected Contributor

Re: masquerading

Please note that mailertable is not the correct file to rewrite user addresses.

If you want to masquerade on a per-user basis, you need to look at the userdb functionality of sendmail (8.8.6 and above).

An example of the configuration can be found in the document KBRC00001457 in the Technical Knowledge Base
someone_4
Honored Contributor

Re: masquerading

What about the DM line in the sendmail.cf file ?