Well 1st, let me apologize for not answering your questions directly & fully. I've had too much on my plate lately to be able to concentrate properly on anything.
>When you tried to connect to yahoo via telnet, where did >it fail and what error message did you get?
It never connected. The connection request was refused.
>Go to this site: http://whatismyipaddress.com/ip-lookup
>and do a lookup of your IP. Does it tell you that your IP >is static or dynamic?
It's a static IP & I'm not on any blacklist. (Off topic sort of: I don't see what difference a static vs dynamic IP would make or even how the web app knows. I'm actually pretty sure it's really a dynamic IP because my ISP charges extra for a static.)
>If it does NOT say static, most ISPs will NOT accept your >mail.
The whole point is that I don't want to ask my ISP to accept my mail. I want it to be routed properly to the appropriate mail server, based on the destination of any given email. However, I DID get mail out when I specified my ISP's mail server as a static route for the 1st hop.
>What address are you using to try and telnet into yahoo? >I tried yahoo.com on port 25 and received nothing. If you >use smtp.mail.yahoo.com you will get an "530 >authentication required - for help go to >http://help.yahoo.com/help/us/mail/
" notice when you try.
I used mail.yahoo.com & smtp.yahoo.com on port 25. The response was an attempt to connect to several (3 I think) mail servers in the order they were discovered/presented. In the end the connection attempt was refused.
>This brings up another possibility: does your email server >have access to a proper DNS that will obtain the MX >records (ie, the mail servers)?
That was MY question, Dude.
I know I have access to DNS in general because I'm here. What I'm currently trying to determine is if I've missed a configuration setting (hence the subject of this post & the end of the last (the answer to which I never was able to ascertain.))
Here's a log entry from qmail-send:
@400000004c99446402bbe1ec status: local 0/10 remote 0/20
@400000004c9944af0704f964 starting delivery 11: msg 8920413 to remote firstname.lastname@example.org
@400000004c9944af07050134 status: local 0/10 remote 1/20
@400000004c99459612d69be4 delivery 11: deferral: Sorry,_I_wasn't_able_to_establish_an_SMTP_connection.(#4.4.1)/
>What address is it trying to connect to when it makes a >connection to yahoo?
I don't know. Telnet responded with the names of the servers as well as the addresses (which would indicate that DNS is working via telnet), but I didn't bother to write it down. I figured the connection refusal was due to ident/auth which I wasn't able to properly provide in the connection request.
I should also mention a couple of other things that are only sort of on topic:
1st, please remember that I haven't tried this in about 6 or 7 years. My skills are not JUST a little rusty.
2nd, the original post concerning error 4.4.1 led me to believe there was a problem in the communication between the servers. As you pointed out previously, the error message is pretty vague. It gives no indication as to WHY the connection couldn't be established. A lot of troubleshooting later, I've pretty much narrowed it down to a failure to obtain a DNS lookup. Here's another entry from the qmail-send log:
@400000004c99431e2953fe84 new msg 8920413
@400000004c99431e29540a3c info msg 8920413: bytes 236 from <papa@******.****.***> qp 13322 uid 1000
@400000004c99431e29f92bac starting delivery 7: msg 8920413 to remote email@example.com
@400000004c99431e29f93f34 status: local 0/10 remote 1/20
@400000004c9943332bd6e0a4 delivery 7: deferral: CNAME_lookup_failed_temporarily._(#4.4.3)/
This error is a little better, although I don't know why DNS would be doing a CNAME lookup to obtain an MX record. I would think there should be an A record lookup, since the A record points to the MX record. At any rate, this is the only entry that indicated a DNS problem, so I went with it. I gave the server a static route & BINGO! Outbound mail works. Now I'm trying to figure out why I'm not getting DNS resolution.
And, finally, when I posted the original error I was following Dave Sill's Life With QMail. It's a pretty good guide for those whose skills are current & proficient. I think we've established that mine are not. I used to have a copy of his book, "The QMail Handbook", which is much more complete & in depth. An excellent guide, howto & reference all in one. Well I haven't been able to find it so I ordered another copy which I should receive in the next day or so. In the mean time I was able to obtain a copy of John Levine's O'Reilly book, "QMail". I had made so many changes to the system & Levin's approach is not at all like Sill's, so I scrubbed my drive & started over with a clean install of Ubuntu 10.04.01, using Levine's book as a reference. Same results as far as the original error(s) are concerned. I still wasn't able to get email out to the world. You already know how we got from there to here, so I won't waste any time on that. What I wanted you to know is that the system changed, but the problem didn't. I'm certain there's a problem with qmail getting a DNS request either sent or answered but I don't know why.
And FINALLY <really really :)> If you don't have a copy of Levine's book, don't get one. I'm certain Dr Levine knows just about all there is to know about qmail, but his ability to convey that information leaves a bit to be desired. His approach to building the system is not intuitive. The process doesn't flow in a logical manner. At least not to my mind. There are also a lot of mistakes. /var/qmail/supervise/qmail/pop3d is NOT the same as /var/qmail/supervise/qmail-pop3d. And he often assumes the reader is on the same wavelength with him. That is definitely NOT the case. It may seem like I'm nitpicking, but this is a technical book, written by a man with a PhD. Also, it's several years old & in electronic form so you'd think most, if not all, mistakes would have been caught & corrected long ago. Sill's book, by contrast, is well written, flows from one step to the next in a logical manner, assumes nothing of the reader AND I don't recall more than 2 or 3 typos throughout. My first email server (long ago) was qmail built according to the proceedure laid out by Dave Sill in The QMail Handbook. It went smooth & quick & worked like a champ the 1st time through. No matter how this works out or what shape my system is in, when that book arrives I'm gonna scratch this one again use Sill's approach.
In the mean time, I'd REALLY like to know why I'm not getting DNS resolution.
Thanks for reading this (assuming you read it all). And let me say again, I'm sorry for not answering more completely before now.