Press "Enter" to skip to content

nuxx.net Posts

SMTP-AUTH for Postfix via courier-authlib (authdaemond)

Getting SMTP authentication working with Postfix via authdaemond on FreeBSD 7.0 without occasional, useless errors in /var/log/messages has just caused me an hour of frustration. Therefore, I wish to document what I had to do to make it work right:

First off, Postfix (mail/postfix) and courier-authlib with MySQL support (security/courier-authlib with AUTH_MYSQL set in the config) must be installed. Setting up courier-authlib to talk to a MySQL db is beyond the scope of this document, but it basically involves setting the following lines:

/usr/local/etc/authlib/authdaemonrc:

authmodulelist="authmysql"

/usr/local/etc/authlib/authmysqlrc:

MYSQL_SERVER localhost
MYSQL_SOCKET /tmp/mysql.sock
MYSQL_PORT 0
MYSQL_OPT 0
MYSQL_USERNAME mail
MYSQL_PASSWORD [OBSCURED]
MYSQL_DATABASE mail
MYSQL_USER_TABLE mailbox
MYSQL_CRYPT_PWFIELD password
MYSQL_UID_FIELD uid
MYSQL_GID_FIELD gid
MYSQL_LOGIN_FIELD pobox
MYSQL_HOME_FIELD homedir
MYSQL_MAILDIR_FIELD CONCAT(homedir,'/',maildir,'/')
MYSQL_QUOTA_FIELD quota
MYSQL_NAME_FIELD name

After that is set, Postfix’s main.cf must have SASL enabled with smtpd_sasl_auth_enable = yes. Next, the following smtpd.conf must be placed in /usr/local/etc/sasl2:

/usr/local/etc/sasl2/smtpd.conf

pwcheck_method: authdaemond
log_level: 3
mech_list: PLAIN LOGIN
authdaemond_path: /var/run/authdaemond/socket

auxprop_plugin: mysql
sql_select: select password from users where email = '%u@%r'

Now, here’s the stupid part. See those last two lines, auxprop_plugin: mysql and sql_select: select...? They don’t do anything, and that SELECT statement won’t even return anything useful on my db. Without them there SMTP AUTH works great. However, if you don’t have those lines there, Postfix will regularly complain loudly with errors such as these:

Sep 4 21:30:02 banstyle postfix/smtpd[47677]: sql_select option missing
Sep 4 21:30:02 banstyle postfix/smtpd[47677]: auxpropfunc error no mechanism available

Please note that with authdaemond, CRAM-MD5 and DIGEST-MD5 authentication mechanisms won’t work. (These would normally be set with mech_list: PLAIN LOGIN CRAM-MD5 DIGEST-MD5.) If enabled they will appear available but won’t work.

One final thing… Want to know how to be sure that the server is notifying clients that it supports authentication? Just simply telnet to port 25 on your mail server and type in EHLO domain.com. The AUTH LOGIN PLAIN and AUTH=LOGIN PLAIN lines show you that plain-text authentication is now available:

c0nsumer@banstyle:~> telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 banstyle.nuxx.net ESMTP Postfix
EHLO nuxx.net
250-banstyle.nuxx.net
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
QUIT
221 2.0.0 Bye
Connection closed by foreign host.

2 Comments

nuxx.net Mail Move

Tonight I ran into a harsh realization that the setup I’d intended to use for mail administration, Postfix Admin, has no facilities for editing server-side filters. Therefore, I’m moving my old, highly modified vMail.Admin install over to the new server.

Tonight I got everything working and tested except for the web-based front end for Postfix’s database. That shouldn’t be too hard to get going, I just don’t feel like working on it any more tonight. After that is going I will be shutting down mail on the old box and moving it to the new one. During this time you may (read:will) experience problems having mail delivered, checking mail, the works.

Sorry.

Due to how email works nothing should be lost, it might just take a while to arrive. Just keep using secure.nuxx.net for pop3s / imaps or SquirrelMail and everything will work fine.

Leave a Comment

Sites Moved to banstyle.nuxx.net

As mentioned before, I am in the process of moving to a new colo provider while at the same time moving everything hosted on nuxx.net to the shiny new banstyle.nuxx.net.

As part of this I moved all websites to the new server. That means if I host your site, it’s now on the new box. Mail, nor any of the shiny tools used for checking logs and such have been moved; I hope to get to that later in the week.

If you have any problems, please don’t hesitate to contact me.

Oh, and I might be sticking ads on the sites of people for whom I host just simple galleries (aka nuxxfriends). This is to offset the cost of the server and colocation. Hopefully that’s not a problem.

Leave a Comment

Wheels Go ‘Round Again

The rear of my bike, with new a SRAM PG-850 cassette, SRAM PC-870 chain, and Shimano Deore RD-M531-L rear derailleur.

This afternoon I made a quick run to REI (yes, they were actually open) and was able to pick up a Shimano Deore RD-M531-L rear derailleur for the must-be-MSRP price of $54. This, along with a new SRAM PC-870 chain and an SRAM PG-850 cassette purchased as-new from someone on the MMBA forums got my bike working great again.

After getting everything together and set up I went for a short test ride around my neighborhood, which turned into a 15 mile loop up through River Bends Park to Ryan Road. In short, practically all of my shifting problems are gone. I still have to replace a bent front chainring, there’s still spoke noise, and I think I the bottom bracket may be making a rubbing sound, but none of that makes it difficult to ride.

Leave a Comment

My New Single Speed

The emergency single speed conversion done to get home. I ended up using the 22 and 13 tooth rings.

I’ve been thinking that it’d be nice to have a single speed bike to ride, but I didn’t want to acquire one this way.

Today I ate a very large breakfast then set out with the intention of riding to Lake Orion and back, then to Metro Beach and back, hoping to break 90 miles today. After riding just about four miles and getting to the intersection of 23 Mile and VanDyke, just when I was feeling warmed up, something felt odd when shifting. Looking down I saw that my rear derailleur was canted to the side with the chain coming off of the top jockey wheel. As soon as touched the assembly to try and reposition things the derailleur came off, as seen here.

I ended up doing an emergency single speed conversion by shortening the chain, tensioning it up as I could, then riding carefully home. I had to make a total of three adjustments to the chain, because I found that if I had the chain on anything but the smallest rings it would drop off and skip around.

Even after settling on the two smallest rings I had to be very careful because occasionally the chain would bounce a bit and climb up one gear, putting so much tension on the chain (and BB) that it was nearly impossible to pedal. When this happened I’d have to remove the rear wheel, re-seat the chain, then keep going again. This had to be done at least six times in the four miles home. Eventually I found that if I pedaled gingerly, never pedaled when going over bumps, didn’t apply much force when going uphill, and coasted as often as possible I was generally fine. I could

Now to figure out what to do… The Shimano SLX group is tempting, or maybe the SRAM X.9 stuff. One thing I know I won’t be doing for a while is riding my bike.

Leave a Comment

Chainstay Protector from a Tube

An old tube cut into a 1" strip and wrapped around the chainstay to quiet down chain slap.

I’ve been wanting a chainstay protector to cut down on the noise from chain slap, but I both didn’t want to pay for one. I also particularly don’t like how most aftermarket bike accessories come plastered with logos like this Lizard Skins-brand one. So, while waiting for my biking clothes to get through a late-night wash cycle I took an old tube, cut it into a 1″ strip, wrapped it around most of the chainstay on my bike, and cable tied it in place.

This idea was inspired by this photo of an On-One Inbred Summer Season 456 with what appears to use this same setup. I really like the minimal look of it.

To cut this piece of tube I stuck a piece of 1″ masking tape on an old tube, cut along both sides of the tape, squared the ends, then scrubbed off the non-stick powder from the tube with a sponge. It was wrapped so that what was the inside of the tube is facing out, making for a consistent gray look. I would have liked to wrap more of the chainstay, but with the rear derailleur cable running under the chainstay there wasn’t a lot of clearance. The area of the chainstay which had taken the most damage (and thusly chainslap) before is covered, so it should work well.

Chain slap is the clanking noise made when the chain bounces and hits the chainstay (or other parts) while going over bumps or drops. Not only does it make a loud clanking noise, the impact usually chips up the finish on the chainstay.

4 Comments

North Country Trail (Kalkaska Area)

My bike on the North Country Trail in Kalkaska County, MI just northeast of the Eagle Lake public access.

This weekend Danielle and I headed up north to my grandparents house to both visit them and see the area. We spent time in Traverse City, Petoskey, a number of places between, out in my grandparents row boat, and generally had a good time.

