|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: relay_recipients_maps / generic clash
From: mouss (usebsd
free.fr)
Date: Mon Oct 02 2006 - 16:21:37 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
John Knappers wrote:
> Now the problem is completely claer, can you (or anyone else) assist
> me with the awk script additions to do this, because my scripting
> knowledge is not suffient for this. :(
> I have a relay_recipients_maps with all valid mail addresses, but only
> for the consolidated domains, and I have a generic_maps file, with
> what olddomains will be rewritten to what newdomains.
> Or is there an other around / better way solve this setup problem?
consider using perl (or friends).
if you insist on shell, do something like
awk ... | while read domain; do
awk ... | while read user; do
echo $user
$domain OK >> $file
done
done
If you have sql/ldap running and (partially) used, you can have this
done via sql/ldap statements.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]