From n.messerschmidt at buero.link-m.de Wed Aug 3 12:17:55 2016 From: n.messerschmidt at buero.link-m.de (Nicki Messerschmidt, Linksystem Muenchen GmbH) Date: Wed, 3 Aug 2016 12:17:55 +0200 Subject: Config example for multiple domains with different settings Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I use automx for some of my domains. At the moment my automx.conf is quite cluttered as I specify all settings for every domain. I think there must be some way to point single domains to a set of settings. But I don't understand how to do it. :) Right now my automx.conf looks like this: - --- working right now --- # file: /etc/automx.conf [automx] provider = primarydomain.tld domains = * # Protect against DoS memcache = 127.0.0.1:11211 memcache_ttl = 1 client_error_limit = 20 rate_limit_exception_networks = 127.0.0.0/8, ::1/128 [DEFAULT] action = settings account_type = email [global] backend = sql {working sql settings} {working static settings} [domain1.tld] backend = global [domain2.tld] {set of static settings(2)} [domain3.tld] {set of static settings(2)} [domain4.tld] {set of static settings(2)} [domain5.tld] {set of static settings(3)} - --- working right now --- I thought that something like this should also work: - --- how I thought it should work --- [global] {see global settings from above} [set1] {...} [set2] {...} [domain1.tld] backend = global [domain2.tld backend = set1 [domain5.tld] backend = set2 - --- how I thought it should work --- What did I do wrong, or what could I do better? Cheers Nicki - -- Linksystem Muenchen GmbH We make the Net work Ludwig-Richter-Str. 29 Tel. 089 / 890 518-0 80687 Muenchen Fax 089 / 890 518-77 info at link-m.de http://www.link-m.de Handelsregister: Amtsgericht Muenchen, HRB 129182 Geschaeftsfuehrung: Christine Wittig, Mathias Zunterer PGP Keys: https://www.link-m.de/pgp/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Get keys at: https://www.link-m.de/pgp iD8DBQFXocTT6zWc+bXuIEMRAidmAKDVng6v5OQDoZV7qeS3pO9U5Z0KrACgisa9 YVJmxlK/lu6RbjM1s/d3AWw= =ibas -----END PGP SIGNATURE----- From c at roessner-network-solutions.com Wed Aug 3 19:57:03 2016 From: c at roessner-network-solutions.com (=?utf-8?Q?Christian_R=C3=B6=C3=9Fner?=) Date: Wed, 3 Aug 2016 19:57:03 +0200 Subject: Config example for multiple domains with different settings In-Reply-To: References: Message-ID: <593A46CC-B6ED-4A64-9193-41E5DE5298DD@roessner-network-solutions.com> > Am 03.08.2016 um 12:17 schrieb Nicki Messerschmidt, Linksystem Muenchen GmbH : > > [DEFAULT] > action = settings > account_type = email You can use this section for default settings that are mapped to _all_ other sections. So everything you specify here, will also exist in any other section. Os this what you looked for? Another way is to specify follow statements: [my_wonderful_settings] backend = static_append foo = bar {...} [domain1.tld] {some settings} follow = my_wonderful_settings [domain2.tld] {some settings} follow = my_wonderful_settings [domain3.tld] {some settings} follow = my_wonderful_settings Both examples should work ;-) Christian -- Erlenwiese 14, 36304 Alsfeld T: +49 6631 78823400, F: +49 6631 78823409, M: +49 171 9905345 USt-IdNr.: DE225643613, https://www.roessner-network-solutions.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 841 bytes Desc: Message signed with OpenPGP using GPGMail URL: