[ic] MIME/REJECT: Invalid structure in sent emails

Philip S. Hempel interchange-users@icdevgroup.org
Tue Jun 10 12:31:01 2003


Running 4.9.7 daily

For the first time since I have been using interchange for my store I
have been testing not on the same box as my production machine. Order
emails have never went passed the local mailer. I have now run into a
problem with our system as well as one other that check for valid data
in an email as to decide if it is a possible virus or not. I have only
seen bounces of this nature from spam mail myself.


	Hi. This is the qmail-send program at router.linuxhardcore.com.
	I'm afraid I wasn't able to deliver your message to the 	following
addresses.
	This is a permanent error; I've given up. Sorry it didn't work 	out.

	<test@linuxhardcore.com>:
	216.109.207.68 failed after I sent the message.
	Remote host said: 552 MessageWall: MIME/REJECT: Invalid 	structure

	-- Below this line is a copy of the message.

	Return-Path: <sales@blossomland.com>
	Received: (qmail 1171 invoked by uid 64014); 7 Jun 2003 23:20:37 	-0000
	Received: from sales@blossomland.com by router by uid 64011 with
	qmail-scanner-1.16 
	 (iscan: v3.1/v6.510-1002/559/53995. uvscan: v4.2.40/v4270.  	Clear:. 
	Processed in 1.305144 secs); 07 Jun 2003 23:20:37 -0000
	Received: from uml.linuxhardcore.com (192.168.1.236)		 	by
router.linuxhardcore.com with SMTP; 7 Jun 2003 23:20:35 -0000
	Received: by uml.linuxhardcore.com (sSMTP sendmail emulation); 	Sat,  7
Jun 2003 23:20:35 +0000
	Date: Sat,  7 Jun 2003 23:20:35 +0000
	To: test@linuxhardcore.com
	Subject: ORDER 2003010401
	From: Blossomland Order Dept. <sales@blossomland.com>
	MIME-Version: 1.0
	Content-Type: multipart/alternative; 	BOUNDARY="-3n7CbfjA-308:=5683"
	Content-ID:
	<Interchange.4.9.7-200306050658.030607232029.3n7CbfjA.313@http://uml.linuxhardcore.com/cgi-bin/ic/bl>
	--3n7CbfjA-308:=5683
	Content-Type: text/comma-separated-values;
	Conetent-ID:
	<Interchange.4.9.7-200306050658.030607232029.3n7CbfjA.311@http://uml.linuxhardcore.com/cgi-bin/ic/bl>
	Content-Description: ATX.TXT
	Content-Disposition: attachment; filename="ATX.TXT"
	X-Qmail-Scanner-Message-ID: <10550280365261161@router>



	"OrderKey","Item","Qty","Price","CustNum","LastName","FirstName","Company","Contact","Add1","Add2","City","State","Zip","Cntry","BillAdd","BillAdd2","BillCity","BillState","BillZip","BillCntry","TaxRate","Tax","ShipVia","CCMonth","CCYear","CCName","AuthorizedL","CCAuth","Shipping","Reference","Weight","Notes","IntNotes","CCNum"
	<snip> lots of data</snip>
	--

Could someone tell me why this does occur noting the many people that
work on IC use RFC's when designing any part of IC why this would be a
problem. I know that my mail server is very strict about structure of an
email.

In attempting to send this file to any client as well it is not seen as
an attachment. After hundreds of different configurations I have come to
the conclusions that IC does not seem to create proper mime mail.

Even the default not touched or modified email message from the demo
store is bounced back and I never before thought about it, the gpg 
attachments are not seen as attachments.

If someone else can verify I will put this up as a bug. I am almost
certain that the use of the following is correct and that op=mime tag or
the mime tag do not follow standards.

[code]
#===============#

[seti atrex_info]
Attached is the data for ATREX import for order #[value mv_order_number]
Please download to where the Generic Order importer for ATREX is
installed.
                                                                                                                                     
The filename is ATXORDER.TXT
                                                                                                                                     
If there are multiple orders you may copy them all into the same file
before
doing your import to speed up the process.
[/seti]
[seti atrex_data]
"OrderKey","Item","Qty","Price","CustNum","LastName","FirstName","Company","Contact","Add1","Add2","City","State","Zip","Cntry","BillAdd","BillAdd2","BillCity","BillState","BillZip","BillCntry","TaxRate","Tax","ShipVia","CCMonth","CCYear","CCName","AuthorizedL","CCAuth","Shipping","Reference","Weight","Notes","IntNotes","CCNum"
[item-list]"[value
mv_order_number]","[item-sku]","[item-quantity]","[item-price]","","[value lname]","[value fname]","[if value company][value company][/if]","[value fname] [value lname]","[value address1]","[if value address2][value address2][/if]","[value city]","[value state]","[value zip]","[value country]",[if value mv_same_billing]"[value address1]","[if value address2][value address2][/if]","[value city]","[value state]","[value zip]","[value country]",[/if][if !value mv_same_billing]"[value b_address1]","[if value b_address2][value b_address2][/if]","[value b_city]","[value b_state]","[value b_zip]","[value b_country]",[/if]"[if state eq MI]6.0[/if]","[salestax]","[shipping-desc]",[if value mv_credit_card_info]"[value mv_credit_card_exp_month]","[value mv_credit_card_exp_year]",[/if][if !value mv_credit_card_info]"","",[/if][if !value mv_same_billing]"[value b_fname] [value b_lname]",[/if][if value mv_same_billing]"[value fname] [value lname]",[/if][if value auth-code]"Y"[/if],"[value auth-code]","[shipping]","","","[if value gift_note][value gift_note][/if]","REFERRING URL: [data session referer] BROWSER: [data session browser] REMOTE IP:[remote-ip-addr type=both] ORDER DATE: [tag time]%c[/tag] ORDER NUMBER: [value mv_order_number]","[value mv_credit_card_number]"
[/item-list]
[/seti]
                                                                                                                                     
[tag op=mime description="Atrex Data" interpolate=1]
[scratch atrex_info]
[/tag]
                                                                                                                                     
[tag op=mime
        interpolate=1
        description=|ATXORDER.TXT
Content-Disposition: attachment; filename="ATXORDER.TXT"|
        type=text/comma-separated-values;]
[scratch atrex_data]
[/tag]

#=================#
[/code]


Any help would be appreciated.
Regards
-- 
Philip S. Hempel

Give a man a fish and he will feed himself for a day.
Teach a man to fish and he will feed himself for a lifetime.

http://linuxhardcore.com/