Re: RELAYCLIENT and QS_SPAMASSASSIN env vars ignored when set

MDB <[email protected]>
Newsgroups gmane.mail.qmail.scanner
Message-ID <[email protected]>
Here's my qmail-smtpd run file:

su-2.05b# more /var/service/qmail-smtpd/run
#!/bin/sh

PATH=/bin:/usr/bin:/usr/local/bin:/usr/sbin:/var/qmail/bin; export PATH

readdefault() {
  var=$1; shift
  file=$1; shift
  if [ -s /var/qmail/control/$file ]; then
    export $var="`cat /var/qmail/control/$file`"
  else
    export $var="$*"
  fi
}

if [ -x /usr/local/bin/rblsmtpd ]
then
  readdefault domains rbldomains ""
  for domain in $domains; do
    rblopts="$rblopts -r $domain"
  done
  readdefault timeout rbltimeout 60
  if [ -n "$rblopts" ]; then
    rbl="/usr/local/bin/rblsmtpd -t $timeout $rblopts"
  fi
fi

exec envdir /etc/relay-ctrl relay-ctrl-chdir \
softlimit -a 20000000 tcpserver -s 5 -p -R -x /etc/tcp.smtp.cdb -u82 
-g81 -v -c100 0 \
smtp $rbl relay-ctrl-check qmail-smtpd 2>&1


Jarbas Celante - CTE Internet wrote:
> MDB writes:
>> SpamAssassin.  It is my understanding that it's possible to force 
>> SpamAssassin to check mail from a local machine by setting
>> QS_SPAMASSASSIN="1" for the appropriate host entry in the tcp.smtp 
>
> Hi MDB, show us you ~qmail-smtpd/run file. You are using daemontools, 
> aren't you?
> Cheers.
> Jarbas Celante
> CTE Internet - O seu provedor de acesso!
> +55 (54) 3522 9300



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.