Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

For my integration mail tests I am using Postfix as my SMTP server. My application is sending base64 encoded mail and when I receive it, looks like postfix is adding some random charters int the mail. When I test it with gmail smtp server (directly connecting my application to gmail, no postfix involved), I have no issues.

Most probably I am missing some configurations Any idea what I might be missing.

As an example this is part of the mail that I send:

MXB4O2JvcmRlci1zdHlsZTogc29saWQ7cGFkZGluZzogMC42ZW07dmVydGljYWwtYWxpZ246IG1p
ZGRsZTtib3JkZXItY29sb3I6ICNkNGRmZWQ7YmFja2dyb3VuZC1jb2xvcjogI2U3ZWRmNTsnID5L
ZXZpbnMtTWFjQm9vay1BaXIubG9jYWw8L3RkPjx0ZCBzdHlsZT0nZm9udC1zaXplOiAwLjYyNWVt
O2JvcmRlci13aWR0aDogMHB4IDFweDtib3JkZXItc3R5bGU6IHNvbGlkO3BhZGRpbmc6IDAuNmVt
O3ZlcnRpY2FsLWFsaWduOiBtaWRkbGU7Ym9yZGVyLWNvbG9yOiAjZDRkZmVkO2JhY2tncm91bmQt
Y29sb3I6ICNlN2VkZjU7JyA+MDQuMDQuMjAxMyBAIDEwOjUyOjU4PC90ZD48dGQgc3R5bGU9J2Zv
bnQtc2l6ZTogMC42MjVlbTtib3JkZXItd2lkdGg6IDBweCAxcHg7Ym9yZGVyLXN0eWxlOiBzb2xp
ZDtwYWRkaW5nOiAwLjZlbTt2ZXJ0aWNhbC1hbGlnbjogbWlkZGxlO2JvcmRlci1jb2xvcjogI2Q0
ZGZlZDtiYWNrZ3JvdW5kLWNvbG9yOiAjZTdlZGY1OycgPjE3LjA0LjIwMTMgQCAxNjoyNDoxMDwv
dGQ+PC90cj48dHIgc3R5bGU9J2JvcmRlci1jb2xvcjogI2Q0ZGZlZDtiYWNrZ3JvdW5kLWNvbG9y
OiAjZTdlZGY1OycgPjx0ZCBzdHlsZT0nZm9udC1zaXplOiAwLjYyNWVtO2JvcmRlci13aWR0aDog
MHB4IDFweDtib3JkZXItc3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3R5bGU9J2Zv
bnQtc2l6ZTogMC42MjVlbTtiOiAwLjYyNWVtO2JvcmRlci13aWR0aDog
MHB4IDFweDtib3JkZXItc3R5bGU6IHNvbGlkO3BhZGRpbmc6IDAuNmVtO3ZlcnRpY2FsLWFsaWdu
OiBtaWRkbGU7Ym9yZGVyLWNvbG9yOiAjZDRkZmVkO2JhY2tncm91bmQtY29sb3I6IHdoaXRlOycg
PkxBUFRPUFJKUzwvdGQ+PHRkIHN0eWxlPSdmb250LXNpemU6IDAuNjI1ZW07Ym9yZGVyLXdpZHRo
OiAwcHggMXB4O2JvcmRlci1zdHlsZTogc29saWQ7cGFkZGluZzogMC42ZW07dmVydGljYWwtYWxp
share|improve this question
1  
Decoding the payloads reveals that it's not "random garbage"; it has repeated a part of the text for some reason. The first difference is that dding: 0.6em;vertical-align: middle;border-color: #d4 is repeated at approximately byte offset 300. –  tripleee Apr 18 '13 at 7:45
    
I agree that it is decodable. But I don't know why it has some repititions –  wantro Apr 18 '13 at 7:53
    
It would probably help if you could show your postfix configuration. –  Jenny D Apr 18 '13 at 7:58
    
I have nothing special in my postfix config. Only thing I did is:Edit sudo vi /etc/postfix/main.cf i. insert line: inet_interfaces = all –  wantro Apr 18 '13 at 8:07
1  
Is this reproducible? If you resend an identical message, does it undergo identical corruption? –  tripleee Apr 18 '13 at 16:38

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.