bsmtp Windows Server

52 views
Skip to first unread message

gomi_at

unread,
Sep 23, 2019, 3:27:15 AM9/23/19
to bareos-users
Hi there, 

Another problem

bsmtp on Windows end's with errors:


The command line = CMD=C:/Program Files/Bareos/bsmtp -h localhost -f "(Bareos) <x...@xxxx.xxx>" -s "Bareos: Backup OK of bareos-fd Full" x...@xxxx.xxx

ERR=unknown error 

if i try the command manually - like: 


bsmtp -h localhost -f bareos -s test -r bareos xx...@xxx.xxx

Fatal fgets error: ERR=Invalid argument

Any ideas? 
thank you




gomi_at

unread,
Sep 23, 2019, 1:53:54 PM9/23/19
to bareos-users
Update:

bsmtp don't like -h localhost 

Now it works - but - always a error with "invalid address syntax"

"C:/Program Files/Bareos/bsmtp -h 192.168.3.10 -f \"\(Bareos\) \<%r\>\" -s \"Bareos: %t %e of %c %l\" %r"

Can someone help  me?

gomi_at

unread,
Oct 24, 2019, 5:44:31 PM10/24/19
to bareos-users
Nobody has an Idea and can help me? 

birgit.ducarroz

unread,
Oct 25, 2019, 4:54:11 AM10/25/19
to bareos-users


Am Donnerstag, 24. Oktober 2019 23:44:31 UTC+2 schrieb gomi_at:
Nobody has an Idea and can help me? 

Did you forgot the foo@ ?
 mailcommand = "/usr/bin/bsmtp -h root@localhost -f \"\(Bareos\) \<%r\>\" -s \"Bareos: %t %e of %c %l\" %r"

gomi_at

unread,
Oct 25, 2019, 5:12:47 AM10/25/19
to bareos-users
please read my first posting

WINDOWS - with linux there is no problem. 

-h = mailhost:port 

birgit.ducarroz

unread,
Oct 25, 2019, 7:46:15 AM10/25/19
to bareos-users

Am Freitag, 25. Oktober 2019 11:12:47 UTC+2 schrieb gomi_at:
please read my first posting

WINDOWS - with linux there is no problem. 

-h = mailhost:port 

Yep but the syntax should be the same:
CMD=C:/Program Files/Bareos/bsmtp -h localhost:25 -f \"\(Bareos\) \<%r\>\" -s \"Bareos: %t %e of %c %l\" %r"  
CMD=C:/Program Files/Bareos/bsmtp -h f...@bar.xx -f \"\(Bareos\) \<%r\>\" -s \"Bareos: %t %e of %c %l\" %r" 

gomi_at

unread,
Dec 7, 2019, 9:37:21 AM12/7/19
to bareos-users
Hello Birgit, 

Got it ;) 

Your String works :) 
After exactly analysis i create another string that also works - but this was also not the solution ;). 

Now comes the funny part :) 

When your OS-Language is german, then the command must be "C:/Programme/Bareos...."
no matter whether in quotes or not. 

C:/Program Files/ ends in an error. 

Thx :) 







Reply all
Reply to author
Forward
0 new messages