Michael McNamara https://blog.michaelfmcnamara.com technology, networking, virtualization and IP telephony Sat, 30 Oct 2021 18:38:21 +0000 en-US hourly 1 https://wordpress.org/?v=6.7.1 SMTP Mail and Verizon https://blog.michaelfmcnamara.com/2016/01/smtp-mail-and-verizon/ https://blog.michaelfmcnamara.com/2016/01/smtp-mail-and-verizon/#comments Sat, 02 Jan 2016 15:36:04 +0000 https://blog.michaelfmcnamara.com/?p=5550 This morning I’m still trying to clean up my servers and I’ve run into another issue. Looks like Verizon is blocking all SMTP mail from one of my servers;

 host relay.verizon.net[206.46.232.11] refused
    to talk to me: 571 Email from 162.243.40.10 is currently blocked by Verizon
    Online's anti-spam system. The email sender or Email Service Provider may
    visit http://www.verizon.net/whitelist and request removal of the block.
    151214

Ok, it’s quite possible that someone on the discussion forums has been a misbehaving so I need to make sure there’s no legitimacy to this report. I need to scour the log files and make sure that there’s nothing going on. I keep the log files on my server for 30 days, let’s do some quick crude command line fu;

[root@moon ~]# grep -h @verizon /var/log/maillog* | awk '{ print $7 }' | sort | uniq -c
    427 to=nobody@verizon.net,

Note: I’ve obfuscated the email above so I don’t end up getting any more spam than I already receive daily.

Now that’s very interesting, I’m the only person that the server has been trying to mail which is getting denied by Verizon. Ok, so this problem is only impacting me, I guess that’s good.

So if it’s been going on for 30 days then I need to make sure the server is not listed on some RBL (real-time black list) somewhere. I’ll check http://www.blacklistalert.org/;

rbl-listing

Alright so I wasn’t listed on any of the RBL, I looked through the logs for any other anomalies and found none, focusing again on mail for Verizon customers (verizon.net/verizon.com) and found nothing, I searched the discussion forums user database and blog comment subscriptions and found nothing. It must be a false positive on Verizon’s side, I’ll submit a request to Verizon following their instructions. I went to http://www.verizon.net/whitelist and I tried submitting a request as a Verizon customer and the form submission crashed with the following;

VerizonSMTPWhitelistCrash

Ok, so I went back and submitted a request as an ISP (although I’m not an ISP but I’m starting to feel like one). That form was successfully submitted and I quickly received a reply via email.

VerizonSMTPWhitelistReply

That’s a boiler plate reply if I’ve ever seen one. Ok, so this doesn’t look like it’s going to be easy… I’ll need to chase the folks at abuse@verizon.net and probably in Twitter as well.

Cheers!

]]>
https://blog.michaelfmcnamara.com/2016/01/smtp-mail-and-verizon/feed/ 4
Raspberry Pi 2 Model B – Let the fun begin! https://blog.michaelfmcnamara.com/2015/08/raspberry-pi-2-model-b-let-the-fun-begin/ https://blog.michaelfmcnamara.com/2015/08/raspberry-pi-2-model-b-let-the-fun-begin/#comments Sun, 23 Aug 2015 14:02:35 +0000 http://blog.michaelfmcnamara.com/?p=5395 I finally broke down and ordered a Raspberry Pi 2 Model B and here are my first thoughts after tinkering with this $35 device for a few hours. The default username is “pi” while the default password is “raspberry”.

In short I’m just flat out impressed, it’s amazing how far technology has come and what you can do with a $35 device. I haven’t touched a breadboard in more than 20 years now but I’m excited to pick one up and start tinkering again. The electrical engineer in me is giddy with excitement and anticipation. While the computer scientist in me is eager to write some code and see how this little device can literally integrate into the real world.

I was impressed by how responsive the GUI was on the Raspberry Pi 2. It felt faster then some of the older Intel Core 3 laptops I have lying around the house. Using the USB 2015-08-21-230509_1632x1018_scrotwireless adapter that was included in the kit I purchased I was quickly able to get the Raspberry Pi to join my WPA2-PSK wireless network. Within 15 minutes I had a X windows desktop (you need to manually start X Windows with ‘startx’ from the command line interface – that reminded me of my early Linux days). I was also able to remotely connect via SSH using PuTTY to the little computer. The Raspberry Pi 2 uses a microSD card as the primary storage filesystem. I was again surprised by the performance of the 8GB Kingston microSD card that was included in the kit.  I’ve run a few live Linux distributions from CD/DVD and/or USB flash drives and the performance is always painfully slow. In this case the performance was transparent as the solution just worked and I didn’t need to bother about the bottlenecks because there were no visible performance issues.

Here are a few commands I used to update the Raspbian Linux distribution to the latest and greatest;

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade

I’m going to document how to setup a Raspberry Pi 2 as a remote PRTG probe. That should be fun.

Are you using a Raspberry Pi or Arduino? What are you doing with it?

Cheers!

]]>
https://blog.michaelfmcnamara.com/2015/08/raspberry-pi-2-model-b-let-the-fun-begin/feed/ 4
Swatch – Simple Log Watcher https://blog.michaelfmcnamara.com/2014/12/swatch-simple-log-watcher/ https://blog.michaelfmcnamara.com/2014/12/swatch-simple-log-watcher/#comments Sun, 21 Dec 2014 00:00:37 +0000 http://blog.michaelfmcnamara.com/?p=5092 It’s a wonder the odd and bizarre problems that seem to find me. Straight from the front lines I had an issue with a Motorola WS5100 v3.3.5.0-002R falling down at the most inopportune time of the retail calendar. While the original problem appeared on December 17 it returned last night to spoil the weekend.

In the process of trying to understand the problem and come up with a solution I wanted to have better visibility and alerting when the problem actually occurred, I didn’t want to incur the delay that would involve the users calling the help desk and the help desk calling me. Thankfully there is a SYSLOG message recorded when an Access Port experiences a watchdog reset so I had a log message now I needed to find a way to alert on that message.

That’s where I turned to swatch, a handy little utility that will monitor log files for regular expressions and then take whatever action, such as ringing the console or sending an email message is configured. I installed swatch with relative ease thanks to yum and then set out to configure it appropriately.

I created the following configuration file;

#/etc/swatchrc

# swatchrc - define regular expressions and generate alerts when matches are found in logs
#            daemon is started from /etc/cron.d/swatch

# Motorola AP300 - malfunctioning AP ignore events from this device

ignore /00-A0-F8-ZZ-ZZ-ZZ/

# Motorola WS5100 Access Port Adoption Errors Reboot/Watchdog events

#Dec 20 07:53:07 ACME-WLS1 %CC-6-APREADOPTREASON: AP 00-A0-F8-XX-XX-XX readoption reason: ColdBoot/Watchdog
#Dec 20 07:53:25 ACME-WLS1 %CC-6-APREADOPTREASON: AP 00-A0-F8-XX-XX-XX readoption reason: Link failed

# Let's look for the phrase readoption and we'll alert of that text

watchfor /readoption/
        exec "echo '$_' | mail swatch -s 'SWATCH: Motorola WS5100 Adoption Issue' "
        threshold track_by=$6,type=limit,count=1,seconds=60
        echo=red
        bell 5

#end

In the swatch configuration I used the mail aliase of swatch so I edited the /etc/newaliases file to make sure that the entire team would receive the alert;

#
#  Aliases in this file will NOT be expanded in the header from
#  Mail, but WILL be visible over networks or from /bin/mail.
#
#       >>>>>>>>>>      The program "newaliases" must be run after
#       >> NOTE >>      this file is updated for any changes to
#       >>>>>>>>>>      show through to sendmail.
#

# Basic system aliases -- these MUST be present.
mailer-daemon:  postmaster
postmaster:     root

# General redirections for pseudo accounts.
bin:            root
daemon:         root
adm:            root
...
...
...
swatch:         root,mike,john,dan,tom

If the problem is extremely important I’ll usually add the the email SMS text message gateway for my provider. This way I’ll get both an email message and an SMS text message alerting me to the problem.

# Verizon SMS Text Messaging 123456789@vtext.com
# AT&T SMS Text Messaging 123456789@txt.att.net
# T-Mobile SMS Text Messsaging 123456789@tmomail.net
# Sprint SMS Text Messaging 123456789@messaging.sprintpcs.com

I made sure to recompile the aliases file with the newaliases command and then I set off to run swatch in the foreground of my SSH session.

