Re: Problem mit OPT mailsend

ms1958 <[email protected]>
Newsgroups spline.fli4l.dev
Organization spline
Message-ID <[email protected]>
Am 10.12.2025 um 10:37 schrieb Nelson Matias:
> Hallo Gruppe,
> 
> mir ist eben aufgefallen, das der cron auf dem Fli4l gemeckert hat 
> keinen MTA zu finden. Ich habe auf meinem Fli4l das OPT mailsend 
> installiert und konfiguriert.
> Aber es fehlt /usr/bin/sendmail.
> Laut der von mir gefundenen Doku zu msmtp ist dieser weitgehend 
> kompatibel zu sendmail. Das "normale" Paket bringt auch ein script mit 
> um msmtp als sendmail-Ersatz zu installieren.
> Kann das im OPT mailsend noch ergänzt werden? Laut meinem Verständnis 
> sollte ein symlink reichen.
> Aber ich habe auf dem Fli4l auch keine msmtp-Konfig-Datei gefunden. 
> Normal sollte diese in /etc/msmtprc liegen, alternativ in ~/.msmtprc (im 
> Fall vom Fli4l: /.msmtprc)
> Es gibt aber eine /etc/msmtp.conf. Diese schaut sehr nach der gesuchten 
> msmtprc aus.
> 
> Vielleicht kann sich das jemand mit mehr Know-how anschauen?
> 

Wenn die msmtp Daten in der config ok sind,
kannst mailsenjd so aufrufen mit einem Testscript:

#!/bin/sh
     From="[email protected]"
  ReplyTo="[email protected]"
       To="[email protected]"
  Subject="$HOSTNAME.lan.home Testmail"
BodyText="/tmp/bodytext.txt"
     echo "============================== "  > $BodyText
     echo "OPT_MAILSEND Testmail          " >> $BodyText
     echo "============================== " >> $BodyText
     echo ""                                >> $BodyText

     mailsend -f "$From" -r "$ReplyTo" -t "$To" -s "$Subject" -B "$BodyText"
     rm -f /tmp/bodytext.txt
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.