Noel Jones wrote:
# main.cf
relayhost = [smtp.sbc.mail.yahoo4.akadns.net]

# transport
hardwarefreak.com       smtp:[192.168.100.2]

All mail is sent to the relayhost, except for overrides listed in the transport map.

Thank you Noel and to others who answered.

Apparently what was breaking this before was that I was using "relay_host" with the underscore in the middle (I know this because the line is commented out in my main.cf with a date of Oct 2005). Using "relayhost" today works. Using "relay_host" causes the situation I describe down below.

Anyway, Thanks!  It's working now!  Yay!  Finally!


Henrik K wrote:
> Three years you didn't look at any documentation? I'm beginning not to
> wonder..

/begin rant

Henrik, you make a *very* incorrect assumption here. The last time I tried to get this working I spent an enormous amount of time in docs and how-to's and spent the better part of 2 days in IRC #Postfix chatting with with MANY Postfix experts, also with SBC tech support tracking the outbound connections, and *nobody* could figure it out.

Again, this was quite a while ago (3 years), and we were working on many different issues in my setup, this being one, so I don't have an exact recollection of everything we did.

A correct assumption you should make would be that the entire process back then become so damn frustrating that once I got things working "good enough" I left the frustration behind and moved on.

Anyway, using 'relay_host' causes the outbound mail to route through a different set of Yahoo servers than the ones that support SASL. It's the same thing that happened 3 years ago IIRC. Why we didn't catch this 'relayhost' spelling issue back then I don't know, but it does seem odd that we didn't. Maybe the underscore was proper back then, I don't know.

What's strange is that there is no error generated in /var/log/mail.log when I use "relay_host" in main.cf instead of "relayhost". Why is no error being logged? Is "relay_host" actually valid and used somewhere? I'm on 2.3.8 if that matters.

The worldwide documentation situation for Postfix is atrocious. I cannot be the only person to have noticed this. There are too damn many articles, guides, and how-to's along with 'official' documentation indexed by Google et al that are out of date, conflicting, or not 'versioned'. I'm not slinging mud at anyone, I'm just making an observation. Here's a prime example. Google for Postfix UCE and this is the first page hit you get:

http://www.postfix.org/uce.html#smtpd_client_restrictions

** Note: this web page is no longer maintained. It exists only to avoid breaking links in web pages that describe earlier versions of the Postfix mail system.

And if you mention "man pages" I'll kick you in the teeth Henrik. No one would ever write a "how-two" if man pages were the holy grail of implementation. And I don't have the time to sift through man pages trying to find why "relay_host" is different than "relayhost". The answer isn't likely to be found there anyway.

Henrik, maybe now you have a better understanding of why this has been such a huge PITA trying to get this working. So please don't make the juvenile assumption in the future that people who ask questions about "simple" or "easy" issues haven't read the documentation!

/end rant

Stan

Reply via email to