Hello,
Ok I'm trying to get my Imail users on the gateway. The problem
is the script to put the " ok " in the to_relay file run but the file is
empty when it finish. I check the file from IMAIL and there is user in it.
On the screen you could see it run with the username and the ok.
[EMAIL PROTECTED] ok
Here is the script
#!/bin/sh
IMPPATH="/var/tmp/to_recip"
perl -pi -e 's/\r\n/\n/;' < $IMPPATH/to_recipients | awk '{ print $1 " ok"}'
\
> $IMPATH/to_relay_recipients_dc.map
cp $IMPPATH/to_relay_recipients.map /etc/postfix/to_relay_recipients.map
postmap /etc/postfix/to_relay_recipients_dc.map
exit 0
Do I have to execute a different way other then with the SH command?
Thank you,
Don