Bacula-users

Re: [Bacula-users] bsmtp failing to connect to mail server

2015-08-08 15:28:10
Subject: Re: [Bacula-users] bsmtp failing to connect to mail server
From: Jerry Lowry <michaiah2007 AT gmail DOT com>
To: Heitor Faria <heitor AT bacula.com DOT br>
Date: Sat, 8 Aug 2015 12:23:31 -0700
Heitor,  Sorry for not saying this in the original text.  It does the same thing when I specify 'localhost'.

I don't really need 'tls' that is just what gmail is looking for when I try to use them as the sending mail server.

thanks

On Sat, Aug 8, 2015 at 5:16 AM, Heitor Faria <heitor AT bacula.com DOT br> wrote:
Since the move to gmail I have not been able to get the bsmtp configuration to work.  I have tried to use gmail but it requires tls. 

Jul 20 10:26:59 distress bacula-dir: 20-Jul 10:26  Message delivery ERROR: Mail
prog: bsmtp: bsmtp.c:145 Fatal malformed reply from smtp.googlemail.com: 530 5.7
.0 Must issue a STARTTLS command first. b9sm14093516ioj.6 - gsmtp
It's pretty easy to set Postfix to use TLS: http://bacula.us/authenticated-mail-sending/
So, I have configured postfix/cyrus on the backup server just to send email.  The problem I get from bsmtp now is that it can not connect to the mail server.

[root@kilchis bin]# /usr/bacula/bin/bsmtp -d 25 -h kilchis.server.com -f \"\(Bacula\) \<no-reply AT edt DOT com\>\" -s \"Bacula daemon message\" rec AT server DOT com"
If you pretend to use postfix in this machine as your mail relay service, -h (mail server address) should be localhost.
test message
"
bsmtp: bsmtp.c:338-0 Debug level = 25
bsmtp: bsmtp.c:346-0 host=kilchis.server.com
bsmtp: bsmtp.c:356-0 subject="Bacula
bsmtp: bsmtp.c:432-0 My hostname is: kilchis
bsmtp: bsmtp.c:456-0 From addr="(Bacula)
bsmtp: bsmtp.c:514-0 Failed to connect to mailhost kilchis.server.com

I can send mail from the command prompt and it works just fine. 

What am I missing?
Regards,
===========================================================================
Heitor Medrado de Faria - LPIC-III | ITIL-F |  Bacula Systems Certified Administrator II
===========================================================================


------------------------------------------------------------------------------
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users