Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Time based config options

4 views
Skip to first unread message

Alex Bryant

unread,
Jul 6, 2016, 5:37:46 PM7/6/16
to

Hi,

 

Was looking for the best strategy for implementing time based config file options.

 

For instance, implement the following from 8-9:00 am and 4-5:00 pm only:

virtual_alias_maps = pcre:/etc/postfix/virtual_alias_maps_regex_1

 

Thank you,

 

-A

 

 

 

Patrick Ben Koetter

unread,
Jul 6, 2016, 6:17:41 PM7/6/16
to
* Alex Bryant <alex....@trancos.com>:
> Was looking for the best strategy for implementing time based config file
> options.
>
>
> For instance, implement the following from 8-9:00 am and 4-5:00 pm only:
>
> virtual_alias_maps = pcre:/etc/postfix/virtual_alias_maps_regex_1

Create a cronjob. Let it execute somehing along the lines of:

postconf -e 'virtual_alias_maps = pcre:/etc/postfix/virtual_alias_maps_regex_1'

p@rick

--
[*] sys4 AG

https://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG,80333 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


0 new messages