Loading ...
Sorry, an error occurred while loading the content.

Re: Problem with EOM of the sendmail command

Expand Messages
  • Wietse Venema
    ... man 1 sendmail ... -i When reading a message from standard input, don t treat a line with only a . character as the end of input. ... -oi When
    Message 1 of 2 , Jul 31, 2007
    • 0 Attachment
      Bauer, Joseph:
      > Hi,
      >
      > I' am using altermime as a filter. The mails are stored in a spool
      > directory and are then altered. When altermime is reinjecting the mail
      > it uses /usr/sbin/sendmail.
      >
      > My Problem is that messages containing a single Dot on a line are
      > truncated. As this is the normal EOM command, I thought that a second
      > dot is escaping the first one (as in normal SMTP protocol), but it
      > doesn't.

      man 1 sendmail
      ...
      -i When reading a message from standard input, don't treat a line
      with only a . character as the end of input.
      ...
      -oi When reading a message from standard input, don't treat a line
      with only a . character as the end of input.

      Wietse

      > ==============================
      > Following my test:
      >
      > >cat << EOF | /usr/sbin/sendmail 127.0.0.1 -f sender@... --
      > recipient@...
      > Subject: Test with Dots
      > dotted line
      > ..
      > one dot
      > .
      > one line after dot
      > EOF
      >
      > ==============================
      > This is the resulting message:
      >
      > dotted line
      > ..
      > one dot
      >
      > ==============================
      >
      > Is there another dot escaping machanism, which I should use? Can I use
      > another program for mail reinjection?
      >
      > Thanks for your time in advance
      >
      > Joseph
      >
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.