[root@centos /]# swatch -c /etc/swatchrc -p 'tail -f -n 0 /var/log/loc1fac17.log'

*** swatch version 3.2.3 (pid:30643) started at Sat Dec 20 15:54:14 EST 2014

And I waited for the event.

Now I could go about doing some research and due diligence without worrying that I might inadvertently fail to spot the problem.

I’ll let you know how it turned out!

Cheers!

Note: This is a series of posts made under the Network Engineer in Retail 30 Days of Peak, this is post number 26 of 30. All the posts can be viewed from the 30in30 tag.

]]>
https://blog.michaelfmcnamara.com/2014/12/swatch-simple-log-watcher/feed/ 2
Cisco Layer 2 Switching with Multicast and IGMP Snooping https://blog.michaelfmcnamara.com/2014/11/cisco-layer-2-switching-with-multicast-and-igmp-snooping/ https://blog.michaelfmcnamara.com/2014/11/cisco-layer-2-switching-with-multicast-and-igmp-snooping/#comments Wed, 26 Nov 2014 23:00:41 +0000 http://blog.michaelfmcnamara.com/?p=4548 I recently happened upon a familiar problem with IGMP Snooping on a Layer 2 topology comprised of Cisco Catalyst 6504 and 4948 switches. Another team was having issues getting Multicast traffic to pass between their Xen hosts which were all on the same VLAN, but where physically wired to the two different switches mentioned above. There was a trunk interface between the two switches, passing all the VLANs so there was nothing wrong with the basic Layer 2 forwarding. In general Multicast frames will be flooded across all ports in the VLAN, unless IGMP snooping is enabled which it is by default in Cisco switches. I remember quite a few challenges with IGMP snooping back in the Nortel and Avaya days. Avaya eventually changed their default configuration such that IGMP snooping is now disabled by default.

In this specific case all the routing was being performed by a number of high-end Cisco ASA firewalls which didn’t have PIM routing configured or enabled so I took the easy approach of just disabling IGMP snooping across the Cisco Catalyst 6504 and 4948 switches and the problem was solved. The cleaner solution would have been to setup an Mutlicast Router (mrouter) on the VLAN to properly handle all the IGMP requests and reports.

As pointed out by a colleague you can use a great little Python script written by RedHat for testing Multicast on your Linux servers.

Cheers!

Note: This is a series of posts made under the Network Engineer in Retail 30 Days of Peak, this is post number 3 of 30. All the posts can be viewed from the 30in30 tag.

Reference;
http://www.cisco.com/c/en/us/support/docs/switches/catalyst-6500-series-switches/68131-cat-multicast-prob.html
http://www.cisco.com/c/en/us/td/docs/security/asa/asa82/configuration/guide/config/route_multicast.html

]]>
https://blog.michaelfmcnamara.com/2014/11/cisco-layer-2-switching-with-multicast-and-igmp-snooping/feed/ 2
Linode Upgrades – Which hosting provider do you use? https://blog.michaelfmcnamara.com/2013/05/linode-upgrades-which-hosting-provider-do-you-use/ https://blog.michaelfmcnamara.com/2013/05/linode-upgrades-which-hosting-provider-do-you-use/#comments Sun, 19 May 2013 14:18:03 +0000 http://blog.michaelfmcnamara.com/?p=3613 Linode_LogoThere are dozens if not hundreds of hosting providers out there these days so how do you go about choosing the right one for you?

In the early days of my foray into blogging I utilized Google’s Blogger for the first six months. I then decided to move to GoDaddy’s (shared) managed hosting which wasn’t as bad as some reviews would have you believe. A year later I decided to leave GoDaddy for RIMU Hosting. I left behind managed hosting for an un-managed CentOS Linux VPS (Virtual Private Server). While I was a former IBM AIX System Administrator and Linux enthusiast I wasn’t quite prepared for the effort required to setup and manage a simple Linux web server. While I enjoyed the challenge it took me quite sometime to get everything automated. As the traffic to my blog and the discussion forums grew I started running into the memory and bandwidth limitations of the plan I was using from RIMU so I decided to switch to Linode after reading some positive review (such as this one). I’m happy to say I’ve been using Linode for almost 18 months, since October 2011, and have never had any issues or problems.

There have been a number of significant upgrades at Linode over the past few months, so much so that I thought I would take a second to detail them here and shamelessly plug my referral link at the same time.

