Re: Postfix relay_hosts with regexp

"Keith T. Garner" <[email protected]> Mon, 15 Aug 2005 13:40:33 -0500
Newsgroups gmane.mail.jamm.user
Message-ID <[email protected]>
On Mon, Aug 15, 2005 at 08:33:28, Fredrik Wendt said:
> I'm one of those happy and pleased with JAM-users, currently running
> some 50+ accounts on 15 domains, and have done so since the Jamm-article
> in LJ came to Sweden some time ago (two years, even more?).
> 
> To the point: I've had to tweak postfix' settings in two ways, but have
> only managed to fix one to complete satisfaction:
> 
> 1, (fixed) When large amount of mail were received via SMTP, the
> OpenLDAP software didn't manage to keep up and as a result we got an
> equally large amount of "could not be delivered"-mail (the sender was a
> sattelite system, with sender account belonging in the same
> JAM-installation as the recipient). The resolution to this was simply to
> make postfix not except mail as fast as the default installation made it
> (debian unstable).

What exactly did you tweak?  I'm having a similar problem.  (Also,
what version of OpenLDAP?)  I'm having a similar problem, but I can't
believe the load is too high.  I'm going to try upgrading to the
latest OpenLDAP and switching backends to see if that helps.

> 2, (not fixed) I use the oftenly seen "regexp_table" solution to rewrite
> 16 domains to 1. The regexp is
> 
>         /^(.*)@(form|tryck)till(tusen|1000)\.(se|com|org|net)/  [email protected]
> 
> Works superb, except that I have to list them all by hand in the
> relay_domains setting for postfix to accept the hosts. It'd be so much
> nicer if one could hold a similar regexp for this setting.
> 
> Is this possible?

I don't know of a better method than that, sorry.

Keith

-- 
 Keith T. Garner                                        [email protected]
                "Make no little plans; they have no magic to
                   stir men's blood." - Daniel H. Burnham


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf