<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Anthony Lopez &#187; Linux</title>
	<atom:link href="http://anthonyl.us/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://anthonyl.us</link>
	<description>"I'd rather see a sermon than hear one any day;"</description>
	<lastBuildDate>Fri, 04 Nov 2011 22:47:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='anthonyl.us' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Anthony Lopez &#187; Linux</title>
		<link>http://anthonyl.us</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://anthonyl.us/osd.xml" title="Anthony Lopez" />
	<atom:link rel='hub' href='http://anthonyl.us/?pushpress=hub'/>
		<item>
		<title>Setting up DKIMproxy</title>
		<link>http://anthonyl.us/2009/08/21/setting-up-dkimproxy/</link>
		<comments>http://anthonyl.us/2009/08/21/setting-up-dkimproxy/#comments</comments>
		<pubDate>Fri, 21 Aug 2009 15:50:23 +0000</pubDate>
		<dc:creator>lopeza</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[RHCE]]></category>

		<guid isPermaLink="false">http://anthonyl.us/?p=191</guid>
		<description><![CDATA[One day I was asked to make our email deliverabilty more reliable.  I found the Yahoo domain keys and DKIM were additional ways to help with some email providers besides SPF.  I setup DK and DKIM milters and found that when sending bulk loads of emails (100k+) the time it took to sign and send [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anthonyl.us&#038;blog=3504033&#038;post=191&#038;subd=lopeza&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>One day I was asked to make our email deliverabilty more reliable.  I found the Yahoo domain keys and DKIM were additional ways to help with some email providers besides SPF.  I setup DK and DKIM milters and found that when sending bulk loads of emails (100k+) the time it took to sign and send was well over 7 seconds per email.  I am sure there are tweaks that we could have done to modify the sending script to deal with this but we just wanted something simple and easy to use.  Later I decided to install DKIM proxy and make submitting email to an email server easy and requiring no scripting change.  After testing I found that our email blasting was fast and our deliverability for sending email had gone up about 27%.  We still continue relationships with email providers to gain trust but that is too an everchanging process.  Below I documented what I did to get DKIMproxy and postfix configured on a RHEL 5 server.  I believe it should be the same for CentOs 5 as well.   Good Luck on your setup!</p>
<p><a href="http://dkimproxy.sourceforge.net/">Website &#8211; http://dkimproxy.sourceforge.net/</a> </p>
<p><strong>Installing DKIMproxy</strong></p>
<p><a href="http://dkimproxy.sourceforge.net/download.html">http://dkimproxy.sourceforge.net/download.html</a><br />
Prerequisites</p>
<blockquote><p>cpan install Mail::DKIM<br />
cpan install Crypt::OpenSSL::RSA<br />
cpan install Digest::SHA<br />
cpan install Mail::Address<br />
cpan install MIME::Base64<br />
cpan install Net::DNS<br />
cpan install Net::Server<br />
cpan install Error</p></blockquote>
<p>Installing DKIMproxy Service:</p>
<blockquote><p>cd /home/admin/<br />
wget http://downloads.sourceforge.net/dkimproxy/dkimproxy-1.2.tar.gz<br />
tar -xzvf dkimproxy-1.2.tar.gz<br />
cd dkimproxy-1.2<br />
./configure &#8211;prefix=/usr/local/dkimproxy<br />
make install<br />
useradd <em>dkimuser</em><br />
passwd <em>dkimuser</em><br />
cp sample-dkim-init-script.sh /etc/init.d/dkimproxy<br />
chkconfig &#8211;add dkimproxy<br />
chkconfig dkimproxy on</p></blockquote>
<p><strong>Installing DKIMproxy to sign outbound messages</strong></p>
<p><a href="http://dkimproxy.sourceforge.net/usage.html">http://dkimproxy.sourceforge.net/usage.html</a><br />
Generate a private/public key pair using OpenSSL:</p>
<blockquote><p>cd /usr/local/dkim/<br />
openssl genrsa -out private.key 1024<br />
openssl rsa -in private.key -pubout -out public.key<br />
chown dkimuser.root private.key<br />
chmod 640 private.key</p></blockquote>
<p>Pick a selector name&#8230; e.g. selector1<br />
Put the public-key data in DNS, in your domain, using the selector name you picked. Take the contents of the public.key file and remove the PEM header and footer, and concatenate the lines of the file into one big line. Then create a TXT entry, like this:</p>
<blockquote><p>selector1._domainkey IN TXT &#8220;k=rsa; t=s; p=MHwwDQYJK &#8230; OprwIDAQAB&#8221;</p></blockquote>
<p>where selector1 is the name of the selector chosen in the last step and the p= parameter contains the public-key as one long string of characters.</p>
<p><strong>Configure DKIMproxy</strong></p>
<p>Create a file named /usr/local/dkimproxy/etc/dkimproxy_out.conf and give it the following content:</p>
<blockquote><p># specify what address/port DKIMproxy should listen on<br />
listen    127.0.0.1:10027</p>
<p># specify what address/port DKIMproxy forwards mail to<br />
relay     127.0.0.1:10028</p>
<p># specify what domains DKIMproxy can sign for (comma-separated, no spaces)<br />
domain    clubmom.com</p>
<p># specify what signatures to add<br />
signature dkim(c=relaxed)<br />
signature domainkeys(c=nofws)</p>
<p># specify location of the private key<br />
keyfile   /usr/local/dkimproxy/private.key</p>
<p># specify the selector (i.e. the name of the key record put in DNS)<br />
selector  clubmomdkim</p></blockquote>
<p>Start DKIMproxy</p>
<blockquote><p>service dkimproxy start</p></blockquote>
<p><strong>Setting up the outbound proxy with Postfix</strong></p>
<p><a href="http://dkimproxy.sourceforge.net/postfix-outbound-howto.html">http://dkimproxy.sourceforge.net/postfix-outbound-howto.html</a><br />
Edit the /etc/postfix/master.cf with the the following:</p>
<blockquote><p>#<br />
# modify the default submission service to specify a content filter<br />
# and restrict it to local clients and SASL authenticated clients only<br />
#<br />
submission  inet  n     &#8211;       n       &#8211;       &#8211;       smtpd<br />
    -o smtpd_etrn_restrictions=reject<br />
    -o smtpd_sasl_auth_enable=yes<br />
    -o content_filter=dksign:[127.0.0.1]:10027<br />
    -o receive_override_options=no_address_mappings<br />
    -o smtpd_recipient_restrictions=permit_mynetworks,permit_sasl_authenticated,reject</p>
<p>#<br />
# specify the location of the DKIM signing proxy<br />
# Note: we allow &#8220;4&#8243; simultaneous deliveries here; high-volume sites may<br />
#   want a number higher than 4.<br />
# Note: the smtp_discard_ehlo_keywords option requires Postfix 2.2 or<br />
#   better. Leave it off if your version does not support it.<br />
#<br />
dksign    unix  &#8211;       &#8211;       n       &#8211;       4       smtp<br />
    -o smtp_send_xforward_command=yes<br />
    -o smtp_discard_ehlo_keywords=8bitmime,starttls</p>
<p>#<br />
# service for accepting messages FROM the DKIM signing proxy<br />
#<br />
127.0.0.1:10028 inet  n  &#8211;      n       &#8211;       10      smtpd<br />
    -o content_filter=<br />
    -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks<br />
    -o smtpd_helo_restrictions=<br />
    -o smtpd_client_restrictions=<br />
    -o smtpd_sender_restrictions=<br />
    -o smtpd_recipient_restrictions=permit_mynetworks,reject<br />
    -o mynetworks=127.0.0.0/8<br />
    -o smtpd_authorized_xforward_hosts=127.0.0.0/8</p></blockquote>
<p>reload postfix</p>
<p><strong>Setup your mail server to send to dkimproxy</strong></p>
<p>A dev environment is setup on office1 using dev04 as an outbound mailserver using dkimproxy on port 587</p>
<p>To use sendmail and configure a smarthost onto a port other than 25. Modify /etc/mail/sendmail.mc</p>
<blockquote><p>define(`SMART_HOST&#8217;,`relay:dev04.clubmom.local&#8217;)dnl<br />
define(`RELAY_MAILER&#8217;,`esmtp&#8217;)dnl<br />
define(`RELAY_MAILER_ARGS&#8217;, `TCP $h 587&#8242;)dnl<br />
#make -C /etc/mail<br />
#service sendmail restart</p></blockquote>
<br />Posted in Linux, RHCE  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lopeza.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lopeza.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lopeza.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lopeza.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lopeza.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lopeza.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lopeza.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lopeza.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lopeza.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lopeza.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lopeza.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lopeza.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lopeza.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lopeza.wordpress.com/191/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anthonyl.us&#038;blog=3504033&#038;post=191&#038;subd=lopeza&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anthonyl.us/2009/08/21/setting-up-dkimproxy/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b170149b19e484222a2827733d95c917?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lopeza</media:title>
		</media:content>
	</item>
		<item>
		<title>Setting up VSFTP using non-local users.</title>
		<link>http://anthonyl.us/2009/08/12/setting-up-vsftp-using-non-local-users/</link>
		<comments>http://anthonyl.us/2009/08/12/setting-up-vsftp-using-non-local-users/#comments</comments>
		<pubDate>Wed, 12 Aug 2009 20:10:08 +0000</pubDate>
		<dc:creator>lopeza</dc:creator>
				<category><![CDATA[Learning]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://anthonyl.us/?p=176</guid>
		<description><![CDATA[Install Required packages pam db4 vsftpd compat-db (this is the package name on fedora which provides the binary db42_load) Configure PAM # vi /etc/pam.d/vsftpd (I EDITED THE FILE TO LOOK LIKE THIS) #%PAM-1.0 session optional pam_keyinit.so force revoke auth required /lib/security/pam_userdb.so db=/etc/vsftpd/vsftpd_users account required /lib/security/pam_userdb.so db=/etc/vsftpd/vsftpd_users #auth required pam_listfile.so item=user sense=deny file=/etc/vsftpd/ftpusers #auth required pam_shells.so [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anthonyl.us&#038;blog=3504033&#038;post=176&#038;subd=lopeza&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Install Required packages</strong></p>
<blockquote><p>pam<br />
db4<br />
vsftpd<br />
compat-db (this is the package name on fedora which provides the binary db42_load)</p></blockquote>
<p><strong>Configure PAM</strong></p>
<blockquote><p># vi /etc/pam.d/vsftpd (I EDITED THE FILE TO LOOK LIKE THIS)<br />
#%PAM-1.0<br />
session optional pam_keyinit.so force revoke<br />
auth required /lib/security/pam_userdb.so db=/etc/vsftpd/vsftpd_users<br />
account required /lib/security/pam_userdb.so db=/etc/vsftpd/vsftpd_users<br />
#auth required pam_listfile.so item=user sense=deny file=/etc/vsftpd/ftpusers<br />
#auth required pam_shells.so<br />
#auth include system-auth<br />
#account include system-auth<br />
#session include system-auth<br />
#session required pam_loginuid.so<br />
(note: I had to comment out the bottom 6 lines to get the pam_userdb authentication to succeed for ftp logins. With them not commented out, authentication of known good users failed)</p></blockquote>
<p><strong>Create system user for vsftpd.conf</strong> (this is a dummy user, not logged into directly via FTP)<br />
# adduser -d /home/virtualftp/ virtualftp</p>
<p><strong>Configure vsftpd for virtual users</strong></p>
<blockquote><p>#vi /etc/vsftpd/vsftpd.conf (I EDITED THE FILE TO LOOK LIKE THIS)</p></blockquote>
<blockquote></blockquote>
<blockquote><p>local_enable=YES<br />
write_enable=YES<br />
local_umask=022<br />
dirmessage_enable=YES<br />
xferlog_enable=YES<br />
connect_from_port_20=YES<br />
xferlog_file=/var/log/vsftpd.log<br />
xferlog_std_format=YES<br />
chroot_local_user=YES<br />
listen=YES<br />
pam_service_name=vsftpd<br />
userlist_enable=YES<br />
tcp_wrappers=YES<br />
# Virtual users will be logged into /home/virtualftp/[username]/<br />
user_sub_token=$USER<br />
local_root=/home/virtualftp/$USER<br />
guest_enable=YES<br />
guest_username=virtualftp<br />
# Umask applied for virtual users and anon<br />
anon_umask=0022<br />
# Allows uploading by virtual users<br />
anon_upload_enable=YES<br />
# Allows creation of directories by virtual users<br />
anon_mkdir_write_enable=YES<br />
# Allows deletion of files and directories by virtual users<br />
anon_other_write_enable=YES<br />
# Sets a port range for passive mode. (must configure firewall to accept)<br />
pasv_max_port=51123<br />
pasv_min_port=51323<br />
port_enable=YES</p></blockquote>
<p><strong>Setup virtual FTP usernames and their passwords</strong> (use the following format)</p>
<blockquote><p># vi /etc/vsftpd/vsftpd_users.txt</p></blockquote>
<blockquote></blockquote>
<blockquote><p>username1<br />
passwordforusername1<br />
username2<br />
passwordforusername2<br />
username3<br />
passwordforusername3</p></blockquote>
<p><strong>Build the vsftpd database</strong></p>
<blockquote><p>#db42_load -T -t hash -f /etc/vsftpd/vsftpd_users.txt /etc/vsftpd/vsftpd_users.db<br />
#chmod 600 /etc/vsftpd/vsftpd_users.db /etc/vsftpd/vsftpd_users.txt</p></blockquote>
<p><strong>Create directories for each virtual FTP user</strong></p>
<blockquote><p>#mkdir -p /home/virtualftp/username1</p></blockquote>
<p><strong>Test an FTP virtual user login</strong></p>
<blockquote><p>#ftp localhost<br />
Connected to localhost.<br />
220 (vsFTPd 2.0.5)<br />
Name (localhost:root): username1<br />
331 Please specify the password.<br />
Password:<br />
230 Login successful.</p></blockquote>
<br />Posted in Learning, Linux  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lopeza.wordpress.com/176/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lopeza.wordpress.com/176/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lopeza.wordpress.com/176/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lopeza.wordpress.com/176/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lopeza.wordpress.com/176/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lopeza.wordpress.com/176/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lopeza.wordpress.com/176/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lopeza.wordpress.com/176/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lopeza.wordpress.com/176/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lopeza.wordpress.com/176/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lopeza.wordpress.com/176/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lopeza.wordpress.com/176/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lopeza.wordpress.com/176/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lopeza.wordpress.com/176/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anthonyl.us&#038;blog=3504033&#038;post=176&#038;subd=lopeza&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anthonyl.us/2009/08/12/setting-up-vsftp-using-non-local-users/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b170149b19e484222a2827733d95c917?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lopeza</media:title>
		</media:content>
	</item>
		<item>
		<title>How to set up Dell Openmanage for usage with yum CentOS5</title>
		<link>http://anthonyl.us/2009/04/24/136/</link>
		<comments>http://anthonyl.us/2009/04/24/136/#comments</comments>
		<pubDate>Fri, 24 Apr 2009 18:27:23 +0000</pubDate>
		<dc:creator>lopeza</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://anthonyl.us/?p=136</guid>
		<description><![CDATA[I set this up successfully on a poweredge 2950 running centos5.3 Set up this repository: wget -q -O &#8211; http://linux.dell.com/repo/hardware/latest/bootstrap.cgi &#124; bash Install Open Manage: yum install srvadmin-all Start Open Manage services srvadmin-services start Posted in Linux<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anthonyl.us&#038;blog=3504033&#038;post=136&#038;subd=lopeza&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h3><a id="yum"><span style="font-weight:normal;">I set this up successfully on a poweredge 2950 running centos5.3</span> </a></h3>
<ol>
<li>Set up this repository:<br />
<span style="font-family:Consolas;line-height:18px;white-space:pre;">wget -q -O &#8211; http://linux.dell.com/repo/hardware/latest/bootstrap.cgi | bash<br />
</span></li>
<li>Install Open Manage:<br />
<span style="font-family:Consolas;line-height:18px;white-space:pre;">yum install srvadmin-all<br />
</span></li>
<li>Start Open Manage services<br />
<span style="font-family:Consolas;line-height:18px;white-space:pre;">srvadmin-services start</span></li>
</ol>
<br />Posted in Linux  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lopeza.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lopeza.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lopeza.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lopeza.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lopeza.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lopeza.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lopeza.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lopeza.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lopeza.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lopeza.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lopeza.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lopeza.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lopeza.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lopeza.wordpress.com/136/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anthonyl.us&#038;blog=3504033&#038;post=136&#038;subd=lopeza&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anthonyl.us/2009/04/24/136/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b170149b19e484222a2827733d95c917?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lopeza</media:title>
		</media:content>
	</item>
	</channel>
</rss>
