Hallo Joerg,

Am 2005-03-21 11:40:03, schrieb Joerg Sommer:

> Cron ruft ssmtp mit Parametern auf, die ssmtp nicht richtig versteht oder
> umsetzt. Benenne sendmail (den Link auf ssmtp) mal in sendmail.orig um
> und setze an die Stelle von sendmail ein Skript, dass die Parameter und
> die Standardeingabe in eine Datei schreibt.
> 
> TMPFILE=$(mktemp)
> echo $* > $TEMPFILE
> tee --append $TEMPFILE | sendmail.orig
> 
> Es sollten dann entsprechende Dateien in /tmp auftauchen, in denen du mal
> schauen kannst, ob etwas auff�lliges auftaucht.

  __( '/etc/hosts' )____________________________________________________
 /
| # /etc/hosts
| #
| 127.0.0.1                               localhost            localhost
| 
| 192.168.1.11                 mail.tamay-dogan.net                 mail
| 192.168.1.11                 pop3.tamay-dogan.net                 pop3
| 192.168.1.11                 imap.tamay-dogan.net                 imap
| 192.168.1.11                 smtp.tamay-dogan.net                 smtp
| 
| 192.168.1.71    michelle1.private.tamay-dogan.net    michelle1.private
 \______________________________________________________________________

Das funktioniert einwandfrei...
Allerdings verwende ich keine /etc/hosts mehr sondern bind9.


  __( '/etc/ssmtp/ssmtp.conf' )_________________________________________
 /
| [EMAIL PROTECTED]
| 
| MailHub=smtp.tamay-dogan.net
| HostName=michelle1.private.tamay-dogan.net
| RewriteDomain=tamay-dogan.net
| FromLineOverride=YES
| RemotePort=25
| 
| [EMAIL PROTECTED]
| AuthPass=xxxxxxxxxxxx
| AuthMethod=cram-md5
| 
| UseTLS=
| UseTLSCert=
| TLSCert=
 \______________________________________________________________________

Also das ist das Setup was auf allen Maschinen mit ssmtp funktioniert.
Nur cron haut irgendwas dazwischen.

  __( '/tmp/sm_1111421341.log' )________________________________________
 /
| -i -FCronDaemon -odi -oem root
  ^^               ^^^  ^^^
  Den Parameter     |   Hier ebenfals
  gibt es hier      |   -oe (bei ssmtp "print", ignored)
  irgendwie         |   -om (bei ssmtp "send to me", default)
  nicht             |
  ????????    Ich kenne nur
              -oi (bei ssmtp default)
              -od (bei ssmtp "always interactive", ignored) 

| From: root (Cron Daemon)
| To: root
| Subject: Cron <[EMAIL PROTECTED]> /etc/init.d/tdlinuxlogos update
                 ^^^^^^^^^^^^^^
        Hmmm, wieso michelle1 ?
        Der Host ist "michelle1.private"                         
        Das k�nnte ein BUG sein, auch wenns nur im Subject steht.
        
| X-Cron-Env: <SHELL=/bin/bash>
| X-Cron-Env: <PATH=/sbin:/bin:/usr/sbin:/usr/bin>
| X-Cron-Env: <HOME=/root>
| X-Cron-Env: <LOGNAME=root>
| 
| /bin/bash: /etc/init.d/tdlinuxlogos: No such file or directory
 \______________________________________________________________________

Diese Message an ssmtp per pipe gesendet ('cat msg |ssmtp -t')
kommt auf meinem Server an.

Sprich, 'cron' fabriziert m�ll.

  __( '/tmp/sm_1111421401.log' )________________________________________
 /
| -i -FCronDaemon -odi -oem [EMAIL PROTECTED]
| From: root (Cron Daemon)
| To: [EMAIL PROTECTED]
| Subject: Cron <[EMAIL PROTECTED]> /etc/init.d/tdlinuxlogos update
| X-Cron-Env: <SHELL=/bin/bash>
| X-Cron-Env: <PATH=/sbin:/bin:/usr/sbin:/usr/bin>
| X-Cron-Env: <[EMAIL PROTECTED]>
| X-Cron-Env: <HOME=/root>
| X-Cron-Env: <LOGNAME=root>
| 
| /bin/bash: /etc/init.d/tdlinuxlogos: No such file or directory
 \______________________________________________________________________

Die erste Zeile ist ebenfals M�ll...
Die message per pipe an ssmtp verf�ttert funktioniert.

Denke, das ich meinen cron patchen werde...

Werde aber mal den Maintainer anfragen.

Das Problem ist �berigends in POTATO, WOODY, SARGE und SID.
Denke, das dies geregelt werden sollte...

> J�rg.

Greetings
Michelle

-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/ 
Michelle Konzack   Apt. 917                  ICQ #328449886
                   50, rue de Soultz         MSM LinuxMichi
0033/3/88452356    67100 Strasbourg/France   IRC #Debian (irc.icq.com)

Attachment: signature.pgp
Description: Digital signature

Antwort per Email an