Postfix relay_hosts with regexp
Fredrik Wendt <[email protected]> Mon, 15 Aug 2005 08:33:28 +0200
| Newsgroups | gmane.mail.jamm.user |
|---|---|
| Message-ID | <1124087608.22681.19.camel@localhost> |
Hi all.
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).
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?
Thanks in advance,
Fredrik Wendt
--
wendt.se
-------------------------------------------------------
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