SMTP Auth

114 views
Skip to first unread message

Nico Haslberger

unread,
Dec 28, 2014, 8:19:43 PM12/28/14
to bareos...@googlegroups.com
Hello,
can anybody provide me a turorial or doc reference how to configure bsmtp for working with an external smtp server with authentication?

greetings
Nico

Bruno Friedmann

unread,
Dec 29, 2014, 2:50:01 AM12/29/14
to bareos...@googlegroups.com
There's no instruction available due to the fact that bsmtp as stated in documentation is a "simple" mail agent.
So no auth or fancy things.



btw you're not forced to use it, see for example in this thread there's an example of ssmtp
http://bacula.10910.n7.nabble.com/Bacula-s-bsmtp-and-gmail-td39546.html

[quote]
The simplest solution I've found is to install the ssmtp package.
This use case is quite specific, and is just what ssmtp targets:
"extremely simple MTA to get mail off the system to a mail hub", and
this handles gmail :)

Two gmail enabling config files:

cat <<EOD>/etc/ssmtp/ssmtp.conf
root=$[hidden email]
mailhub=smtp.gmail.com:587
rewriteDomain=
hostname=$[hidden email]
UseSTARTTLS=YES
AuthUser=$GMAIL_USER
AuthPass=$GMAIL_PSWD
FromLineOverride=YES # optional
EOD

cat <<EOD>/etc/ssmtp/revaliases
root:$[hidden email]:smtp.gmail.com:587
mv:$[hidden email]:smtp.gmail.com:587
EOD

Hope this helps someone else

[/end quote]


There's certainly a lot of example around.

--

Bruno Friedmann
Ioda-Net Sàrl www.ioda-net.ch

openSUSE Member & Board, fsfe fellowship
GPG KEY : D5C9B751C4653227
irc: tigerfoot

Roman Starun

unread,
Nov 19, 2017, 12:09:53 PM11/19/17
to bareos-users
понедельник, 29 декабря 2014 г., 10:50:01 UTC+3 пользователь Bruno Friedmann написал:
Got same question.
ssmtp works fine, but i don't know how to use it within Bareos.
How "mailcommand" should look like?
It seems that whatever command i use email does not contain any subject or body, because ssmtp does not allow to be used in single line command. It allows to use echo or files as a subject and body.
Reply all
Reply to author
Forward
0 new messages