Linode NexGen: RAM Upgrade

Linode literally left the best for last since most virtual workloads are memory constrained. They are essentially bumping everyone up one level, a Linode 512 becomes a Linode 1G, a Linode 1024 becomes a Linode 2GB, so on and so forth. It should be noted that they are also increasing their pricing by $0.05 per month, example the Linode 1G is $20.00 and not $19.95.

Plan RAM Disk XFER CPU Price
Linode 1G 1 GB 24 GB 2 TB 8 cores (1x priority) $20 / mo
Linode 2G 2 GB 48 GB 4 TB 8 cores (2x priority) $40 / mo
Linode 4G 4 GB 96 GB 8 TB 8 cores (4x priority) $80 / mo
Linode 8G 8 GB 192 GB 16 TB 8 cores (8x priority) $160 / mo
Linode 16G 16 GB 384 GB 20 TB 8 cores (16x priority) $320 / mo
Linode 24G 24 GB 576 GB 20 TB 8 cores (24x priority) $480 / mo
Linode 32G 32 GB 768 GB 20 TB 8 cores (32x priority) $640 / mo
Linode 40G 40 GB 960 GB 20 TB 8 cores (40x priority) $800 / mo

Linode NextGen: The Hardware

Linode has upgraded their hosts with two Intel Sandy Bridge E5-2670 processors. The E5-2670 is at the high end of the power-price-performance ratio and each E5-2670 enjoys 20 MB of cache and has 8 cores running at 2.6 GHz. There’s a lot of processing power behind that virtual server depending on your needs.

Linode Nextgen: The Network

Linode has deployed a new Cisco Nexus 7000 and 5000 topology (very similar to the topology that I personally use) in their data centers. “To top things off we’ve increased the amount of outbound transfer included with all plans by 1,000%.  That’s right, 10 times the included transfer!”

Linode 512 upgraded from 200GB to 2000GB (2TB)
Linode 1G upgraded from 400GB to 4000GB (4TB)
Linode 2G upgraded from 800GB to 8000GB (8TB)
Linode 4G upgraded from 1600GB to 16000GB (16TB)
Linode 8G upgraded from 2000GB to 20000GB (20TB)

Storage increased by 20%

Linode 512 goes from 20GB to 24GB
Linode 1GB goes from 40GB to 48GB
Linode 2GB goes from 80GB to 96GB
Linode 4GB goes from 160GB to 192GB
Linode 8GB goes from 320GB to 384GB
Linode 12GB goes from 480GB to 576GB
Linode 20GB goes from 800GB to 960GB

My Thoughts

There’s definitely been quite a few changes over at Linode so I wondered what those changes might have done to performance. At the surface it certainly appears that the average Linode customer is now getting more. We’re getting 100% more memory, 20% more storage, 1,000% more bandwidth. So how what percent of a performance increase can we expect in processing?

We’ll I decided to run some UnixBench tests and compare these new tests with some previous results I posted in an article entitled Linode VPS Hosting I posted back in October 2011.

I started writing this article back in April 2013. That was before the Linode Manager password reset, which was explained by the security breach that was disclosed shortly thereafter. Throughout that time I’ve struggle to get performance numbers anywhere near what I captured in October 2011. I even attempted to engage Linode support and while they were cordial they gave me the typical ‘we can move you to a new host’ response without really engaging in an in-depth discussion around the horrendous performance numbers. I would write four or five paragraphs to which they would respond with one or two liners.

October 2011 Hardware

System: li366-32: GNU/Linux
OS: GNU/Linux — 3.0.4-linode38 — #1 SMP Thu Sep 22 14:59:08 EDT 2011
Machine: i686: i386
Language: en_US.utf8 (charmap=”UTF-8″, collate=”UTF-8″)
CPUs: 0: Intel(R) Xeon(R) CPU L5520 @ 2.27GHz (4522.0 bogomips)
Hyper-Threading, MMX, Physical Address Ext
1: Intel(R) Xeon(R) CPU L5520 @ 2.27GHz (4522.0 bogomips)
Hyper-Threading, MMX, Physical Address Ext
2: Intel(R) Xeon(R) CPU L5520 @ 2.27GHz (4522.0 bogomips)
Hyper-Threading, MMX, Physical Address Ext
3: Intel(R) Xeon(R) CPU L5520 @ 2.27GHz (4522.0 bogomips)
Hyper-Threading, MMX, Physical Address Ext
Uptime: 11:06:54 up 14 min, 1 user, load average: 0.05, 0.04, 0.05; runlevel 3

