<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: Sendmail masquerade outgoing email address</title> <atom:link href="http://www.cyberciti.biz/tips/sendmail-masquerading-configuration-howto.html/feed" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/tips/sendmail-masquerading-configuration-howto.html</link> <description>This is a Linux sys admin journal by Vivek about sys admin work, Linux tips &#38; tricks, hacks, news and more.</description> <lastBuildDate>Fri, 10 Feb 2012 20:37:43 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Sandeep</title><link>http://www.cyberciti.biz/tips/sendmail-masquerading-configuration-howto.html#comment-178992</link> <dc:creator>Sandeep</dc:creator> <pubDate>Fri, 03 Feb 2012 06:35:07 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/sendmail-masquerading-configuration-howto.html#comment-178992</guid> <description>Hi Vivek,
Small query about out going mails.
I would like to add some disclaimer message for every outgoing mail form our mail server. Can you please suggest me the best way to do this?
Thanks,
Sandeep.</description> <content:encoded><![CDATA[<p>Hi Vivek,<br
/> Small query about out going mails.<br
/> I would like to add some disclaimer message for every outgoing mail form our mail server. Can you please suggest me the best way to do this?</p><p>Thanks,<br
/> Sandeep.</p> ]]></content:encoded> </item> <item><title>By: Habib Mumin</title><link>http://www.cyberciti.biz/tips/sendmail-masquerading-configuration-howto.html#comment-177884</link> <dc:creator>Habib Mumin</dc:creator> <pubDate>Mon, 02 Jan 2012 18:21:17 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/sendmail-masquerading-configuration-howto.html#comment-177884</guid> <description>To allow user root to send email and use masquerade domain, in sendmail.cf the line beginning
C{E}root
remove word &#039;root&#039; and you have
C{E}
restart sendmail as per above instructions.
There is no need to edit hosts file.</description> <content:encoded><![CDATA[<p>To allow user root to send email and use masquerade domain, in sendmail.cf the line beginning</p><p>C{E}root</p><p>remove word &#8216;root&#8217; and you have</p><p>C{E}</p><p>restart sendmail as per above instructions.</p><p>There is no need to edit hosts file.</p> ]]></content:encoded> </item> <item><title>By: jeffrey smith</title><link>http://www.cyberciti.biz/tips/sendmail-masquerading-configuration-howto.html#comment-172047</link> <dc:creator>jeffrey smith</dc:creator> <pubDate>Tue, 21 Jun 2011 15:59:05 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/sendmail-masquerading-configuration-howto.html#comment-172047</guid> <description>I managed to get this working by doing the following.
change you /etc/hosts file so the first entry with a . for 127.0.01 is the domain your trying to masquerade i.e
127.0.0.1 server1 server1.domain.com server1.domain.local
Then chnage the entries so they are.
MASQUERADE_AS(domain.com)dnl
FEATURE(masquerade_envelope)dnl
FEATURE(masquerade_entire_domain)dnl
MASQUERADE_DOMAIN(localhost)dnl
As stated above this only works for non root users.</description> <content:encoded><![CDATA[<p>I managed to get this working by doing the following.</p><p>change you /etc/hosts file so the first entry with a . for 127.0.01 is the domain your trying to masquerade i.e</p><p>127.0.0.1 server1 server1.domain.com server1.domain.local</p><p>Then chnage the entries so they are.</p><p>MASQUERADE_AS(domain.com)dnl<br
/> FEATURE(masquerade_envelope)dnl<br
/> FEATURE(masquerade_entire_domain)dnl<br
/> MASQUERADE_DOMAIN(localhost)dnl</p><p>As stated above this only works for non root users.</p> ]]></content:encoded> </item> <item><title>By: Josh from America</title><link>http://www.cyberciti.biz/tips/sendmail-masquerading-configuration-howto.html#comment-170491</link> <dc:creator>Josh from America</dc:creator> <pubDate>Wed, 06 Apr 2011 20:08:21 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/sendmail-masquerading-configuration-howto.html#comment-170491</guid> <description>This absolutely does not work, in any capacity whatsoever.</description> <content:encoded><![CDATA[<p>This absolutely does not work, in any capacity whatsoever.</p> ]]></content:encoded> </item> <item><title>By: Salam</title><link>http://www.cyberciti.biz/tips/sendmail-masquerading-configuration-howto.html#comment-160832</link> <dc:creator>Salam</dc:creator> <pubDate>Sun, 07 Nov 2010 19:45:56 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/sendmail-masquerading-configuration-howto.html#comment-160832</guid> <description>I followed all instructions, added the 4 lines, added an alias to my root in usersgeeneric table
root             myemail@mydomain.com
Note : I already have the following 4 lines in my sendamail.cf
dnl MASQUERADE_DOMAIN(localhost)dnl
dnl MASQUERADE_DOMAIN(localhost.localdomain)dnl
dnl MASQUERADE_DOMAIN(mydomainalias.com)dnl
dnl MASQUERADE_DOMAIN(mydomain.lan)dnl
which I didnt touch.
Whenever I issue the following command
echo &quot;hello worls&quot; &#124; mail -s &quot;Firstmail&quot; myscondemail@anotherdoamin.fr
I get right away an email for root indicating :
The following addresses had permanent fatal errors -----
(reason: 550 5.1.8 your MAIL FROM is refused for this recipient : 553 sorry, your envelope sender domain must exist (#5.7.1))</description> <content:encoded><![CDATA[<p>I followed all instructions, added the 4 lines, added an alias to my root in usersgeeneric table<br
/> root <a
href="mailto:myemail@mydomain.com">myemail@mydomain.com</a></p><p>Note : I already have the following 4 lines in my sendamail.cf<br
/> dnl MASQUERADE_DOMAIN(localhost)dnl<br
/> dnl MASQUERADE_DOMAIN(localhost.localdomain)dnl<br
/> dnl MASQUERADE_DOMAIN(mydomainalias.com)dnl<br
/> dnl MASQUERADE_DOMAIN(mydomain.lan)dnl</p><p>which I didnt touch.<br
/> Whenever I issue the following command<br
/> echo &#8220;hello worls&#8221; | mail -s &#8220;Firstmail&#8221; <a
href="mailto:myscondemail@anotherdoamin.fr">myscondemail@anotherdoamin.fr</a></p><p>I get right away an email for root indicating :</p><p>The following addresses had permanent fatal errors &#8212;&#8211;</p><p> (reason: 550 5.1.8 your MAIL FROM is refused for this recipient : 553 sorry, your envelope sender domain must exist (#5.7.1))</p> ]]></content:encoded> </item> <item><title>By: ipkwena</title><link>http://www.cyberciti.biz/tips/sendmail-masquerading-configuration-howto.html#comment-159637</link> <dc:creator>ipkwena</dc:creator> <pubDate>Tue, 14 Sep 2010 19:11:17 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/sendmail-masquerading-configuration-howto.html#comment-159637</guid> <description>Thanks for the article. Now I have managed to have my Linux box send out emails. However, I have not resolved masquerading the user name. There must be a tutorial somewhere.
Regards.</description> <content:encoded><![CDATA[<p>Thanks for the article. Now I have managed to have my Linux box send out emails. However, I have not resolved masquerading the user name. There must be a tutorial somewhere.</p><p>Regards.</p> ]]></content:encoded> </item> <item><title>By: vmunix</title><link>http://www.cyberciti.biz/tips/sendmail-masquerading-configuration-howto.html#comment-158854</link> <dc:creator>vmunix</dc:creator> <pubDate>Thu, 12 Aug 2010 17:21:06 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/sendmail-masquerading-configuration-howto.html#comment-158854</guid> <description>The article does not mention how to masquerade the username.</description> <content:encoded><![CDATA[<p>The article does not mention how to masquerade the username.</p> ]]></content:encoded> </item> <item><title>By: Anon</title><link>http://www.cyberciti.biz/tips/sendmail-masquerading-configuration-howto.html#comment-157441</link> <dc:creator>Anon</dc:creator> <pubDate>Wed, 07 Jul 2010 10:11:54 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/sendmail-masquerading-configuration-howto.html#comment-157441</guid> <description>To allow root to masquerade (eg: for logwatch) in sendmail.mc change:
EXPOSED_USER(`root&#039;)dnl
to
dnl EXPOSED_USER(`root&#039;)dnl
This command bypasses masquerading for the root user, which makes it very confusing when testing this from the root account.</description> <content:encoded><![CDATA[<p>To allow root to masquerade (eg: for logwatch) in sendmail.mc change:</p><p>EXPOSED_USER(`root&#8217;)dnl</p><p>to</p><p>dnl EXPOSED_USER(`root&#8217;)dnl</p><p>This command bypasses masquerading for the root user, which makes it very confusing when testing this from the root account.</p> ]]></content:encoded> </item> <item><title>By: J James</title><link>http://www.cyberciti.biz/tips/sendmail-masquerading-configuration-howto.html#comment-156076</link> <dc:creator>J James</dc:creator> <pubDate>Tue, 18 May 2010 20:24:42 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/sendmail-masquerading-configuration-howto.html#comment-156076</guid> <description>One more thing needs to done, if sending mail as root
#C{E}root                 - comment out</description> <content:encoded><![CDATA[<p>One more thing needs to done, if sending mail as root<br
/> #C{E}root                 &#8211; comment out</p> ]]></content:encoded> </item> <item><title>By: josh from america</title><link>http://www.cyberciti.biz/tips/sendmail-masquerading-configuration-howto.html#comment-155973</link> <dc:creator>josh from america</dc:creator> <pubDate>Tue, 11 May 2010 19:01:27 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/sendmail-masquerading-configuration-howto.html#comment-155973</guid> <description>sendmail totally ignores all changes related to masquerade, also know as:
&quot;does not work&quot;, or &quot;tutorial non- helpfull&quot;</description> <content:encoded><![CDATA[<p>sendmail totally ignores all changes related to masquerade, also know as:</p><p>&#8220;does not work&#8221;, or &#8220;tutorial non- helpfull&#8221;</p> ]]></content:encoded> </item> <item><title>By: Shai</title><link>http://www.cyberciti.biz/tips/sendmail-masquerading-configuration-howto.html#comment-155964</link> <dc:creator>Shai</dc:creator> <pubDate>Tue, 11 May 2010 07:19:16 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/sendmail-masquerading-configuration-howto.html#comment-155964</guid> <description>Make sure that you have placed the above 4 lines above the MAILER lines at the end or you&#039;ll get an error when issuing the m4 cmd from cli</description> <content:encoded><![CDATA[<p>Make sure that you have placed the above 4 lines above the MAILER lines at the end or you&#8217;ll get an error when issuing the m4 cmd from cli</p> ]]></content:encoded> </item> <item><title>By: Mrmartin</title><link>http://www.cyberciti.biz/tips/sendmail-masquerading-configuration-howto.html#comment-153758</link> <dc:creator>Mrmartin</dc:creator> <pubDate>Wed, 17 Feb 2010 18:36:30 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/sendmail-masquerading-configuration-howto.html#comment-153758</guid> <description>Great, simple article, how would the masquerading work if I&#039;m using Apache virtual hosts ie more than 1 domain on the server.  If a php app from one virtual host sends mail using the PHP mail() function how do I set which from address is used?
Thanks</description> <content:encoded><![CDATA[<p>Great, simple article, how would the masquerading work if I&#8217;m using Apache virtual hosts ie more than 1 domain on the server.  If a php app from one virtual host sends mail using the PHP mail() function how do I set which from address is used?</p><p>Thanks</p> ]]></content:encoded> </item> <item><title>By: ifti</title><link>http://www.cyberciti.biz/tips/sendmail-masquerading-configuration-howto.html#comment-147243</link> <dc:creator>ifti</dc:creator> <pubDate>Mon, 16 Feb 2009 05:58:33 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/sendmail-masquerading-configuration-howto.html#comment-147243</guid> <description>i m facing the same problem as mentioned by didier , actually i have set a linux monitoring server which monitors network devices,if any device is down it sends emails on our local domain using sendmail, the outgoing mails are sent from this server like root@localhos.localdomain i want to masquerade it to say test@xyz.com, nix and didier any help will be highly appreciable....
thanks</description> <content:encoded><![CDATA[<p>i m facing the same problem as mentioned by didier , actually i have set a linux monitoring server which monitors network devices,if any device is down it sends emails on our local domain using sendmail, the outgoing mails are sent from this server like <a
href="mailto:root@localhos.localdomain">root@localhos.localdomain</a> i want to masquerade it to say <a
href="mailto:test@xyz.com">test@xyz.com</a>, nix and didier any help will be highly appreciable&#8230;.<br
/> thanks</p> ]]></content:encoded> </item> <item><title>By: didier</title><link>http://www.cyberciti.biz/tips/sendmail-masquerading-configuration-howto.html#comment-31305</link> <dc:creator>didier</dc:creator> <pubDate>Mon, 20 Nov 2006 20:17:50 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/sendmail-masquerading-configuration-howto.html#comment-31305</guid> <description>Hi nixcraft,
No I haven&#039;t set this up. To be fully honest, I am not familiar with virtual unix user name mapping. Can you explain a little bit more.
I did try to use the virtusertable file but it didn&#039;t to work for outgoing email. The problem I am trying to solve is EXACTLY the on you mention in your post: I have a machine (prod1) and a user (prod) and I want to send emails as invitation@.com (I am just interested in outgoing email... and no, I am not a spammer :-)
The masquerade works for the domain name, but for the user, I ended up having to create a unix user &#039;invitation&#039; on my box and sudo to invitation before sending the emails... It works fine but I am sure there is a better/simpler way...
Thanks for your reply btw.
-Didier</description> <content:encoded><![CDATA[<p>Hi nixcraft,</p><p>No I haven&#8217;t set this up. To be fully honest, I am not familiar with virtual unix user name mapping. Can you explain a little bit more.</p><p>I did try to use the virtusertable file but it didn&#8217;t to work for outgoing email. The problem I am trying to solve is EXACTLY the on you mention in your post: I have a machine (prod1) and a user (prod) and I want to send emails as invitation@.com (I am just interested in outgoing email&#8230; and no, I am not a spammer :-)</p><p>The masquerade works for the domain name, but for the user, I ended up having to create a unix user &#8216;invitation&#8217; on my box and sudo to invitation before sending the emails&#8230; It works fine but I am sure there is a better/simpler way&#8230;</p><p>Thanks for your reply btw.<br
/> -Didier</p> ]]></content:encoded> </item> <item><title>By: nixcraft</title><link>http://www.cyberciti.biz/tips/sendmail-masquerading-configuration-howto.html#comment-29263</link> <dc:creator>nixcraft</dc:creator> <pubDate>Fri, 17 Nov 2006 13:01:33 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/sendmail-masquerading-configuration-howto.html#comment-29263</guid> <description>Do you have virtual UNIX user name mapping like:
user1@domain.com  drealuser
???</description> <content:encoded><![CDATA[<p>Do you have virtual UNIX user name mapping like:<br
/> <a
href="mailto:user1@domain.com">user1@domain.com</a> drealuser</p><p>???</p> ]]></content:encoded> </item> <item><title>By: didier</title><link>http://www.cyberciti.biz/tips/sendmail-masquerading-configuration-howto.html#comment-28816</link> <dc:creator>didier</dc:creator> <pubDate>Thu, 16 Nov 2006 23:14:02 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/sendmail-masquerading-configuration-howto.html#comment-28816</guid> <description>Nice. So, this explains how to &#039;hide&#039; the domain name. But what about the user name ? With the changes you describe, it still shows our real unix username. Am I missing something here ?
thanks for your help.
-Didier</description> <content:encoded><![CDATA[<p>Nice. So, this explains how to &#8216;hide&#8217; the domain name. But what about the user name ? With the changes you describe, it still shows our real unix username. Am I missing something here ?</p><p>thanks for your help.<br
/> -Didier</p> ]]></content:encoded> </item> </channel> </rss>
