Re: [qmailtoaster] simscan - bad attachment: d
I have seen that sometimes when sending to the list. > Il giorno 14 set 2018, alle ore 05:37, Eric Broch > ha scritto: > > Is this the correct patch: > > diff -ruN simscan-1.4.0/simscan.c simscan-1.4.0-tested/simscan.c > --- simscan-1.4.0/simscan.c 2011-02-08 20:26:06.095067924 -0200 > +++ simscan-1.4.0-tested/simscan.c 2011-02-08 18:16:11.003064430 -0200 > @@ -1735,10 +1735,14 @@ > for(i=0;i if ( DebugFlag > 2 ) fprintf(stderr, "simscan: checking attachment > %s against %s\n", mydirent->d_name, bk_attachments[i] ); > lowerit(mydirent->d_name); > - if ( str_rstr(mydirent->d_name,bk_attachments[i]) == 0 ) { > - strncpy(AttachName, mydirent->d_name, sizeof(AttachName)-1); > - closedir(mydir); > - return(1); > + if ( strlen(mydirent->d_name) >= strlen(bk_attachments[i]) ) { > + if ( str_rstr(mydirent->d_name,bk_attachments[i]) == 0 ) { > + strncpy(AttachName, mydirent->d_name, sizeof(AttachName)-1); > + closedir(mydir); > + return(1); > + } > + } else { > + if ( DebugFlag > 2 ) fprintf(stderr, "simscan: attachment name '%s' (%d) is > shorter than '%s' (%d). IGNORED\n", mydirent->d_name, strlen( > mydirent->d_name ), bk_attachments[i], strlen( bk_attachments[i] ) ); > } > } > > >> On 9/13/2018 10:02 AM, Michele Federici wrote: >> Hi, >> I have done various tests and can confirm the presence of the bug. >> >> If the doc attachment created with word 2007 (or other?) is sent through >> outlook 2003/2007 (or others?), sometimes ripmime wrong to extract the >> various parts of the email by generating a file "d". >> >> # ripmime --disable-qmail-bounce -i test_outlook.eml -d out_dir_res >> # ls -l ./out_dir_res/ >> -rw-r--r-- 1 root root 0 13 sep 13.32 d >> -rw--- 1 root root 442368 13 sep 13.32 mydocument.doc >> -rw-r--r-- 1 root root 48 13 sep 13.32 textfile0 >> -rw-r--r-- 1 root root121 13 sep 13.32 textfile1 >> -rw-r--r-- 1 root root167 13 sep 13.32 textfile2 >> >> The interesting thing is that: this does not happen with all the doc files >> but only with some. >> >> Simscan 1.4.0 (1.qt.el7) analyzes these files and due to a bug blocks the >> e-mail with the error "bad attachment: d" >> >> I could not replicate the problem with thunderbird: all the emails sent >> arrived without problems. >> >> Probably the correct solution is to compile simscan with the patch indicated >> in the post by Gustavo Castro. >> >> Thank you >> Michele >> >> Il 11/09/2018 12:44, Michele Federici ha scritto: >>> Hi, >>> >>> I've found this error "Your email was rejected because it contains a bad >>> attachment: d" in the smtp log. >>> >>> I read these old post >>> >>> http://qmailtoaster-list.qmailtoaster.narkive.com/u9RF8MRE/your-email-was-rejected-because-it-contains-a-bad-attachment-d >>> >>> http://gcastrop.blogspot.com/2011/02/problemas-con-adjuntos-en-simscan-con.html >>> >>> but I did not understand if current simscan 1.4.0 (1.qt.el7) is compiled >>> with the patch. >>> >>> Can you help me? >>> >>> Thank you >>> Michele >>> - To >>> unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For >>> additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com >> >> - To >> unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For >> additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com > > -- > Eric Broch > White Horse Technical Consulting (WHTC) - To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com
Re: [qmailtoaster] simscan - bad attachment: d
Is this the correct patch: diff -ruN simscan-1.4.0/simscan.c simscan-1.4.0-tested/simscan.c --- simscan-1.4.0/simscan.c 2011-02-08 20:26:06.095067924 -0200 +++ simscan-1.4.0-tested/simscan.c 2011-02-08 18:16:11.003064430 -0200 @@ -1735,10 +1735,14 @@ for(i=0;i if ( DebugFlag > 2 ) fprintf(stderr, "simscan: checking attachment %s against %s\n", mydirent->d_name, bk_attachments[i] ); lowerit(mydirent->d_name); - if ( str_rstr(mydirent->d_name,bk_attachments[i]) == 0 ) { - strncpy(AttachName, mydirent->d_name, sizeof(AttachName)-1); - closedir(mydir); - return(1); + if ( strlen(mydirent->d_name) >= strlen(bk_attachments[i]) ) { + if ( str_rstr(mydirent->d_name,bk_attachments[i]) == 0 ) { + strncpy(AttachName, mydirent->d_name, sizeof(AttachName)-1); + closedir(mydir); + return(1); + } + } else { + if ( DebugFlag > 2 ) fprintf(stderr, "simscan: attachment name '%s' (%d) is shorter than '%s' (%d). IGNORED\n", mydirent->d_name, strlen( mydirent->d_name ), bk_attachments[i], strlen( bk_attachments[i] ) ); } } On 9/13/2018 10:02 AM, Michele Federici wrote: Hi, I have done various tests and can confirm the presence of the bug. If the doc attachment created with word 2007 (or other?) is sent through outlook 2003/2007 (or others?), sometimes ripmime wrong to extract the various parts of the email by generating a file "d". # ripmime --disable-qmail-bounce -i test_outlook.eml -d out_dir_res # ls -l ./out_dir_res/ -rw-r--r-- 1 root root 0 13 sep 13.32 d -rw--- 1 root root 442368 13 sep 13.32 mydocument.doc -rw-r--r-- 1 root root 48 13 sep 13.32 textfile0 -rw-r--r-- 1 root root 121 13 sep 13.32 textfile1 -rw-r--r-- 1 root root 167 13 sep 13.32 textfile2 The interesting thing is that: this does not happen with all the doc files but only with some. Simscan 1.4.0 (1.qt.el7) analyzes these files and due to a bug blocks the e-mail with the error "bad attachment: d" I could not replicate the problem with thunderbird: all the emails sent arrived without problems. Probably the correct solution is to compile simscan with the patch indicated in the post by Gustavo Castro. Thank you Michele Il 11/09/2018 12:44, Michele Federici ha scritto: Hi, I've found this error "Your email was rejected because it contains a bad attachment: d" in the smtp log. I read these old post http://qmailtoaster-list.qmailtoaster.narkive.com/u9RF8MRE/your-email-was-rejected-because-it-contains-a-bad-attachment-d http://gcastrop.blogspot.com/2011/02/problemas-con-adjuntos-en-simscan-con.html but I did not understand if current simscan 1.4.0 (1.qt.el7) is compiled with the patch. Can you help me? Thank you Michele- To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com - To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com -- Eric Broch White Horse Technical Consulting (WHTC)
[qmailtoaster] Encryption issue in qmailtoaster server
Hi Friends, Am facing the serious issue in outlook 2016. When i tried to configure the email in outlook 2016 it's asking encrypted connection and checked automatically and if not available then it showing unencrypted. but finally unable to configure the email account in outlook 2016 and not permitted. Do i need to update any in the server. Am using COS 6 32 and 64 bit servers. Currently configured in outlook 2010 it's working without any issue. And always showing in outlook 2010 when i open the account. Do you want to continue yes or no for the certification. Because i have configured in advanced selected Auto in outlook 2010. If i select none it was not working the email. Anyone facing the same issue. How do i rectify it in outlook 2016 and how can i stop the certificate warning message in outlook. -- *Thanks & Best Regards,Manikandan.C*
Re: [qmailtoaster] simscan - bad attachment: d
Hello I had the same issues but with some "bad attachment: t" Regards On 09/13/2018 06:02 PM, Michele Federici wrote: Hi, I have done various tests and can confirm the presence of the bug. If the doc attachment created with word 2007 (or other?) is sent through outlook 2003/2007 (or others?), sometimes ripmime wrong to extract the various parts of the email by generating a file "d". # ripmime --disable-qmail-bounce -i test_outlook.eml -d out_dir_res # ls -l ./out_dir_res/ -rw-r--r-- 1 root root 0 13 sep 13.32 d -rw--- 1 root root 442368 13 sep 13.32 mydocument.doc -rw-r--r-- 1 root root 48 13 sep 13.32 textfile0 -rw-r--r-- 1 root root 121 13 sep 13.32 textfile1 -rw-r--r-- 1 root root 167 13 sep 13.32 textfile2 The interesting thing is that: this does not happen with all the doc files but only with some. Simscan 1.4.0 (1.qt.el7) analyzes these files and due to a bug blocks the e-mail with the error "bad attachment: d" I could not replicate the problem with thunderbird: all the emails sent arrived without problems. Probably the correct solution is to compile simscan with the patch indicated in the post by Gustavo Castro. Thank you Michele Il 11/09/2018 12:44, Michele Federici ha scritto: Hi, I've found this error "Your email was rejected because it contains a bad attachment: d" in the smtp log. I read these old post http://qmailtoaster-list.qmailtoaster.narkive.com/u9RF8MRE/your-email-was-rejected-because-it-contains-a-bad-attachment-d http://gcastrop.blogspot.com/2011/02/problemas-con-adjuntos-en-simscan-con.html but I did not understand if current simscan 1.4.0 (1.qt.el7) is compiled with the patch. Can you help me? Thank you Michele- To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com - To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com