[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: PHP From address and spam
- To: D E <david55@xxxxxxx>
- Subject: Re: PHP From address and spam
- From: Zachery Hostens <qmail@xxxxxxxxxx>
- Date: Thu, 01 Dec 2005 00:02:01 -0500
- Cc: qmail@xxxxxxxxxxxxx
- Delivered-to: de5-qmail@sws5.ornl.gov
- Delivered-to: mailing list qmail@list.cr.yp.to
- In-reply-to: <200512010413.jB14DAv06251@cal1-1.us4.outblaze.com>
- Mailing-list: contact qmail-help@list.cr.yp.to; run by ezmlm
- User-agent: RoundCube Webmail/0.1-20051021
then change the location to
/var/qmail/control/{more,}rcpthosts ...
rudementery question that wasen't required...
- Zac
On Thu, 01 Dec 2005 12:13:09 +0800, "D E" <david55@xxxxxxx> wrote:
>
> Thanks, I was using an old version of bash. I changed to bash2 and
> that error was corrected.
>
> I am now getting an error in the last part of the code. Here is the code.
>
> # make sure the fromdomain is in rcpthosts
> if grep "^$fromdomain$" /var/qmail/{more,}rcpthosts >/dev/null ; then
> /var/qmail/bin/sendmail "$@" <$tmpfile
> rm $tmpfile
> else
> rm $tmpfile
> exit -1
> fi
>
> Here is the error.
>
> grep: /var/qmail/morercpthosts: No such file or directory
> grep: /var/qmail/rcpthosts: No such file or directory
>
> My file is located at /var/qmail/control/rcpthosts
>
> Thanks for all your help,
>
> - Dave
>
>>
>> On Mon, 2005-11-28 at 00:34 -0500, Kyle Wheeler wrote:
>>
>> > Looks like you aren't using bash.
>>
>> Could be an old version, pre-bash-2.0 doesn't understand
>> arrays. getopt also returns parameters as quoted strings,
>> you'll need something like from=`eval echo ${args[1]}`.
>>
>> Rick.
>
>
> --
> ___________________________________________________
> Play 100s of games for FREE! http://games.mail.com/