<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Hack Admin &#187; Workaround</title>
	<atom:link href="http://www.hackadmin.com/category/workaround/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hackadmin.com</link>
	<description></description>
	<lastBuildDate>Tue, 16 Mar 2010 21:31:57 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How To Make Sendmail Relay Everything</title>
		<link>http://www.hackadmin.com/2009/07/10/how-to-make-sendmail-relay-everything/</link>
		<comments>http://www.hackadmin.com/2009/07/10/how-to-make-sendmail-relay-everything/#comments</comments>
		<pubDate>Fri, 10 Jul 2009 23:44:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Education]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Workaround]]></category>
		<category><![CDATA[directive]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[email relay]]></category>
		<category><![CDATA[inbound email]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[relay]]></category>
		<category><![CDATA[relay email]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[sendmail]]></category>
		<category><![CDATA[smtp]]></category>

		<guid isPermaLink="false">http://www.hackadmin.com/?p=146</guid>
		<description><![CDATA[I knew I had done this before, but all the explanations I found today were amazingly long and convoluted, which is not what I remembered from the first go around.
Basically, I wanted sendmail to take all inbound email and immediately relay it to another host.  In my situation it makes sense because my servers [...]]]></description>
			<content:encoded><![CDATA[<p>I knew I had done this before, but all the explanations I found today were amazingly long and convoluted, which is not what I remembered from the first go around.</p>
<p>Basically, I wanted sendmail to take all inbound email and immediately relay it to another host.  In my situation it makes sense because my servers have no direct access to the outside world (security thing).  But in reality with the complexities involved in sending email these days, why bother setting up every host or every NAT to be capable of dependably delivering email.</p>
<p>So the solution is, setup one host that you know is a good mail host, and one host that you can monitor for throughput, then point all your other hosts at it for delivery.  Piece of cake right?  Odd that it took me 30 minutes and then a final trip to the sendmail documentation to find it.</p>
<p><span id="more-146"></span>In the end we&#8217;re talking about 1 line in your sendmail.mc (I&#8217;ve consistently found that most of life&#8217;s problems can be solved with 5 to 50 characters in the right text file).</p>
<p>At any rate, the directive you are looking for is:</p>
<p><code>define(`SMART_HOST', `smart.host.com')dnl</code></p>
<p>Just replace &#8220;smart.host.com&#8221; with the smtp server you intend to use as the relay.</p>
<p>For those of you who don&#8217;t use the sendmail.mc, you need to modify the DS variable in your sendmail.cf (but really, find something better to do with your time than edit that file).</p>
<p>For all you sendmail.mc users, once that line is in place, run a &#8220;make&#8221; in your /etc/mail directory and then restart sendmail.</p>
<p>Actually, I was using this mess of a line to test:</p>
<p><code>touch /tmp/mail.txt; /etc/init.d/sendmail restart ; mail -s "Test2" me@myemail.com &lt; /tmp/mail.txt ; tail -f /var/log/maillog</code></p>
<p>You&#8217;ll come up in a tail of maillog and you should watch for the relay host accepting your message.  If it doesn&#8217;t get delivered, it&#8217;s time to look at the relay server.</p>
<p>That is all, have fun!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hackadmin.com/2009/07/10/how-to-make-sendmail-relay-everything/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dell Switches, Digi Console Servers and Linux Serial Ports</title>
		<link>http://www.hackadmin.com/2009/07/04/dell-switches-digi-console-servers-and-linux-serial-ports/</link>
		<comments>http://www.hackadmin.com/2009/07/04/dell-switches-digi-console-servers-and-linux-serial-ports/#comments</comments>
		<pubDate>Sat, 04 Jul 2009 13:56:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Workaround]]></category>
		<category><![CDATA[console server]]></category>
		<category><![CDATA[Dell]]></category>
		<category><![CDATA[dell 6000 series]]></category>
		<category><![CDATA[Dell 6224]]></category>
		<category><![CDATA[Digi]]></category>
		<category><![CDATA[digi passport]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Console]]></category>
		<category><![CDATA[serial port]]></category>
		<category><![CDATA[switch]]></category>

		<guid isPermaLink="false">http://www.hackadmin.com/?p=99</guid>
		<description><![CDATA[What a day&#8230;  So we have a fancy new(new to us) Dell 6000 series switch, a 6224 actually.  As it turns out, our typical remote serial solution won&#8217;t work with this switch.  Normally we&#8217;ll connect the console port of these switches to a Digi Passport Server.  The network has 2 entry [...]]]></description>
			<content:encoded><![CDATA[<p>What a day&#8230;  So we have a fancy new(new to us) Dell 6000 series switch, a 6224 actually.  As it turns out, our typical remote serial solution won&#8217;t work with this switch.  Normally we&#8217;ll connect the console port of these switches to a Digi Passport Server.  The network has 2 entry points, so if we need to work on any device that may cause an outage at either entry point, we have options to maintain connectivity.</p>
<p><span id="more-99"></span><br />
At any rate, this sweet little 6000 series switch works fine connected to a PC, but through the Digi we get no love.  What does Dell say?  Dell says it should be exactly like all of our 5000 series switches and there should be no change in Digi pinouts, they also said, if it doesn&#8217;t work now, it never will.  Whatever that means..  Well this of course creates a dilemma, we need to modify this thing and it is definitely going to drop the network.</p>
<p>So the short term solution is using a linux box that is connected to one of our entry points.  Basically we just plugged the Dell console cable into the serial port of this server.  After that you can just use screen from a terminal window to make it all go.</p>
<p>Once you have the Dell console cable connected, open a terminal window to the server that is hooked to the Dell(or whatever device).  If you haven&#8217;t used sceen before, it&#8217;s really quite simple, basically, in your terminal window type the following command:</p>
<p>screen /dev/ttyS0 9600</p>
<p>This opens a console connection to the dell through your serial port at 9600 baud.  Once you are in here, it&#8217;s life as normal, it&#8217;s getting out where you&#8217;ll need to know a little about screen.</p>
<p>The easiest way to bail out of this connection is the following sequence:<br />
CTRL + A<br />
K (SHIFT + K)</p>
<p>This will open a dialog at the bottom of the window asking if you are sure that you want to kill this window.  Answer &#8216;y&#8217; and you are back to your original terminal window.</p>
<p>Dat&#8217;s it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hackadmin.com/2009/07/04/dell-switches-digi-console-servers-and-linux-serial-ports/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Connect to Ustream.tv Chat With An IRC Client</title>
		<link>http://www.hackadmin.com/2009/06/21/connect-to-ustreamtv-chat-with-an-irc-client/</link>
		<comments>http://www.hackadmin.com/2009/06/21/connect-to-ustreamtv-chat-with-an-irc-client/#comments</comments>
		<pubDate>Sun, 21 Jun 2009 22:32:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Workaround]]></category>
		<category><![CDATA[3rd party website]]></category>
		<category><![CDATA[chat]]></category>
		<category><![CDATA[IRC]]></category>
		<category><![CDATA[pidgin]]></category>
		<category><![CDATA[ustream]]></category>

		<guid isPermaLink="false">http://www.hackadmin.com/2009/06/21/connect-to-ustreamtv-chat-with-an-irc-client/</guid>
		<description><![CDATA[If you have a favorite room on ustream.tv and you can&#8217;t stand the web based chat client, you can easily attach to their IRC server and take control of your experience.


Create an account on ustream.tv, you&#8217;re going to use your credentials to log into their server.
Download and install an IRC client.  In this example I&#8217;m [...]]]></description>
			<content:encoded><![CDATA[<p>If you have a favorite room on ustream.tv and you can&#8217;t stand the web based chat client, you can easily attach to their IRC server and take control of your experience.</p>
<p><span id="more-31"></span>
<ol>
<li>Create an account on ustream.tv, you&#8217;re going to use your credentials to log into their server.</li>
<li>Download and install an IRC client.  In this example I&#8217;m going to be using pidgin as it&#8217;s installed by default in Ubuntu.  Versions for windoze and mac are available <a title="Download Pidgin" href="http://www.pidgin.im/download/" target="_blank">here.</a></li>
<li>Open up the app and click on the accounts menu, and click on manage accounts.<br />
<img style="border: 0px initial initial;" src="http://www.hackadmin.com/wp-content/uploads/2009/06/screenshot-add-account-1.png" border="0" alt="add pidgin account" width="383" height="420" /></li>
<li>Click on &#8220;Add&#8221;.</li>
<li>For protocol, choose IRC, fill in your username and password (check the &#8220;remember password&#8221; option), then in the server box, add chat1.ustream.tv.</li>
<li>Save these settings and make sure to click &#8220;enabled&#8221;  next to it in the accounts window.  This will cause pidgin to create the connection to ustream.tv</li>
<li>Close the accounts window then click on the &#8220;Buddies&#8221; menu back on the Buddy list window.  Then click on &#8220;join a chat&#8221;.</li>
<li>In the channel window, type in the name of the room that you are currently in prefixed with a number sign &#8220;#&#8221;.</li>
</ol>
<p>Once you do this a new window should pop open and you will be chatting on ustream.tv in your appropriate room without the hassle of their java web client.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hackadmin.com/2009/06/21/connect-to-ustreamtv-chat-with-an-irc-client/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

