I am running a linux mailserver that receives mail via UUCP over TCP.
The mails are sorted into the users' mailfolders in /var/spool/mail via
procmail and are fetched from windows clients with pop3.
The problem is that some users never check if new messages arrived, so i
decided to put winpopup into the startup folder and run smbclient to
But - you guessed it - I could not figure out how to do it.
For testing, I just piped the whole message into smbclient via
joe.user: "|/usr/bin/smbclient -M winhost -d 3 > /tmp/debuglog"
/tmp/debuglog says, that 500 or so bytes are transmitted. Only winpopup
does not popup. This works perfectly with exactly the same debuglog
when run from the commandline (no matter under what uid) , e.g.
cat /var/spool/mail/joe.user|/usr/bin/smbclient -M winhost -d 3 > /tmp/debuglog
I also tried to run smbclient from .forward with the same result. When put
into /etc/aliases, smbclient is executed as user daemon, but this does
not seem to be the problem because su - daemon, cat cat /var/spool/mail[..]