OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: add a header like "rcpt to" to know for who is the mail

From: Thierry B (postfixthierry.eu.org)
Date: Wed Jul 05 2006 - 09:17:24 CDT


Thierry B wrote:
> mouss wrote:
>
>>Thierry B wrote:
>>
>>
>>>In fact, as postfix is not operationnal, I have another smtp server for
>>>the moment, and I tell him that mails for the domain xxx.eu.org (the
>>>domain that I test with postfix) are forwarded to the private ip of the
>>>computer which has linux with postfix, so I don't think that my first
>>>smtp server modify the recipient adress.
>>>
>>>
>>>
>>
>>The alias must be expanded just before delivery. If alias expansion
>>occurs in fetchmail, in an intermediary MTA or before a content filter,
>>then the original recipient is lost. and once information is lost, it
>>can't be retrieved.
>>
>>
>
>
> Yes it works with that in main.cf
>
> receive_override_options=no_address_mappings
>
> and that in master.cf:
>
> -o receive_override_options=
>
> and now, I've the good value in X-Original-To (the value of my alias :-))
>
> I try something else:
>
> I add this in main.cf:
>
> recipient_delimiter = +
>
> to be able to receive mails for thierry+x so it will be given to the
> account thierry.
>
> but I've that in logs:
>
> Jul 5 15:31:35 debian postfix/pipe[4669]: E7AF758871:
> to=<thierry+xxxx.eu.org>, relay=maildrop, delay=713, status=deferred
> (temporary failure. Command output: /usr/bin/maildrop: Invalid user
> specified. )
>
> Do you have an idea of the problem?

Excuse me,

It works now with:

maildrop unix - n n - - pipe
  flags=ODRqhu user=vmail argv=/usr/bin/maildrop -d ${user}${nexthop}
${extension} ${recipient} ${user} ${nexthop}

But I haven't resolved the second problem.

Thanks :-)

>
> Another thing, so as the mail is deffered, it gives me another idea, so
> I looked for how to see the content of defered queue in postfix and how
> to cat a deferred mail and how eventually move a deferred mail manually
> in my inbox folder.
>
> I found how to see the content of defered queue with postqueue -p and
> how to cat a deferred mail with postcat -q id > file for example, but I
> didn't found, how to move it manually to a folder, if I want...
>
> Do you have an idea of that problem too?
>
> Thanks :-)