Re: [Exim] exim and sql forwarding

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Mike Meredith
Date:  
À: exim-users
Sujet: Re: [Exim] exim and sql forwarding
--
On Fri, 05 Mar 2004 13:14:35 +0100, Philipp Jacob wrote:
> I already found some ideas on that topic, but it was all related to
> exim4. I use exim 3.35 on a debian box with pgsql support.
>
> I'd like to use the value in the 'forward' column (if NOT NULL) and
> deliver to that address instead of delivering locally.


Run
"SELECT local_part, forward FROM table WHERE forward NOT NULL" > \
/etc/aliases

on a regular basis. You'll have to correct the SQL, and munge the output
into an appropriate format for /etc/aliases. You could come up with
something more dynamic, but who wants to make their mail server more
fragile than necessary ?
--
Mike Meredith, Senior Informatics Officer
University of Portsmouth: Hostmaster, Postmaster and Security
'A foolish consistency is the hobgoblin of little minds'
--
[ Content of type application/pgp-signature deleted ]
--