On 09-Jul-00 Col Wilson wrote:
> Bernd I too have had this problem. I posted it a while back, but got
> no
> answer. Maybe someone will here this time. I tried removing the
> received
> line, but it did not work; qmail leaves it in th pppdir.
> 
> Good Luck
> Col
> 

Hy Col,

I did also change the FROM-Header and the RETURNPATH of outgoing Mail
to my Mailadress at my ISP.

For creation of new mail I use the following small script:

#!/bin/bash
# /home/me/post

echo "FROM: [EMAIL PROTECTED]" > .varmail

if [ "$1" = "" ] 
then
  var=0 
else
  var=$1
fi

until [ $(expr index $var @) \> 2 ]
do
  echo "TO: [EMAIL PROTECTED]"
  read var
done
echo "TO: $var" >> .varmail

echo CC:
read var
echo "CC: $var" >> .varmail

echo Subject:
read var
echo "Subject: $var" >> .varmail

echo Body:
var=0

until [ "$var" = "#" ]
do
read var
echo "$var" >> .varmail
done

cat .varmail | /var/qmail/bin/qmail-inject [EMAIL PROTECTED]

wait

# using the file .varmail for creation is not elegant but works

Essential was for me to create the Mail with 
"FROM: user@ISP" 
and inject it with 
"/var/qmail/bin/qmail-inject -fuser@ISP". 
For you that would be
 "FROM: [EMAIL PROTECTED]" 
and
"/var/qmail/bin/qmail-inject [EMAIL PROTECTED]"

For mail from your net you should perhaps write a script or use grep
for changing the Header.

and perhaps try armagh insted of `armagh' with maildirsmtp

Reply via email to