Hi,

the error is returned by the MTA smtp.1und1.de, which is first in the server list and requires the authentication:


-bash-2.05b$ telnet smtp.1und1.de 25
Trying 212.227.15.167...
Connected to smtp.1und1.de.
Escape character is '^]'.
220 212.227.15.167 (mrelayeu4) Welcome to Nemesis ESMTP server
helo creutz.net
250 mrelayeu4.kundenserver.de pleased to meet you
mail from:<[EMAIL PROTECTED]>
250 mail from: <[EMAIL PROTECTED]> ok
rcpt to:<[EMAIL PROTECTED]>
550 must be authenticated

Your local mail utility posts the message via local MTA (you mentioned postfix), which probably doesn't require authentication and allows to send the mail.

To fix the problem, just use some MTA in the 'set mailserver ...' statement which will allow you to send the mail without authentication (e.g. localhost).


Martin



Andre Creutz wrote:
Hi all,

A few days ago i updatet from Version 4.6 to the newest 4.8.1 and i changed
the settings in monitrc to:
-------schnipp-----------
set daemon      90
set logfile     /var/log/monit.log
set mailserver  smtp.1und1.de, smtp.mail.yahoo.de localhost with timeout 30
seconds
set alert       [EMAIL PROTECTED]
set mail-format {    from: [EMAIL PROTECTED]
                  subject: $SERVICE $EVENT at $DATE
                  message: Monit $ACTION $SERVICE at $DATE on $HOST.
                  Ihr freundlicher Kollege,
                  Monit
                }

# Monit http server settings:
# ---------------------------

set httpd port 2812
        ssl     enable
        pemfile "/var/certs/monit.pem"
        allowselfcertification
#       allow   localhost
        allow   creutz:*******

# Event Queue
set eventqueue
        basedir /etc/monit/
        slots 5000
--------schnapp---------------

I changed the settings "set logfile" from syslog to /var/log/monit.log
And i addet # Event Queue

Since this time monit will not send any mails to the address. It produces
this Errormessage in /var/log/monit.log:

[CEST Jun 22 10:08:33] error    : Sendmail error: 550 must be authenticated
[CEST Jun 22 10:08:33] error    : Alert handler failed, retry scheduled for
next cycle

If i try to send a mail with
mail -s testmail [EMAIL PROTECTED]
It workt perfectly and before the changes monit was sending mails without a
problem. At this reason i guess (i hope)my postfix is working fine.
Is there any help out there?? (grin) Please

Next i try the old monitrc, but the problem is still there.

Thanks a lot and
Best regards
andre



--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general

Reply via email to