On Monday (25-Aug-2008) I headed out to the local segment of the North Country Trail (NCT) starting at Pickerel Lake, as detailed here. In short, this was a really, really, really nice ride along narrow, winding hiking trails through all manner of Northern Michigan terrain. The trail seems intentionally routed between trees to keep ORVs off the trail, but it’s still very (and legally) bikeable.

My ride on Monday only ended up being about 15 miles of NCT itself as the long slow uphills and frequent sharp turns made for slow going, but there were also some really nice, smooth downhill sections. All in all, it’s an excellent trail for casual, relaxing, get-out-into-the-woods riding. Here is a graphical map of the route I rode and here is 25-Aug-2008_NCT.gpx detailing the route.

Except for a rear mech full of shrubbery and a slight fear of running out of water I had no problems along the way. I’ve had a lingering problem with shifting at both ends of the bike, and I have come to the realization that I need to replace some chainrings and the rear cassette as they are both bent. My chain has also stretched quite a bit, so I’m thinking that I should probably just replace most of the drivetrain soon. I might even do the whole shifting system, but that may be a bit drastic (read: costly).

Here are the photos I took while on the ride:

· My bike near the North Country Trail trailhead at Pickerel Lake in Kalkaska County, MI.
· Low fallen trees across the trail on the North Country Trail in Kalkaska County, MI east of Pickerel Lake.
· What I believe to be a well head just off of the North Country Trail in Kalkaska County, MI.
· Warning: Hydrogen Sulfide sign on some oil / gas drilling equipment just off of the North Country Trail in Kalkaska County, MI.
· My bike on the North Country Trail in Kalkaska County, MI just northeast of the Eagle Lake public access.
· A pump at an oil well just off of the North Country Trail in Kalkaska County, MI. It wasn’t running.
· Oil extraction equipment just off of the North Country Trail in Kalkaska County, Michigan.
· More oil extraction equipment off of the North Country Trail in Kalkaska County, Michigan.
· A bunch of leaves and twigs that got caught in my rear mech as I tried to ride away from Eagle Lake. Whoops.
· Small spur of the North Country Trail heading down to Eagle Lake in Kalkaska County, MI.

Leave a Comment

Moving from Waveform

Tomorrow I will begin the move away from Waveform Technology to Clear Rate Communications. Within the last six months I have been having a number of weird problems (to be detailed at a later time) with Waveform, prompting the move to a new provider. At the same time I’ll be moving to a much faster box, banstyle.nuxx.net. Provided everything goes as planned I’ll be moved over to the new box by the end of next week.

This means that, during the move, all of you who I host stuff for will be down for a little while. If there are any problems, just get a hold of me and we’ll sort it out.

Leave a Comment

New US Distribution for On-One?

My sister Sarah riding up to the top of Mt. Sheldon at the end of The Snake on the mountain bike trails in Stony Creek.

First, have an unrelated photo of my sister having just ridden up The Snake at Stony Creek, which ends at the top of Mt. Sheldon.

Second, I’ve been considering building up a new, dedicated to mountain biking bike, so that mine can be set up for touring-type stuff. When looking at frames I’ve started to think that the On-One 456 Summer Season (alternate, better photo) would be a nice frame for me, but being sold in the UK it’s a bit hard to get. In response to a message I sent to Brant at On-One asking him how much the frame would cost shipped to the US, he told me:

Right now, LOTS.

Next week – quite possibly LESS.

We’re on the brink of changing the way we sell into the USA. Hang on!

So, this sounds like really good news. I think On-One might actually be getting US distribution. Hopefully the prices for the frames won’t be too much higher than UK prices after going exchange rate, as I think this would make a nice, cheaper frame to build up for just offroad uses.

Leave a Comment

Magnetic Shaving Derby

Screenshot of nyarla's game Magnetic Shaving Derby.

For those of you with an R4 or other method of playing homebrew on the DS, I strongly suggest you check out nyarla‘s in-development game Magnetic Shaving Derby.

It is currently up to version 0.5, and here is a direct link to the zipped .nds file (mirror on nuxx.net).

I think it could still use a bit of work, but it’s a really fun quick-play game. It would definitely be interesting if there was something like a bonus scrotum shaving round, a goatee / sideburn bonus, and maybe slightly different control of the magnet / blade, but as it stands it’s a pretty darn fun game.

UPDATE: I’ve been told that there’s another version coming soon, so keep an eye on nyarla’s site for more info.

Leave a Comment