May 2013 Hardware

System: earth.michaelfmcnamara.com: GNU/Linux
OS: GNU/Linux — 3.8.4-linode50 — #1 SMP Mon Mar 25 15:50:29 EDT 2013
Machine: i686: i386
Language: en_US.utf8 (charmap=”UTF-8″, collate=”UTF-8″)
CPUs: 0: Intel(R) Xeon(R) CPU E5-2630L 0 @ 2.00GHz (4000.1 bogomips)
Hyper-Threading, MMX, Physical Address Ext
1: Intel(R) Xeon(R) CPU E5-2630L 0 @ 2.00GHz (4000.1 bogomips)
Hyper-Threading, MMX, Physical Address Ext
2: Intel(R) Xeon(R) CPU E5-2630L 0 @ 2.00GHz (4000.1 bogomips)
Hyper-Threading, MMX, Physical Address Ext
3: Intel(R) Xeon(R) CPU E5-2630L 0 @ 2.00GHz (4000.1 bogomips)
Hyper-Threading, MMX, Physical Address Ext
4: Intel(R) Xeon(R) CPU E5-2630L 0 @ 2.00GHz (4000.1 bogomips)
Hyper-Threading, MMX, Physical Address Ext
5: Intel(R) Xeon(R) CPU E5-2630L 0 @ 2.00GHz (4000.1 bogomips)
Hyper-Threading, MMX, Physical Address Ext
6: Intel(R) Xeon(R) CPU E5-2630L 0 @ 2.00GHz (4000.1 bogomips)
Hyper-Threading, MMX, Physical Address Ext
7: Intel(R) Xeon(R) CPU E5-2630L 0 @ 2.00GHz (4000.1 bogomips)
Hyper-Threading, MMX, Physical Address Ext
Uptime: 21:42:19 up 9 days, 14:07, 1 user, load average: 0.18, 0.10, 0.06; runlevel 3

Here are the performance numbers of each side by side;

Test Score Unit Time Iters. Baseline Oct 2011 May 2013
Dhrystone 2 using register variables 16345243.3 lps 10.0 s 7 116700.0 1400.6 827.5
Double-Precision Whetstone 2455.5 MWIPS 10.1 s 7 55.0 446.5 301.2
Execl Throughput 1179.1 lps 30.0 s 2 43.0 274.2 184.7
File Copy 1024 bufsize 2000 maxblocks 342283.0 KBps 30.0 s 2 3960.0 864.4 139.6
File Copy 256 bufsize 500 maxblocks 87956.8 KBps 30.0 s 2 1655.0 531.5 91.9
File Copy 4096 bufsize 8000 maxblocks 958654.2 KBps 30.0 s 2 5800.0 1652.9 341.2
Pipe Throughput 488607.7 lps 10.0 s 7 12440.0 392.8 58.3
Pipe-based Context Switching 32606.8 lps 10.0 s 7 4000.0 81.5 23.1
Process Creation 2233.1 lps 30.0 s 2 126.0 177.2 108.3
Shell Scripts (1 concurrent) 2560.1 lpm 60.0 s 2 42.4 603.8 402.4
Shell Scripts (8 concurrent) 970.0 lpm 60.0 s 2 6.0 1616.7 1115.7
System Call Overhead 451501.4 lps 10.0 s 7 15000.0 301.0 185.4
System Benchmarks Index Score: 495.1 191.6

You can find the actual HTML results file online for October 2011 and May 2013.

It’s obvious that quite a few things have changed since I first tested Linode back in October 2011. The original testing was performed on a Linode 512 with 4 Intel Xeon L5520 @ 2.27GHz (4522.0 bogomips). The most recent testing was performed on a Linode 2048 with 8 Intel Xeon CPU E5-2630L 0 @ 2.00GHz (4000.1 bogomips). While the original hardware configuration offered 4 cores the latest hardware offering provides 8 cores. I’ve been using the 1 parallel process testing numbers to help gauge the performance of a single core. The disk IO numbers look very poor but when I perform a basic disk IO test everything seems pretty good.

[root@earth ~]# dd if=/dev/zero of=test bs=64k count=48k conv=fdatasync
49152+0 records in
49152+0 records out
3221225472 bytes (3.2 GB) copied, 45.4488 s, 70.9 MB/s

Perhaps the original data I collected in October 2011 was flawed, perhaps I was the only user on that physical server and now years later the Linode environment has become much more crowded – similar to Comcast Cable Modem Internet. It worked great the first few years but after everyone in the neighborhood started subscribing the performance really tanked.

I could probably use tools like Bonnie++ and Nbench to help validate my results but I wouldn’t be able to compare them against any previous results. I’d probably only use these tools if I was going to find a new hosting provider and wanted to benchmark their environments against what I have available today. I even went as far as to download UnixBench v5.1.3 and re-ran my tests only to score a 149.2 compared to the original result of 191.6.

With all that said the server and websites appear to be running fine.  The Web Page Performance tests for this site are pretty decent, 2.944 seconds (first view) and 1.623 seconds (second view). Perhaps the performance numbers will change when my server gets migrated to a host with the new Intel Xeon E5-2670 CPUs.

In summary I’m not sure what to say… I had thought this article would be an easy post to write but the performance numbers followed by the security incident have left me wondering if Linode is the hosting provider for me. Performance benchmarking within a virtual environment is really difficult given all the different components and the ever changing workloads.

Cheers!

]]>
https://blog.michaelfmcnamara.com/2013/05/linode-upgrades-which-hosting-provider-do-you-use/feed/ 6
CentOS 6.2 KVM – VirtIO paravirtualized drivers for Windows https://blog.michaelfmcnamara.com/2012/05/centos-6-2-kvm-virtio-paravirtualized-drivers-for-windows/ https://blog.michaelfmcnamara.com/2012/05/centos-6-2-kvm-virtio-paravirtualized-drivers-for-windows/#comments Tue, 01 May 2012 21:24:07 +0000 http://blog.michaelfmcnamara.com/?p=2784 I’ve just recently been playing around with KVM on a HP DL360 running CentOS 6.2 x64. I had a very difficult time finding the VirtIO paravirtualized drivers for Windows in a virtual floppy format (vfd). I was looking for the vfd format so I could easily install the drivers in a Windows XP guest I was building and testing.

I’m going to post a link here to the file, not quite sure why it was pulled from RedHat’s site.

virtio-win-1.1.16.vfd (MD5SUM: 7437f5d81fc43e8da3be01802fa4e9fb)

Cheers!

]]>
https://blog.michaelfmcnamara.com/2012/05/centos-6-2-kvm-virtio-paravirtualized-drivers-for-windows/feed/ 9
We systematically reject ‘apache@…’ Huh? https://blog.michaelfmcnamara.com/2011/02/we-systematically-reject-apache-huh/ Sat, 12 Feb 2011 17:00:50 +0000 http://blog.michaelfmcnamara.com/?p=1960 I’m continually amazed by how much hands on effort it takes to run even a small blog or community these days. The SPAM bots are continually spewing their useless garbage everywhere, the hackers and script kiddies are continually trying to break down the front door and somewhere in there is the appreciative reader in search of an answer to his/her question or just genuinely interested in the topic at hand.

Every now and then a genuine (system administration) issue or problem surfaces that deserves some time and effort. Since I’m utilizing a virtual private server (VPS) running CentOS 5.5, I’m responsible for administering and managing the server myself. I was an IBM AIX (long live SMIT) and Solaris System Administrator in a previous life so it’s not a big challenge but it can be a time consuming task. The benefits of managing my own server are still significant enough for me and I’ve learned so much about Linux, MySQL, PHP, Perl, etc. that the experience has been well worth the investment in my view.

I recently noticed that I was getting a lot of bounced email messages on the server from a number of readers that had subscribed to posts on my blog. Here’s a quick snippet of the bounced error message;

Action: failed
Status: 5.1.7
Remote-MTA: dns; mx.acme.org
Diagnostic-Code: smtp; 550 5.1.7 ... We
    systematically reject 'apache@...'

It seems that a few domains (example above is acme.org – changed to protect identity) were rejecting any email message with the Return-Path set to apache@hostname. In my case the Return-Path was set to apache@michaelfmcnamara.com although the From address was set to noreply@michaelfmcnamara.com. Unfortunately you can’t set (not to my knowledge anyway) the Return-Path from within WordPress administration portal. You need to manually edit wp-includes/class-phpmailer.php and set the variable $Sender to the same email address you setup within WordPress to use as your From address.

/**
* Sets the Sender email (Return-Path) of the message.  If not empty,
* will be sent via -f to sendmail or as 'MAIL FROM' in smtp mode.
* @var string
*/
var $Sender            = 'noreply@michaelfmcnamara.com';

With that change complete I can see from the server logs (/var/log/maillog) that the Return-Path is now being properly set.

Feb 12 08:29:56 michaelfmcnamara postfix/pickup[9770]: 2B8FD2C3BB: uid=48 from=<noreply@michaelfmcnamara.com>
Feb 12 08:29:56 michaelfmcnamara postfix/cleanup[11068]: 2B8FD2C3BB: message-id=<67fa95dc7fd22d7c6cfd481d506bfd87@blog.michaelfmcnamara.com>
Feb 12 08:29:56 michaelfmcnamara postfix/qmgr[2647]: 2B8FD2C3BB: from=<noreply@michaelfmcnamara.com>, size=1729, nrcpt=1 (queue active)
Feb 12 08:29:56 michaelfmcnamara postfix/local[11070]: 2B8FD2C3BB: to=<whowhatwhen@michaelfmcnamara.com>, relay=local, delay=0.07, delays=0.04/0.01/0/0.02, dsn=2.0.0, status=sent (forwarded as 321C72C37A)
Feb 12 08:29:56 michaelfmcnamara postfix/qmgr[2647]: 2B8FD2C3BB: removed

With that change those domains that were rejecting email from my server are now accepting them again. Just another day where I’ve learned something new.

Cheers!

Update: Thursday February 24, 2011

It seems the upgrade to WordPress 3.1 has overwritten the change I made in the file… had to update the file again!

Update: Friday April 22, 2011

It seems the upgrade to WordPress 3.1.1 has overwritten the change I made in the file again!

]]>
Ubuntu 8.04 Firefox and Glubble https://blog.michaelfmcnamara.com/2008/07/ubuntu-804-firefox-and-glubble/ https://blog.michaelfmcnamara.com/2008/07/ubuntu-804-firefox-and-glubble/#comments Sun, 20 Jul 2008 14:00:32 +0000 http://blog.michaelfmcnamara.com/2008/07/ubuntu-804-firefox-and-glubble/ UbuntuLozengeStrapLogo It was time to give my 7 year old daughter access to her own computer. She only spends about 30 – 60 minutes a day on the computer but it can be a challenge on some days when mom and daughter are vying for time with the family computer. As you already know I’m a big supporter of CentOS. However, I would be the first to admit that CentOS is not very user friendly and certainly not the best Linux distribution for any laptop or desktop computer. I have been hearing a lot of encouraging comments from friends and industry professionals about Ubuntu Linux. I know firsthand how difficult it can be to secure a Windows XP desktop in the hands of a 7 year old, not to mention how costly it can be when you start to add up all the software you need to purchase. I decided to load  Ubuntu and give it a quick test run. I was evaluating several different criteria including performance (running some old hardware) and easy of use.

I had installed Ubuntu using the original Ubuntu 8.04 LTS Desktop Edition which required 242 patches/upgrades to be installed after I installed the operating system. I believe Ubuntu has since released a slipstreamed version (8.04.1) with the latest and greatest patches and upgrades since June 2008. The initial install along with the subsequent updates was very painless, I just sat back and let the software do the work.

Ubuntu-Desktop Ubuntu-Desktop2

I was very pleased with the performance and the easy of use of Ubuntu. Now I just needed to find some solution to help make sure that my daughter didn’t mistakenly end up on some shady website. I stumbled across Glubble, a Firefox Add-on which allows you to control which websites your children can visit. Your child can also request access to additional websites which a parent must then authorize.

If you are a parent looking to provide a safe experience for your child while he/she surfs the Internet I would highly recommend Glubble!

