Mike scripsit: >Frodo Baggins wrote: >> Hi debianers, >> I have a small problem in configurating exim. I actualy have to ISP, >> using the one or the other depending on the time of the day. > >Is the time of day when you switch fom one to the other always the same time >of day? If it is, then here's an idea. > >Set up two different exim conf files, named something like /etc/exim.conf.1 >and /etc/exim.conf.2 Then set up a cron job or two to set up a sym link >/etc/exim.conf pointing at /etc/exim.conf.[12] as appropriate for the >current time.
That was a good idea, but I did better :))) Well, when you think to it the solution is simple, someone (on the italian mailing list) sugested me to put the exim conf stuff into the script I use to connect. Now this made me think... I use pon (and poff to get out:) and they handle well the dns stuff, having a DNS file for each provider. I wondered how they did it, and I found a script named 0dns-up into the /etc/ppp/ip-up.d directory (and its couterpart 0dns-down in the /etc/ppp/ip-down.d one). I simply mimiked what these scripts do and wrote 1exim-up and 1exim-down. 1exim-up safely (at least I belive it's safely) replaces /etc/exim.conf with (a copy of) the file named after the provider int the newborn /etc/ppp/sendmail/ directory. When the ppp link get dow, 1exim-down put things back. As this message proves, all goes well :))) -- Leo TheHobbit IRCnet #leiene ICQ 56656060 -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GED/CS d? s-:+>-: a C+++ U+++ L++(+++)>++++ P+++>+++++ E+(++) W++ N+ K? o? !w O? M V--- PS+++ PE-- Y+ GPG+ t++ 5? X- R+ tv+ b++++ D? DI? G e(++++)* h(+) r--(---) y(+)-->+++* ------END GEEK CODE BLOCK------