Hi, i wrote a mailet thats split the email in one email for each recipient. i use this :
try { getMailetContext().sendMail(mail.getSender(), Arrays.asList(new MailAddress[] { recipient }), message, state); } catch (MessagingException ex) { getMailetContext().log("Error while splitting mail.", ex); } but i run into a problem now. I see some emails that get in the deadletter table. This is what i get back as bounce: We were unable to deliver the attached message because of an error in the mail server. Message details: Subject: problem in verschickter Nachricht gefunden "Always dreamed of an immense dick? Penis Enlarge Patch can make your dreams come true. " Sent date: Sat Mar 04 06:30:27 CET 2006 MAIL FROM: null RCPT TO: [EMAIL PROTECTED] From: "System Anti-Virus Administrator" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Size (in bytes): 1286 It seems that the problem is that MAIL FROM: null is set.. But how can that happen ? Here is the header of the email that is put in the table: Return-Path: null Received: from mail.spam-box.de ([xxx.xxx.xxx.xxx]) by mail.guden.ath.cx (JAMES SMTP Server 2.3-dev) with SMTP ID 536 for <[EMAIL PROTECTED]>; Sat, 4 Mar 2006 06:31:04 +0100 (CET) Received: (qmail 469 invoked by uid 1096); 4 Mar 2006 05:30:48 -0000 Received: from by mail-web-ix by uid 71 with ExcuBAtor-3.1.2-beta (3.1.2-beta Clear:RC:1(217.195.2.194):. Processed in 0.0660269999999999 secs); 04 Mar 2006 05:30:48 -0000 Received: from mail.xxx.de (xxx.195.xx.194) by mail.xxxx.de with SMTP; 4 Mar 2006 05:30:47 -0000 Received: (qmail 3852 invoked by uid 64014); 4 Mar 2006 05:30:27 -0000 Datum: 4 Mar 2006 05:30:27 -0000 (06:30 CET) Von: System Anti-Virus Administrator <[EMAIL PROTECTED]> An: [EMAIL PROTECTED] Betreff: problem in verschickter Nachricht gefunden "Always dreamed of an immense dick? Penis Enlarge Patch can make your dreams come true. " Message-ID: <[EMAIL PROTECTED]> X-Tnz-Problem-Type: 40 Auto-Submitted: auto-replied MIME-Version: 1.0 Content-type: text/plain Content-Transfer-Encoding: 7bit --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]