#2086 Command error when sending mail

1.200
open
5
2005-05-20
2005-05-20
No

When doing scheduled backups and the setting "Email
result to address" is set, an incomplete SMTP command
sequence is sent to the local smtp server (on
localhost), causing the mail to fail.

Here is a transcript of the smtp dialogue:
220 mail.***** ESMTP Exim 4.50 Thu, 19 May 2005
08:30:47 +0200

helo mail.*****

250 mail.***** Hello localhost [127.0.0.1]

mail from: <webmin@mail.*****>

250 OK

data

503 valid RCPT command must precede DATA

421 mail.***** lost input connection

Obviously, no RCPT command is given.

Since there is no configuration within the module where
and how to send the mail, it must be getting this from
another module. I do not know enough about
Webmin to dig through the source, so maybe someone can
clarify if this is a bug or a misconfiguration.

Discussion

  • Jamie Cameron

    Jamie Cameron - 2005-05-20

    Logged In: YES
    user_id=129364

    Did you enter an email address to send the backup output
    to? From the error message, it looks like no address was
    entered ... or perhaps one in an odd format.

     
  • Andreas Heinlein

    Logged In: YES
    user_id=1282145

    Sorry, messed up the modules... The error came from the
    Module "Filesystem Backup". I mixed it with another problem
    with the "Backup Configuration Files", where I'm not yet
    quite sure if it's a bug or not.

    Anyway, the module "Filesystem Backup" has an option "Send
    mail via SMTP server". If set to "localhost", the above
    error occurs. I now installed the "Read User Mail" module
    (though I don't really need it because it does not work very
    well with exim and Maildirs) and set this option to "Read
    User Mail Module", now everything is OK.

     
  • Jamie Cameron

    Jamie Cameron - 2005-05-25

    Logged In: YES
    user_id=129364

    What exactly did you enter as the address to send to? The
    problem may be that Webmin cannot parse it properly ..

     
  • Nobody/Anonymous

    Logged In: NO

    Hello I've the same pb, in "System and Server Status" I send
    a mail to root alias, that is associated with 2 valid mail
    addresses.

    It worked fine before, I've upgrade Webmin to 1.220 version.

    Can you help me ?

    Regards,

    Sam.

    Error
    -----
    SMTP command <tt>data
    </tt> failed : <tt>503 Issue RCPT TO: command before DATA
    command
    </tt>
    -----

     
  • Jamie Cameron

    Jamie Cameron - 2005-07-23

    Logged In: YES
    user_id=129364

    One possible solution is to go to the Read User Mail module,
    click on Module Config, and set the 'Send mail using' option
    to 'Mail server program'.

     
  • Nobody/Anonymous

    Logged In: NO

    Hi Jamie,

    In the read User Mail module, the mail server installed is
    sendmail and the "Send mail using" option is already set to
    "Mail server program". What's wrong with my config ?

    To solve quickly the problem, I can downgrade my webmin
    version to 1.170 with the command "rpm --oldpackage <webmin
    1.170 rpm version>" What do you think about this ? Is it
    dangerous ?

    Regards, and many thanks for your support,

    Sam

     
  • Nobody/Anonymous

    Logged In: NO

    Hi Jamie,

    In the read User Mail module, the mail server installed is
    sendmail and the "Send mail using" option is already set to
    "Mail server program". What's wrong with my config ?

    To solve quickly the problem, I can downgrade my webmin
    version to 1.170 with the command "rpm --oldpackage <webmin
    1.170 rpm version>" What do you think about this ? Is it
    dangerous ?

    Regards, and many thanks for your support,

    Sam

     
  • Jamie Cameron

    Jamie Cameron - 2005-07-26

    Logged In: YES
    user_id=129364

    Make sure that on the Scheduled Monitoring page of the
    status module, the 'Send mail via' option is set to 'Local
    sendmail executable' as well ..

     
  • Nobody/Anonymous

    Logged In: NO

    Hello,

    To sum up the problem :

    1) In Scheduled Monitoring page : "Send mail via" option is
    now set to "Local sendmail executable" and "Email status"
    report to root mail-alias (that forward email to 2 valid
    mail addresses)

    2) In "Read User Mail" module : "Send mail using" option is
    set to "Mail server program" and the program : sendmail

    3) When a system status is down, it doesn't send mail to
    root alias.

    4) We still receive the error mail from monitor.pl :

    Error
    -----
    SMTP command <tt>data
    </tt> failed : <tt>503 Issue RCPT TO: command before DATA
    command
    </tt>
    -----

    Sam

     
  • Nobody/Anonymous

    Logged In: NO

    Sorry,

    If I do the 1 (In Scheduled Monitoring page : "Send mail
    via" option is
    now set to "Local sendmail executable") I do not receive the
    error mail as mentioned in 4)

    Regards,

    Sam

     
  • Nobody/Anonymous

    Logged In: NO

    I wasn't clear il my lasts mail :

    To sum up the problem :

    1) In Scheduled Monitoring page : "Send mail via" option is
    now set to "Local sendmail executable" and "Email status"
    report to root mail-alias (that forward email to 2 valid
    mail addresses)

    2) In "Read User Mail" module : "Send mail using" option is
    set to "Mail server program" and the program : sendmail

    3) When a system status is down, it doesn't send mail to
    root alias.

    4) I DO NOT receive the error mail from monitor.pl too :

    Error
    -----
    SMTP command <tt>data
    </tt> failed : <tt>503 Issue RCPT TO: command before DATA
    command
    </tt>

    -----

    Sam

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks