procmail
[Top] [All Lists]

Delivered-To: problem

2010-02-24 10:51:07
Hello *,

if my BTS send a message with following headers

----[ '/home/tdbts/Maildir/new/1267020027_0001(_at_)samba3' ]----------------
From: tdtools-courier-bts <linux4michelle(_at_)tamaXXXogan(_dot_)net>
To: owner(_at_)tdbts(_dot_)debian(_dot_)tamaXXXogan(_dot_)net
Subject: The courier-bts was successful installed.
Date: Wed, 24 Feb 2010 16:12:26 +0100
Message-Id: <1267020027_0001(_at_)samba3>

------------------------------------------------------------------------

from the commandline with a dot-courier file of

----[ '/home/tdbts/.courier-owner' ]------------------------------------
linux4michelle(_at_)tamaXXXogan(_dot_)net
------------------------------------------------------------------------

I have the problem, that ANY incoming ALIASED mail to <michelle.konzack>
have an empty Delivered-To: header.

I have an courier alias file of

----[ '/etc/courier/aliases/USER_michelle.konzack' ]--------------------
linux4michelle: michelle.konzack-linux4michelle
------------------------------------------------------------------------

and in my account I have

----[ '~/.courier' ]----------------------------------------------------
| /usr/bin/preline /usr/bin/procmail
------------------------------------------------------------------------

for the normal account and

----[ '~/.courier-default' ]--------------------------------------------
| /usr/bin/preline /usr/bin/procmail
------------------------------------------------------------------------

for the aliases E-Mails.

Now I have created a new file for testing

----[ '~/.courier-linux4michelle' ]-------------------------------------
| /usr/bin/preline /home/michelle.konzack/bin/test.sh linux4michelle
------------------------------------------------------------------------

with the executable

----[ '~/bin/test.sh' ]-------------------------------------------------
#!/bin/bash

FNAME=/tmp/${USER}_$(date +%Y-%m-%d_%H%M%S).log
echo "$0 $*" >${FNAME}
echo 
"===============================================================================">>${FNAME}
MESSAGE=$(cat)
echo "${MESSAGE}" >>${FNAME}
echo 
"===============================================================================">>${FNAME}
env >>${FNAME}
echo 
"===============================================================================">>${FNAME}


echo "${MESSAGE}" |/usr/bin/procmail
------------------------------------------------------------------------

and if my BTS send the message I get a logfile of:

----[ '/tmp/michelle.konzack_2010-02-24_172832.log' ]-------------------
/home/tdbts/bin/test.exe linux4michelle
===============================================================================
From tdbts(_at_)mail(_dot_)tamaXXXogan(_dot_)net Wed Feb 24 17:28:32 2010
Return-Path: <tdbts(_at_)mail(_dot_)tamaXXXogan(_dot_)net>
Delivered-To: 
michelle(_dot_)konzack-linux4michelle(_at_)mail(_dot_)tamaXXXogan(_dot_)net
Received: from localhost (localhost [127.0.0.1])
  (forwarded by tdbts-owner(_at_)mail(_dot_)tamaXXXogan(_dot_)net)
  by mail.tamay-dogan.net with local; Wed, 24 Feb 2010 17:28:31 +0100
  id 0002C5E2.4B8553AF.00000A84
Delivered-To: tdbts-owner(_at_)mail(_dot_)tamaXXXogan(_dot_)net
Received: from localhost (localhost [127.0.0.1])
  (uid 1043)
  by mail.tamay-dogan.net with local; Wed, 24 Feb 2010 17:28:31 +0100
  id 0002C576.4B8553AF.00000A81
From: tdtools-courier-bts <linux4michelle(_at_)tamaXXXogan(_dot_)net>
To: owner(_at_)tdbts(_dot_)debian(_dot_)tamaXXXogan(_dot_)net
Subject: The courier-bts was successful installed.
Date: Wed, 24 Feb 2010 16:12:26 +0100
Message-Id: <1267020027_0001(_at_)samba3>

===============================================================================
SENDER=tdbts(_at_)mail(_dot_)tamaXXXogan(_dot_)net
RECIPIENT=michelle(_dot_)konzack-linux4michelle(_at_)mail(_dot_)tamaXXXogan(_dot_)net
HOST=mail.tamay-dogan.net
DTLINE=Delivered-To: 
michelle(_dot_)konzack-linux4michelle(_at_)mail(_dot_)tamaXXXogan(_dot_)net
SHELL=/bin/sh
MAILDIRQUOTA=
DEFAULT=
USER=michelle.konzack
EXT=linux4michelle
MAILDROPDEFAULT=./Maildir
LOCAL=michelle.konzack-linux4michelle
PATH=/usr/bin:/bin:/usr/bin:/usr/local/bin
RPLINE=Return-Path: <tdbts(_at_)mail(_dot_)tamaXXXogan(_dot_)net>
PWD=/home/michelle.konzack
HOME=/home/michelle.konzack
SHLVL=2
EXT3=
EXT2=
EXT4=
UFLINE=From tdbts(_at_)mail(_dot_)tamaXXXogan(_dot_)net Wed Feb 24 17:28:32 2010
_=/usr/bin/env
===============================================================================

------------------------------------------------------------------------

but the message which arrived in my Mailbox is:

----[ STDIN ]-----------------------------------------------------------
Return-Path: <tdbts(_at_)mail(_dot_)tamaXXXogan(_dot_)net>
Received: from localhost (localhost [127.0.0.1])
        (forwarded by tdbts-owner(_at_)mail(_dot_)tamaXXXogan(_dot_)net)
        by mail.tamay-dogan.net with local; Wed, 24 Feb 2010 17:28:31 +0100
        id 0002C5E2.4B8553AF.00000A84
Received: from localhost (localhost [127.0.0.1])
        (uid 1043)
        by mail.tamay-dogan.net with local; Wed, 24 Feb 2010 17:28:31 +0100
        id 0002C576.4B8553AF.00000A81
From: tdtools-courier-bts <linux4michelle(_at_)tamaXXXogan(_dot_)net>
To: owner(_at_)tdbts(_dot_)debian(_dot_)tamaXXXogan(_dot_)net
Subject: The courier-bts was successful installed.
Date: Wed, 24 Feb 2010 16:12:26 +0100
Message-Id: <1267020027_0001(_at_)samba3>
Delivered-To:
X-TDMailSerialnumber: 9666899
------------------------------------------------------------------------

Any ideas what eat my Delivered-To: header?

Thanks, Greetings and nice Day/Evening
    Michelle Konzack
    Systemadministrator
    24V Electronic Engineer
    Tamay Dogan Network
    Debian GNU/Linux Consultant

-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
<http://www.tamay-dogan.net/>                 Michelle Konzack
<http://www.can4linux.org/>                   Apt. 917
<http://www.flexray4linux.org/>               50, rue de Soultz
Jabber linux4michelle(_at_)jabber(_dot_)ccc(_dot_)de           67100 
Strabourg/France
IRC    #Debian (irc.icq.com)                  Tel. DE: +49 177 9351947
ICQ    #328449886                             Tel. FR: +33  6  61925193

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)de
http://mailman.rwth-aachen.de/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>