Hallo zusammen,
erst einmal muss ich sagen das dieses Forum echt klasse ist.
Dennoch hab ich ein kleineres Problem wo ich aktuell nicht weiter komme.
Ich habe mir einen Debian installiert und darauf noch ein ICINGA.
Die Checks und alles laufen nur der Nachrichten Versand per Email will nicht gehen.
Ich habe zusätzlich Postfix installiert und als Sattelite eingerichtet.
Die Emails sollen über einen externen Mailserver mit Authentifizierung versendet werden.
Wo gebe ich diese Informationen genau an?
Wenn ich mir per telnet etwas an mich sende funktioniert das ganze.
Einen lieben Gruß
Icinga Emailversand
Re: Icinga Emailversand
Huhu,
ich hab jetzt die Authentifizierung mit eingebaut:
smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noplaintext noanonymous
smtp_sasl_password_maps = hash:/etc/postfix/sasl_password
Danach habe ich die Datei sasl_password erstellt und folgendes eingetragen:
smtp.mailanbieter.de username:password
Leider kommen keine Mails an. Folgendes sagt mir das Mail.log wenn ich aus Icinga eine Meldung absetze:
ich hab jetzt die Authentifizierung mit eingebaut:
smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noplaintext noanonymous
smtp_sasl_password_maps = hash:/etc/postfix/sasl_password
Danach habe ich die Datei sasl_password erstellt und folgendes eingetragen:
smtp.mailanbieter.de username:password
Leider kommen keine Mails an. Folgendes sagt mir das Mail.log wenn ich aus Icinga eine Meldung absetze:
Code: Alles auswählen
root@Hostname :/var/log# tail -f mail.log
Oct 23 09:21:48 Hostname postfix/qmgr[28223]: 51C3E5F786: from=<>, size=2863, nrcpt=1 (queue active)
Oct 23 09:21:48 Hostname postfix/bounce[28712]: 29C155F782: sender non-delivery notification: 535605F770
Oct 23 09:21:48 Hostname postfix/qmgr[28223]: 535605F770: from=<>, size=2863, nrcpt=1 (queue active)
Oct 23 09:21:48 Hostname postfix/qmgr[28223]: 29C155F782: removed
Oct 23 09:21:55 Hostname postfix/smtp[28710]: 4F6C95F785: to=<nagios@mailanbieter.com>, relay=mail.mailanbieter.com[85.xxx.xxx.xxx]:25, delay=7.2, delays=0.02/0/7.1/0.04, dsn=5.1.1, status=bounced (host mail.mailanbieter.com[85.xxx.xxx.xxx] said: 550 5.1.1 <nagios@mailanbieter.com>: Recipient address rejected: User unknown in virtual alias table (in reply to RCPT TO command))
Oct 23 09:21:55 Hostname postfix/smtp[28711]: 51C3E5F786: to=<nagios@mailanbieter.com>, relay=mail.mailanbieter.com[85.xxx.xxx.xxx]:25, delay=7.2, delays=0.02/0/7.1/0.04, dsn=5.1.1, status=bounced (host mail.mailanbieter.com[85.xxx.xxx.xxx] said: 550 5.1.1 <nagios@mailanbieter.com>: Recipient address rejected: User unknown in virtual alias table (in reply to RCPT TO command))
Oct 23 09:21:55 Hostname postfix/smtp[28709]: 535605F770: to=<nagios@mailanbieter.com>, relay=mail.mailanbieter.com[85.xxx.xxx.xxx]:25, delay=7.2, delays=0.02/0/7.1/0.04, dsn=5.1.1, status=bounced (host mail.mailanbieter.com[85.xxx.xxx.xxx] said: 550 5.1.1 <nagios@mailanbieter.com>: Recipient address rejected: User unknown in virtual alias table (in reply to RCPT TO command))
Oct 23 09:21:59 Hostname postfix/qmgr[28223]: 51C3E5F786: removed
Oct 23 09:21:59 Hostname postfix/qmgr[28223]: 4F6C95F785: removed
Oct 23 09:21:59 Hostname postfix/qmgr[28223]: 535605F770: removed
Oct 23 09:30:34 Hostname postfix/pickup[28222]: C6DFA5F77E: uid=104 from=<nagios>
Oct 23 09:30:34 Hostname postfix/cleanup[29598]: C6DFA5F77E: message-id=<20141023143034.C6DFA5F77E@debian>
Oct 23 09:30:34 Hostname postfix/qmgr[28223]: C6DFA5F77E: from=<nagios@mailanbieter.com>, size=504, nrcpt=1 (queue active)
Oct 23 09:30:34 Hostname postfix/smtp[29600]: warning: database /etc/postfix/sasl_password.db is older than source file /etc/postfix/sasl_password
Oct 23 09:30:35 Hostname postfix/smtp[29600]: C6DFA5F77E: to=<Icingamail@mailanbieter.com>, relay=mail.mailanbieter.com[85.xxx.xxx.xxx]:25, delay=0.24, delays=0.02/0.01/0.15/0.06, dsn=5.7.1, status=bounced (host mail.mailanbieter.com[85.xxx.xxx.xxx] said: 550 5.7.1 <Icingamail@mailanbieter.com>: Recipient address rejected: temporarily blocked because of previous errors - retrying too fast. penalty: 30 seconds x 0 retries. (in reply to RCPT TO command))
Oct 23 09:30:39 Hostname postfix/cleanup[29598]: 146B35F77F: message-id=<20141023143039.146B35F77F@debian>
Oct 23 09:30:39 Hostname postfix/bounce[29601]: C6DFA5F77E: sender non-delivery notification: 146B35F77F
Oct 23 09:30:39 Hostname postfix/qmgr[28223]: 146B35F77F: from=<>, size=2561, nrcpt=1 (queue active)
Oct 23 09:30:39 Hostname postfix/qmgr[28223]: C6DFA5F77E: removed
Oct 23 09:30:39 Hostname postfix/smtp[29600]: 146B35F77F: to=<nagios@mailanbieter.com>, relay=mail.mailanbieter.com[85.xxx.xxx.xxx]:25, delay=0.15, delays=0/0/0.11/0.03, dsn=5.1.1, status=bounced (host mail.mailanbieter.com[85.xxx.xxx.xxx] said: 550 5.1.1 <nagios@mailanbieter.com>: Recipient address rejected: User unknown in virtual alias table (in reply to RCPT TO command))
Oct 23 09:30:43Hostname postfix/qmgr[28223]: 146B35F77F: removed
Re: Icinga Emailversand
Der Smarthost mail.mailanbieter.com ist der Meinung, dass es den Empfänger nagios@mailanbieter.com nicht gibt. Ist diese Adresse gültig?labida hat geschrieben:Oct 23 09:21:55 Hostname postfix/smtp[28710]: 4F6C95F785: to=<nagios@mailanbieter.com>, relay=mail.mailanbieter.com[85.xxx.xxx.xxx]:25, delay=7.2, delays=0.02/0/7.1/0.04, dsn=5.1.1, status=bounced (host mail.mailanbieter.com[85.xxx.xxx.xxx] said: 550 5.1.1 <nagios@mailanbieter.com>: Recipient address rejected: User unknown in virtual alias table (in reply to RCPT TO command))
Postfix informiert Dich, dass Du nach den Änderungen an /etc/postfix/sasl_password kein postmap ausgeführt hast.labida hat geschrieben:Oct 23 09:30:34 Hostname postfix/smtp[29600]: warning: database /etc/postfix/sasl_password.db is older than source file /etc/postfix/sasl_password
Unabhängig von Deinem Problem: Du definierst smtp.mailanbieter.de in sasl_password, in den Logs steht jedoch mail.mailanbieter.com. Das sollte in der Regel identisch sein.labida hat geschrieben:Code: Alles auswählen
Oct 23 09:30:39 Hostname postfix/smtp[29600]: 146B35F77F: to=<nagios@mailanbieter.com>, relay=mail.mailanbieter.com[85.xxx.xxx.xxx]:25, delay=0.15, delays=0/0/0.11/0.03, dsn=5.1.1, status=bounced (host mail.mailanbieter.com[85.xxx.xxx.xxx] said: 550 5.1.1 <nagios@mailanbieter.com>: Recipient address rejected: User unknown in virtual alias table (in reply to RCPT TO command))