Skip dot inside body

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Skip dot inside body

luistkd4

Hi, when I try send a message with a mail client and inside in the body a put a "."  the postfix send message incomplete, exemple:


data message:


"see this example is

.

my name is Miguel"


When thunderbird send this message to postfix(587), the recipient receive only the first phrase.


What can I do to skip this?

Thanks.

Reply | Threaded
Open this post in threaded view
|

Re: Skip dot inside body

luistkd4

I found where is the problem I user a altermime, and the last thing is send messa using sendmail, and it crash the messa:

#!/bin/bash
# Localize these.
INSPECT_DIR=/var/spool/altermime
SENDMAIL=/usr/sbin/sendmail
# Exit codes from <sysexits.h>
EX_TEMPFAIL=75
EX_UNAVAILABLE=69
# Clean up when done or when aborting.
trap "rm -f in.$$" 0 1 2 3 15
cd $INSPECT_DIR || { echo $INSPECT_DIR does not exist; exit $EX_TEMPFAIL; }
cat >in.$$ || { echo Cannot save mail to file; exit $EX_TEMPFAIL; }
from_address=`grep -m 1 "From:" in.$$ | cut -d "<" -f 2 | cut -d ">" -f 1`
MAILSERVER=$( /usr/bin/python3 /etc/postfix/checkUser.py $from_address )
sed -i '1s/^/X-MailServer: '"$MAILSERVER"'\n/' in.$$ || { echo Message content rejected; exit $EX_UNAVAILABLE; }
$SENDMAIL  "$@" <in.$$
exit $?

There is a way to skip yet ?


De: [hidden email] <[hidden email]> em nome de Luis Miguel Flores dos Santos <[hidden email]>
Enviado: sexta-feira, 25 de agosto de 2017 11:32:22
Para: [hidden email]
Assunto: Skip dot inside body
 

Hi, when I try send a message with a mail client and inside in the body a put a "."  the postfix send message incomplete, exemple:


data message:


"see this example is

.

my name is Miguel"


When thunderbird send this message to postfix(587), the recipient receive only the first phrase.


What can I do to skip this?

Thanks.

Reply | Threaded
Open this post in threaded view
|

Re: Skip dot inside body

luistkd4

Thanks, I found the solution setting parameter -i in sendmail.


De: [hidden email] <[hidden email]> em nome de Luis Miguel Flores dos Santos <[hidden email]>
Enviado: sexta-feira, 25 de agosto de 2017 11:40:36
Para: [hidden email]
Assunto: Re: Skip dot inside body
 

I found where is the problem I user a altermime, and the last thing is send messa using sendmail, and it crash the messa:

#!/bin/bash
# Localize these.
INSPECT_DIR=/var/spool/altermime
SENDMAIL=/usr/sbin/sendmail
# Exit codes from <sysexits.h>
EX_TEMPFAIL=75
EX_UNAVAILABLE=69
# Clean up when done or when aborting.
trap "rm -f in.$$" 0 1 2 3 15
cd $INSPECT_DIR || { echo $INSPECT_DIR does not exist; exit $EX_TEMPFAIL; }
cat >in.$$ || { echo Cannot save mail to file; exit $EX_TEMPFAIL; }
from_address=`grep -m 1 "From:" in.$$ | cut -d "<" -f 2 | cut -d ">" -f 1`
MAILSERVER=$( /usr/bin/python3 /etc/postfix/checkUser.py $from_address )
sed -i '1s/^/X-MailServer: '"$MAILSERVER"'\n/' in.$$ || { echo Message content rejected; exit $EX_UNAVAILABLE; }
$SENDMAIL  "$@" <in.$$
exit $?

There is a way to skip yet ?


De: [hidden email] <[hidden email]> em nome de Luis Miguel Flores dos Santos <[hidden email]>
Enviado: sexta-feira, 25 de agosto de 2017 11:32:22
Para: [hidden email]
Assunto: Skip dot inside body
 

Hi, when I try send a message with a mail client and inside in the body a put a "."  the postfix send message incomplete, exemple:


data message:


"see this example is

.

my name is Miguel"


When thunderbird send this message to postfix(587), the recipient receive only the first phrase.


What can I do to skip this?

Thanks.

Reply | Threaded
Open this post in threaded view
|

Re: Skip dot inside body

Wietse Venema
In reply to this post by luistkd4
Luis Miguel Flores dos Santos:
[ Charset ISO-8859-1 converted... ]

> Hi, when I try send a message with a mail client and inside in the body a put a "."  the postfix send message incomplete, exemple:
>
>
> data message:
>
>
> "see this example is
>
> .
>
> my name is Miguel"

That is a bug in the (non-Postfix) SMTP client. See RFC 5321, section
4.5.2, "Transparency".

https://tools.ietf.org/html/rfc5321#section-4.5.2

        Wietse