smtplib data error

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • yazzoo

    smtplib data error

    Does anyone know what causes an SMTPLIB DataError?

    The only thing I can find in the manual is
    exception SMTPDataError
    The SMTP server refused to accept the message data.

    My problem is a previously functioning script suddenly failed last week.
    My ISP thinks it maybe something to do with upgrading CPanel on their
    server -- maybe a library was missed, but when I try and execute a
    script I get...

    Traceback (most recent call last): File "test-py.cgi", line 790, in ?
    sendemail(Email From, EmailTo, emsg) File "test-py.cgi", line 20, in
    sendemail failed = server.sendmail (EmailFrom, EmailTo, emsg) File
    "/usr/lib/python2.2/smtplib.py", line 685, in sendmail raise
    SMTPDataError(c ode, resp) smtplib.SMTPDat aError: (550, 'Administrative
    prohibition')

    Thanks for any suggestions.

    Lester.
  • Gerardo Herzig -Departamento de Proyectos Especial

    #2
    Re: smtplib data error

    If the drugs i got are still working, `550' error code stands "No soup for
    you!!" (Relaying Denied). Maybe the IP in your web server is not into the
    sendmail's access configuration file.

    Gerardo
    [color=blue]
    > Does anyone know what causes an SMTPLIB DataError?
    >
    > The only thing I can find in the manual is
    > exception SMTPDataError
    > The SMTP server refused to accept the message data.
    >
    > My problem is a previously functioning script suddenly failed last week.
    > My ISP thinks it maybe something to do with upgrading CPanel on their
    > server -- maybe a library was missed, but when I try and execute a
    > script I get...
    >
    > Traceback (most recent call last): File "test-py.cgi", line 790, in ?
    > sendemail(Email From, EmailTo, emsg) File "test-py.cgi", line 20, in
    > sendemail failed = server.sendmail (EmailFrom, EmailTo, emsg) File
    > "/usr/lib/python2.2/smtplib.py", line 685, in sendmail raise
    > SMTPDataError(c ode, resp) smtplib.SMTPDat aError: (550, 'Administrative
    > prohibition')
    >
    > Thanks for any suggestions.
    >
    > Lester.[/color]

    --
    Gerardo Herzig
    Departamento de Proyectos Especiales e Internet
    Facultad de Medicina
    U.B.A.

    Comment

    • yazzoo

      #3
      Re: smtplib data error

      Gerardo Herzig -Departamento de Proyectos Especiales e Internet-
      Facultad de Medicina wrote:
      [color=blue]
      > If the drugs i got are still working, `550' error code stands "No soup for
      > you!!" (Relaying Denied). Maybe the IP in your web server is not into the
      > sendmail's access configuration file.
      >
      > Gerardo
      >
      >[color=green]
      >>Does anyone know what causes an SMTPLIB DataError?
      >>
      >>The only thing I can find in the manual is
      >>exception SMTPDataError
      >> The SMTP server refused to accept the message data.
      >>
      >>My problem is a previously functioning script suddenly failed last week.
      >> My ISP thinks it maybe something to do with upgrading CPanel on their
      >>server -- maybe a library was missed, but when I try and execute a
      >>script I get...
      >>
      >>Traceback (most recent call last): File "test-py.cgi", line 790, in ?
      >>sendemail(Ema ilFrom, EmailTo, emsg) File "test-py.cgi", line 20, in
      >>sendemail failed = server.sendmail (EmailFrom, EmailTo, emsg) File
      >>"/usr/lib/python2.2/smtplib.py", line 685, in sendmail raise
      >>SMTPDataError (code, resp) smtplib.SMTPDat aError: (550, 'Administrative
      >>prohibition ')
      >>
      >>Thanks for any suggestions.
      >>
      >>Lester.[/color]
      >
      >[/color]
      Thanks, it turns out that the ISP upgraded their smtp server software
      which breaks smtplib, I guess. They suggest I use sendmail. The
      traceback above though seems to suggest that smtplib uses sendmail, so I
      don't know whether this will resolve or not

      Thanks again for your suggestions
      Lester

      Comment

      • Peter Hansen

        #4
        Re: smtplib data error

        yazzoo wrote:[color=blue][color=green][color=darkred]
        >>> Traceback (most recent call last): File "test-py.cgi", line 790, in ?
        >>> sendemail(Email From, EmailTo, emsg) File "test-py.cgi", line 20, in
        >>> sendemail failed = server.sendmail (EmailFrom, EmailTo, emsg) File
        >>> "/usr/lib/python2.2/smtplib.py", line 685, in sendmail raise
        >>> SMTPDataError(c ode, resp) smtplib.SMTPDat aError: (550, 'Administrative
        >>> prohibition')[/color]
        >>[/color]
        > The traceback above though seems to suggest that smtplib uses sendmail[/color]

        No it doesn't. Rather it suggests there is a method on the
        server object called sendmail() and that it is raising the
        exception shown. You can check the source: smtplib.py is
        right there on your hard drive.

        -Peter

        Comment

        Working...