Anthony Lopez

“I’d rather see a sermon than hear one any day;”

Entrepreneurship

Posted by lopeza on March 9, 2014

Thanks to all the Scouters who took the time to go on a journey with me. I hope that the message may have inspired you to be more Entrepreneurial. Good Luck!

entrepreneurship

Advertisements

Posted in Uncategorized | Leave a Comment »

Cyber Chip

Posted by lopeza on March 8, 2014

This presentation focuses on cyber safety in the outdoors. Thanks for participating.

Cyber Protection

Posted in Uncategorized | Leave a Comment »

Couldn’t update Time on virtual linux machine

Posted by lopeza on January 14, 2014

I realized one of my Xen boxes was out of time sync and no standard commands would change it. Not even ntpd.

Until you add this to /etc/sysctl.conf

# Allow the VM to update it's own clock, and do not use the DOM host clock. xen.independent_wallclock=1

Then change the date with

date -s "14 JAN 2014 12:14:00"

Posted in Linux | Leave a Comment »

Listening as a skill

Posted by lopeza on April 30, 2013

Recently, I have been working on a presentation for communication and leadership. I have spent time over the last few years seeking help with my own communication and found that the best way to become better is to teach it. I have learned that its the job of the presenter to deliver a message effectively, but lately I have noticed that as a listener I am actively looking for the message.

Listening effectively is not easy, but it can truly enhance the communication exchange.

You have to clear out your mind and focus on the speaker, you have to ignore everything that you have to do in your everyday life and you have to commit. I have learned many techniques on keeping the audience engaged, but what are the techniques for keeping ourselves as listeners engaged?

Here is what I think?

1. Put yourself in the shoes of the speaker with regard to the content, if the speaker is passionate about the content, be passionate with them.

2. Use your mind and heart to understand what the speaker is trying to say, articulate the message back to yourself.

3. Relate a similar experience with what the speaker is saying.

While different things work for different people, the fact is that if you are an effective listener you improve communication.

Posted in Communication, Leadership | Leave a Comment »

Run Run Run

Posted by lopeza on September 14, 2010

I recently starting running again and decided to use this cool tool on my android phone to map my runs.

iMapMyRUN+: Sep 14, 2010 06:45 PM
Find more Runs in New Milford, New Jersey

Posted in Uncategorized | Leave a Comment »

Setting up DKIMproxy

Posted by lopeza on August 21, 2009

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!

Website – http://dkimproxy.sourceforge.net/

Installing DKIMproxy

http://dkimproxy.sourceforge.net/download.html
Prerequisites

cpan install Mail::DKIM
cpan install Crypt::OpenSSL::RSA
cpan install Digest::SHA
cpan install Mail::Address
cpan install MIME::Base64
cpan install Net::DNS
cpan install Net::Server
cpan install Error

Installing DKIMproxy Service:

cd /home/admin/
wget http://downloads.sourceforge.net/dkimproxy/dkimproxy-1.2.tar.gz
tar -xzvf dkimproxy-1.2.tar.gz
cd dkimproxy-1.2
./configure –prefix=/usr/local/dkimproxy
make install
useradd dkimuser
passwd dkimuser
cp sample-dkim-init-script.sh /etc/init.d/dkimproxy
chkconfig –add dkimproxy
chkconfig dkimproxy on

Installing DKIMproxy to sign outbound messages

http://dkimproxy.sourceforge.net/usage.html
Generate a private/public key pair using OpenSSL:

cd /usr/local/dkim/
openssl genrsa -out private.key 1024
openssl rsa -in private.key -pubout -out public.key
chown dkimuser.root private.key
chmod 640 private.key

Pick a selector name… e.g. selector1
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:

selector1._domainkey IN TXT “k=rsa; t=s; p=MHwwDQYJK … OprwIDAQAB”

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.

Configure DKIMproxy

Create a file named /usr/local/dkimproxy/etc/dkimproxy_out.conf and give it the following content:

# specify what address/port DKIMproxy should listen on
listen 127.0.0.1:10027

# specify what address/port DKIMproxy forwards mail to
relay 127.0.0.1:10028

# specify what domains DKIMproxy can sign for (comma-separated, no spaces)
domain clubmom.com

# specify what signatures to add
signature dkim(c=relaxed)
signature domainkeys(c=nofws)

# specify location of the private key
keyfile /usr/local/dkimproxy/private.key

# specify the selector (i.e. the name of the key record put in DNS)
selector clubmomdkim

Start DKIMproxy

service dkimproxy start

Setting up the outbound proxy with Postfix

http://dkimproxy.sourceforge.net/postfix-outbound-howto.html
Edit the /etc/postfix/master.cf with the the following:

#
# modify the default submission service to specify a content filter
# and restrict it to local clients and SASL authenticated clients only
#
submission inet n – n – – smtpd
-o smtpd_etrn_restrictions=reject
-o smtpd_sasl_auth_enable=yes
-o content_filter=dksign:[127.0.0.1]:10027
-o receive_override_options=no_address_mappings
-o smtpd_recipient_restrictions=permit_mynetworks,permit_sasl_authenticated,reject

#
# specify the location of the DKIM signing proxy
# Note: we allow “4” simultaneous deliveries here; high-volume sites may
# want a number higher than 4.
# Note: the smtp_discard_ehlo_keywords option requires Postfix 2.2 or
# better. Leave it off if your version does not support it.
#
dksign unix – – n – 4 smtp
-o smtp_send_xforward_command=yes
-o smtp_discard_ehlo_keywords=8bitmime,starttls

#
# service for accepting messages FROM the DKIM signing proxy
#
127.0.0.1:10028 inet n – n – 10 smtpd
-o content_filter=
-o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
-o smtpd_helo_restrictions=
-o smtpd_client_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o mynetworks=127.0.0.0/8
-o smtpd_authorized_xforward_hosts=127.0.0.0/8

reload postfix

Setup your mail server to send to dkimproxy

A dev environment is setup on office1 using dev04 as an outbound mailserver using dkimproxy on port 587

To use sendmail and configure a smarthost onto a port other than 25. Modify /etc/mail/sendmail.mc

define(`SMART_HOST’,`relay:dev04.clubmom.local’)dnl
define(`RELAY_MAILER’,`esmtp’)dnl
define(`RELAY_MAILER_ARGS’, `TCP $h 587′)dnl
#make -C /etc/mail
#service sendmail restart

Posted in Linux, RHCE | 1 Comment »