Re: Add a header line with postfix




Date: Fri, 13 Jan 2006 20:21:50 +0100
From: Mark Lijftogt <mark@xxxxxxxxxx>

I'm in the unlucky position to be searching for a possible solution for
a header issue that a java application is giving me. This java
application POP's it's email to distribute it later on. Now, in most
cases this goes without a hitch, except when the adress on which the
java application checks is bcc'ed.

For this reason the coders decided it was a wise step to push the issue
forward to the admins, requestion for every e-mail that passes on thrue
a X-evelope-to: header, with the recepient after that.

Now, I'm unsure how to approach this.. or how I could approach this, but
more important.. how I should approach this. header_checks and UCE rules
alike, in the duration that I was reading I'm unsure if that would be
the road to take (and a "deadline" is coming insight rather quickly).

Any pcre or other regex option availible that ADD's a headerline?



Unfortunately it is not clear from your description how the mail is being handled. When you say "This java application POP's it's email", is it always POPing from a single mailbox, or could it POP from various mailboxes? Anyway, if you just want to add a header when you know the envelope recipient, just pipe the message through this filter:


	formail -A "X-envelope-to: $recipient"

If the recipient is not defined then that is another story . . .




Thx for your reply,
I should have stuck to the question, and not make it a blurry episode describing what the application does
in a sense.


What is needed is quite simple, but I still don't know enough about postfix to get it done (right).
The mail handling is unchanged, looking at it from a default postfix install, but it needs to get an extra header
line: x-envelope-to: $recipient
the $recipient must be the recipient, so that the application can treat the mailbox as something like an
ETRN account.


Thx,
,Mark


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx




Relevant Pages

  • Re: Cpp Considered Harmful
    ... >> I will observe that many Java IDEs do this rather successfully. ... > Look, if a tool author is willing to fully parse the underlying language, ... > compiler version. ... mentions a header file is in the C compatability appendix. ...
    (comp.lang.cpp)
  • Re: JTextArea - how to create it so it just fits the text ?
    ... Now, with all this Java technology, the kind of semi-generated GUI I was ... b - how to loop through all permutations will take a bit of thought. ... >>header rows but let the column header wrap and assume the minimum width ...
    (comp.lang.java.gui)
  • Re: Add a header line with postfix
    ... > a header issue that a java application is giving me. ... always POPing from a single mailbox, or could it POP from various ... if you just want to add a header when you know the ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: convert date from VB to java
    ... > I need to read files written by a VB program with java. ... > in the header are dates and pointers to text in the rest of the file. ... I cannot interpret the eight bytes for a date data type, ...
    (microsoft.public.vb.general.discussion)
  • Re: exchange2003 problem!
    ... administrators mailbox. ... "Email routing by SMTP does not depend on headers, but on the recipient name used in the SMTP transaction. ... It can only survive if one of the SMTP servers which handles the email explicitly adds a header called 'Envelope-To:' or something similar. ... If for some reason there is no To: or CC: header, such as with BCC or a mailing list, the SBS2003 POP3 downloader does not know where to deliver the mail. ...
    (microsoft.public.windows.server.sbs)

Loading