OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Dan Faerch (dan_at_scannet.dk)
Date: Tue Aug 06 2002 - 08:41:46 CDT

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    Thanks for a quick reply..

    I think you might have mis-read my mail :)..Or maybe i didnt make my point
    very well..
    (I should add (just to avoid confusion) that im not a newbie with either
    linux nor postfix..)

    postmap /etc/postfix/virtual
    is ofcourse the very very first thing i tried..

    ive tried alot of different things eg.
    postmap /etc/postfix/virtual
    postmap /etc/postfix/virtual </etc/postfix/virtual
    postmap -c /etc/postfix/ /etc/postfix/virtual
    postmap -c /etc/postfix/ hash:/etc/postfix/virtual
    ect.ect.ect.

    The 3 lines i attached is the very very last thing i tried.. (all 3 lines
    are from same script)

    > % find / -name postmap | xargs ls -l
    Returns: "/usr/sbin/postmap" (same path as in the script 3 lines)

    - Dan
    ----- Original Message -----
    From: "Ralf Hildebrandt" <Ralf.Hildebrandtcharite.de>
    To: <postfix-userspostfix.org>
    Sent: Tuesday, August 06, 2002 3:27 PM
    Subject: Re: Problem with running postmap from a script

    > On Tue, Aug 06, 2002 at 03:06:44PM +0200, Dan Faerch wrote:
    >
    > > Im trying to use postmap and newaliases from a script. From normal
    > > commandline the postmap command works perfectly, but when using it
    > > from the script, the virtual.db just goes empty.. All the old virtual
    > > mappings gets cleared as well... As if i /etc/postfix/virtual was
    > > empty.. The same applies to newaliases..
    >
    > % find / -name postmap | xargs ls -l
    >
    > > cd /etc/postfix
    > > export MAIL_CONFIG=/etc/postfix
    > > /usr/sbin/postmap -c /etc/postfix hash:/etc/postfix/virtual
    </etc/postfix/virtual 2>&1
    >
    > #!/bin/bash
    > postmap /etc/postfix/virtual
    >
    > --
    > Ralf Hildebrandt (Im Auftrag des Referat V A)
    Ralf.Hildebrandtcharite.de
    > Charite Campus Virchow-Klinikum Tel. +49 (0)30-450
    570-155
    > Referat V A - Kommunikationsnetze - Fax. +49 (0)30-450
    570-916
    > "I have traveled the length and breadth of this country and talked with
    > the best people, and I can assure you that data processing is a fad that
    > won't last out the year."
    > - The editor in charge of business books for Prentice Hall, 1957.
    >
    > -
    > To unsubscribe, send mail to majordomopostfix.org with content
    > (not subject): unsubscribe postfix-users
    >

    -
    To unsubscribe, send mail to majordomopostfix.org with content
    (not subject): unsubscribe postfix-users