Cheers!

]]>
https://blog.michaelfmcnamara.com/2008/07/ubuntu-804-firefox-and-glubble/feed/ 2
Domain Name Server patch https://blog.michaelfmcnamara.com/2008/07/domain-name-server-patch/ https://blog.michaelfmcnamara.com/2008/07/domain-name-server-patch/#comments Sun, 13 Jul 2008 23:00:51 +0000 http://blog.michaelfmcnamara.com/2008/07/domain-name-server-patch/ O'Reilly DNS and BIND Last week there was a flurry of information revolving around a new security flaw in the Domain Name System — software that acts as the central nervous system for the entire Internet.

On Tuesday July 10, 2008 a number of vendors including Microsoft, Cisco, Juniper and RedHat released patches and/or acknowledged the flaw existed. The Internet Software Consortium, the group responsible for development of the popular Berkeley Internet Domain Named (BIND) server from which nearly all DNS offshoots are based, also acknowledged the flaw and released a patch.

I personally spent about 90 minutes on last Wednesday updating several internal and external systems including numerous CentOS v5.2 servers and Windows 2003 Service Pack 2 servers. I was unable to find any mention of the DNS flaw on the Alcatel-Lucent website so I’ll probably need to place a call concerning Alcaltel-Lucent’s VitalQIP product.

I used yum to patch the CentOS Linux servers [“yum update”] and then just restarted the named process [“service named restart”]. On the Windows 2003 Service Pack 2 servers I used Windows Update to download and install KB941672 after which I rebooted the servers.

Here are some references:

http://www.theregister.co.uk/2008/07/09/dns_fix_alliance/
http://www.networkworld.com/news/2008/071008-patch-domain-name-servers-now.html
http://www.networkworld.com/news/2008/070808-dns-flaw-disrupts-internet.html

http://www.networkworld.com/podcasts/newsmaker/2008/071108nmw-dns.html

http://www.us-cert.gov/cas/techalerts/TA08-190B.html
http://www.microsoft.com/technet/security/bulletin/MS07-062.mspx

I would strongly suggest that all network administrators start looking into patching their DNS servers as soon as possible.

Cheers!

UPDATE: July 14, 2008

Here’s an update from RedHat concerning the configuration (named.conf) of BIND;

We have updated the Enterprise Linux 5 packages in this advisory. The default and sample caching-nameserver configuration files have been updated so that they do not specify a fixed query-source port. Administrators wishing to take advantage of randomized UDP source ports should check their configuration file to ensure they have not specified fixed query-source ports.

It seems that a check of the configuration file would be in order. Let me throw in a quick warning though if your DNS server is sitting behind a firewall you may need to check with the firewall administrator to understand how the firewall will behave if you randomize your source ports. I believe there are quite a few firewalls out there that only expect to see DNS traffic sourced from a DNS server on UDP/53.

Good Luck!

]]>
https://blog.michaelfmcnamara.com/2008/07/domain-name-server-patch/feed/ 1
CentOS v5.2 is available! https://blog.michaelfmcnamara.com/2008/07/centos-v52-is-available/ https://blog.michaelfmcnamara.com/2008/07/centos-v52-is-available/#comments Sat, 05 Jul 2008 13:00:03 +0000 http://blog.michaelfmcnamara.com/?p=107 centos_logo The folks over at CentOS released v5.2 on Tuesday June 24, 2008. I’ve been running six different HP Proliant DL360s over the past 24 months acting as a public WiFi Hotspot portal servers. The solution has been met all my expectations and almost manages itself entirely (I still need to apply patches and security updates).  CentOS 5.2 adds the same functionality that RHEL 5.2 adds including the latest virtualization support. If you’re looking for a Linux distribution for that brand new server hardware and you don’t have the budget to afford RedHat then CentOS is for you. CentOS is essentially a clone of RedHat Enterprise Linux compiled from the RHEL source files provided under GPL licensing terms. If you’re looking for a Linux distribution to run on that brand new laptop/desktop then I don’t think CentOS if for you. I would probably suggest Ubuntu as a solution for any laptop/desktop.

Just visit the current Mirrors list to start downloading today.

Note: Just be warned that if your running CentOS v5.0 or v5.1 you will be upgraded to CentOS v5.2 if you issue a “yum update“. I believe the release notes indicate you need to issue a “yum upgrade” in order to upgrade but that wasn’t my experience.

Cheers!

]]>
https://blog.michaelfmcnamara.com/2008/07/centos-v52-is-available/feed/ 2