smart hosting issues

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

smart hosting issues

Stan Hoeppner
Hello fellow smart hosters,

I've been running this way for 3 years now because I could never figure
out how to wildcard "everything else".  Here's the top of my transport
file (a very small portion of it):

hardwarefreak.com       smtp:[192.168.100.2]
earthlink.net           smtp:[smtp.sbc.mail.yahoo4.akadns.net]
.earthlink.net          smtp:[smtp.sbc.mail.yahoo4.akadns.net]
sbcglobal.net           smtp:[smtp.sbc.mail.yahoo4.akadns.net]
.sbcglobal.net          smtp:[smtp.sbc.mail.yahoo4.akadns.net]
swbell.net              smtp:[smtp.sbc.mail.yahoo4.akadns.net]
.swbell.net             smtp:[smtp.sbc.mail.yahoo4.akadns.net]
sbc.com                 smtp:[smtp.sbc.mail.yahoo4.akadns.net]
.sbc.com                smtp:[smtp.sbc.mail.yahoo4.akadns.net]
yahoo.com               smtp:[smtp.sbc.mail.yahoo4.akadns.net]
.yahoo.com              smtp:[smtp.sbc.mail.yahoo4.akadns.net]
aol.com                 smtp:[smtp.sbc.mail.yahoo4.akadns.net]
.aol.com                smtp:[smtp.sbc.mail.yahoo4.akadns.net]


Is there a way to wildcard everything other than hardwarefreak.com?  I'd
sure like to have a two line transport file instead of 200.

Any help in getting this fixed would be greatly appreciated.

Thanks.

Stan Hoeppner
TheHardwareFreak
Reply | Threaded
Open this post in threaded view
|

Re: smart hosting issues

Noel Jones-2
Stan Hoeppner wrote:

> Hello fellow smart hosters,
>
> I've been running this way for 3 years now because I could never figure
> out how to wildcard "everything else".  Here's the top of my transport
> file (a very small portion of it):
>
> hardwarefreak.com       smtp:[192.168.100.2]
> earthlink.net           smtp:[smtp.sbc.mail.yahoo4.akadns.net]
> .earthlink.net          smtp:[smtp.sbc.mail.yahoo4.akadns.net]
> sbcglobal.net           smtp:[smtp.sbc.mail.yahoo4.akadns.net]
> .sbcglobal.net          smtp:[smtp.sbc.mail.yahoo4.akadns.net]
> swbell.net              smtp:[smtp.sbc.mail.yahoo4.akadns.net]
> .swbell.net             smtp:[smtp.sbc.mail.yahoo4.akadns.net]
> sbc.com                 smtp:[smtp.sbc.mail.yahoo4.akadns.net]
> .sbc.com                smtp:[smtp.sbc.mail.yahoo4.akadns.net]
> yahoo.com               smtp:[smtp.sbc.mail.yahoo4.akadns.net]
> .yahoo.com              smtp:[smtp.sbc.mail.yahoo4.akadns.net]
> aol.com                 smtp:[smtp.sbc.mail.yahoo4.akadns.net]
> .aol.com                smtp:[smtp.sbc.mail.yahoo4.akadns.net]
>
>
> Is there a way to wildcard everything other than hardwarefreak.com?  I'd
> sure like to have a two line transport file instead of 200.
>
> Any help in getting this fixed would be greatly appreciated.
>
> Thanks.
>
> Stan Hoeppner
> TheHardwareFreak

# 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.

--
Noel Jones
Reply | Threaded
Open this post in threaded view
|

Re: smart hosting issues

Henrik K
In reply to this post by Stan Hoeppner
On Tue, Aug 05, 2008 at 06:21:58PM -0500, Stan Hoeppner wrote:
> Hello fellow smart hosters,
>
> I've been running this way for 3 years now because I could never figure  
> out how to wildcard "everything else".  Here's the top of my transport  
> file (a very small portion of it):

Three years you didn't look at any documentation? I'm beginning not to
wonder..

The other way (relayhost) come up already, and here is another:

http://www.postfix.org/transport.5.html

"and  specify  a  wildcard
       for all other destinations."

*            smtp:outbound-relay.my.domain

"Note 1: the special pattern * represents any address (i.e.
       it functions as the wild-card pattern)."

Reply | Threaded
Open this post in threaded view
|

Re: smart hosting issues

lst_hoe02
In reply to this post by Stan Hoeppner
Zitat von Stan Hoeppner <[hidden email]>:

> Hello fellow smart hosters,
>
> I've been running this way for 3 years now because I could never figure
> out how to wildcard "everything else".  Here's the top of my transport
> file (a very small portion of it):
>
> hardwarefreak.com       smtp:[192.168.100.2]
> earthlink.net           smtp:[smtp.sbc.mail.yahoo4.akadns.net]
> .earthlink.net          smtp:[smtp.sbc.mail.yahoo4.akadns.net]
> sbcglobal.net           smtp:[smtp.sbc.mail.yahoo4.akadns.net]
> .sbcglobal.net          smtp:[smtp.sbc.mail.yahoo4.akadns.net]
> swbell.net              smtp:[smtp.sbc.mail.yahoo4.akadns.net]
> .swbell.net             smtp:[smtp.sbc.mail.yahoo4.akadns.net]
> sbc.com                 smtp:[smtp.sbc.mail.yahoo4.akadns.net]
> .sbc.com                smtp:[smtp.sbc.mail.yahoo4.akadns.net]
> yahoo.com               smtp:[smtp.sbc.mail.yahoo4.akadns.net]
> .yahoo.com              smtp:[smtp.sbc.mail.yahoo4.akadns.net]
> aol.com                 smtp:[smtp.sbc.mail.yahoo4.akadns.net]
> .aol.com                smtp:[smtp.sbc.mail.yahoo4.akadns.net]
>
>
> Is there a way to wildcard everything other than hardwarefreak.com?
> I'd sure like to have a two line transport file instead of 200.


It's maybe the "relayhost" parameter you are looking for???

Regards

Andi


--
All your trash belong to us ;-)  www.spamschlucker.org
To: [hidden email]


Reply | Threaded
Open this post in threaded view
|

Re: smart hosting issues

Stan Hoeppner
In reply to this post by Noel Jones-2
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 | Threaded
Open this post in threaded view
|

Re: smart hosting issues

Henrik K
On Wed, Aug 06, 2008 at 04:59:48AM -0500, Stan Hoeppner wrote:
>
> 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.

Sorry if I don't offer sympathies, but Postfix is notoriously well
documented and maintained. A quick look into the man page will show you how
it's spelled.

I agree that Postfix should warn in that case.

Reply | Threaded
Open this post in threaded view
|

Re: smart hosting issues

Stan Hoeppner
Henrik K wrote:
> Sorry if I don't offer sympathies, but Postfix is notoriously well
> documented and maintained. A quick look into the man page will show you how
> it's spelled.

You missed my point entirely, it seems...


> I agree that Postfix should warn in that case.

I don't understand why it doesn't, and it baffles me that the two
spellings have different functionality.

And, given this state of affairs, what was that you were saying about
the documentation?  Care to point me to the docs that detail all of this? ;)
Reply | Threaded
Open this post in threaded view
|

Re: smart hosting issues

Wietse Venema
Stan Hoeppner:
> Henrik K wrote:
> > Sorry if I don't offer sympathies, but Postfix is notoriously well
> > documented and maintained. A quick look into the man page will show you how
> > it's spelled.
>
> You missed my point entirely, it seems...

Take this discussion off-list or I will terminate subscriptions.