BCC'd e-mails and capturing system address

Hi,
Occasionally we receive e-mails that are BCC'ed to us. Since there is no
valid "To:" or "Cc:" OTRS cannot determine the correct queue and puts the
message in the Raw queue.
Looking at the headers, we see this:
Received: from example.com (mail.example.com [xxx.xxx.xxx.xxx]) by
our.domain (Postfix) with ESMTP id E62C989BDF1 for

On Thursday, March 25, 2004 1:08 AM
Paul
Received: from example.com (mail.example.com [xxx.xxx.xxx.xxx]) by our.domain (Postfix) with ESMTP id E62C989BDF1 for
; Wed, 24 Mar 2004 17:55:37 -0500 (EST) We have a queue for systememail@our.domain however messages that arrive in this fashion don't get in there.
Won't work, it's your postfix writing this to the logs, leaving any To: line intact, gracefully.
Is there a way we can capture the correct address from the Received: line? Is this the way BCC'ed e-mails work universally or a postfix specific implementation? Perhaps procmail can somehow handle this and rewrite the To: line?
Not rewrite a thing, as procmail can't do this at all, but interpretate the Received: line. See http://doc.otrs.org/1.2/en/html/receiving-email-cmd.html http://doc.otrs.org/1.2/en/html/receiving-email-procmail.html http://doc.otrs.org/1.2/en/html/receiving-email-cmd-dispatching-with-pro -web.html and your $OTRS_HOME/.procmailrc Additionally, let me point you towards a feature built into OTRS: http://doc.otrs.org/1.2/en/html/receiving-email-filter-module.html
I'd appreciate any suggestions.
You're welcome. Regards, Robert Kehl -- ((otrs.de)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg http://www.otrs.de/ :: Tel. +49 (0)6172 4832388

Hi Robert,
Is there a way we can capture the correct address from the Received: line? Is this the way BCC'ed e-mails work universally or a postfix specific implementation? Perhaps procmail can somehow handle this and rewrite the To: line?
Not rewrite a thing, as procmail can't do this at all, but interpretate the Received: line. See http://doc.otrs.org/1.2/en/html/receiving-email-cmd.html http://doc.otrs.org/1.2/en/html/receiving-email-procmail.html http://doc.otrs.org/1.2/en/html/receiving-email-cmd-dispatching-with-pro -web.html and your $OTRS_HOME/.procmailrc
I was able to use procmail to interpret the Received header, append X-OTRS-Queue information and achieve the desired effect. Thanks for the pointers! Best wishes, Paul
participants (2)
-
Paul
-
Robert Kehl