Problemas ao enviar email

284 views
Skip to first unread message

Gabriel

unread,
May 24, 2013, 8:23:21 AM5/24/13
to bacula-ba...@googlegroups.com
Bom dia a todos !!!!

Galera seguinte estou tentando configurar o sistema de email do bacula e estou recebendo essa mensagem.

This is the mail system at host lx-backup.localdomain.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

                   The mail system

<-...@lx-backup.localdomain> (expanded from <-o>): bad address syntax

<-...@lx-backup.localdomain> (expanded from <-s>): bad address syntax

<-...@lx-backup.localdomain> (expanded from <-u>): bad address syntax

<-...@lx-backup.localdomain> (expanded from <-xp>): bad address syntax

<-...@lx-backup.localdomain> (expanded from <-xu>): bad address syntax

<tls=y...@lx-backup.localdomain> (expanded from <tls=yes>): unknown user:
    "tls=yes"

<o...@lx-backup.localdomain> (expanded from <of>): unknown user: "of"

<"Bacula:Backup"@lx-backup.localdomain> (expanded from <"Bacula:Backup">):
    unknown user: "bacula:backup"

<O...@lx-backup.localdomain> (expanded from <OK>): unknown user: "ok"

<bdpr...@lx-backup.localdomain> (expanded from <bdprod-fd>): unknown user:
    "bdprod-fd"

<REME...@lx-backup.localdomain> (expanded from <REMETENTE>): unknown user:
    "remetente"

<Differ...@lx-backup.localdomain> (expanded from <Differential>): unknown
    user: "differential"

<smtp.gm...@lx-backup.localdomain> (expanded from <smtp.gmail.com>):
    unknown user: "smtp.gmail.com"

<gab...@cmcsolucoes.com.br>: host mx.u.inova.com.br[177.154.154.70] said: 554
    5.7.1 ERROR: Mail Refused - <187.6.215.228> - See
    http://csi.cloudmark.com/reset-request/ ; Poor Reputation Sender (in reply
    to RCPT TO command)


Reporting-MTA: dns; lx-backup.localdomain
X-Postfix-Queue-ID: 2F964CC163C
X-Postfix-Sender: rfc822; gabriel...@gmail.com
Arrival-Date: Fri, 24 May 2013 00:21:33 -0300 (BRT)

Final-Recipient: rfc822; -...@lx-backup.localdomain
Original-Recipient: rfc822; -o
Action: failed
Status: 5.1.3
Diagnostic-Code: X-Postfix; bad address syntax

Final-Recipient: rfc822; -...@lx-backup.localdomain
Original-Recipient: rfc822; -s
Action: failed
Status: 5.1.3
Diagnostic-Code: X-Postfix; bad address syntax

Final-Recipient: rfc822; -...@lx-backup.localdomain
Original-Recipient: rfc822; -u
Action: failed
Status: 5.1.3
Diagnostic-Code: X-Postfix; bad address syntax

Final-Recipient: rfc822; -...@lx-backup.localdomain
Original-Recipient: rfc822; -xp
Action: failed
Status: 5.1.3
Diagnostic-Code: X-Postfix; bad address syntax

Final-Recipient: rfc822; -...@lx-backup.localdomain
Original-Recipient: rfc822; -xu
Action: failed
Status: 5.1.3
Diagnostic-Code: X-Postfix; bad address syntax

Final-Recipient: rfc822; tls=y...@lx-backup.localdomain
Original-Recipient: rfc822; tls=yes
Action: failed
Status: 5.1.1
Diagnostic-Code: X-Postfix; unknown user: "tls=yes"

Final-Recipient: rfc822; o...@lx-backup.localdomain
Original-Recipient: rfc822; of
Action: failed
Status: 5.1.1
Diagnostic-Code: X-Postfix; unknown user: "of"

Final-Recipient: rfc822; "Bacula:Backup"@lx-backup.localdomain
Original-Recipient: rfc822; "Bacula:Backup"
Action: failed
Status: 5.1.1
Diagnostic-Code: X-Postfix; unknown user: "bacula:backup"

Final-Recipient: rfc822; O...@lx-backup.localdomain
Original-Recipient: rfc822; OK
Action: failed
Status: 5.1.1
Diagnostic-Code: X-Postfix; unknown user: "ok"

Final-Recipient: rfc822; bdpr...@lx-backup.localdomain
Original-Recipient: rfc822; bdprod-fd
Action: failed
Status: 5.1.1
Diagnostic-Code: X-Postfix; unknown user: "bdprod-fd"

Final-Recipient: rfc822; REME...@lx-backup.localdomain
Original-Recipient: rfc822; REMETENTE
Action: failed
Status: 5.1.1
Diagnostic-Code: X-Postfix; unknown user: "remetente"

Final-Recipient: rfc822; xxxx...@lx-backup.localdomain
Original-Recipient: rfc822; xxxxxxxxxx
Action: failed
Status: 5.1.1
Diagnostic-Code: X-Postfix; unknown user: "xxxxxxxxxxx"

Final-Recipient: rfc822; Differ...@lx-backup.localdomain
Original-Recipient: rfc822; Differential
Action: failed
Status: 5.1.1
Diagnostic-Code: X-Postfix; unknown user: "differential"

Final-Recipient: rfc822; smtp.gm...@lx-backup.localdomain
Original-Recipient: rfc822; smtp.gmail.com
Action: failed
Status: 5.1.1
Diagnostic-Code: X-Postfix; unknown user: "smtp.gmail.com"

Final-Recipient: rfc822; gab...@cmcsolucoes.com.br
Action: failed
Status: 5.7.1
Remote-MTA: dns; mx.u.inova.com.br
Diagnostic-Code: smtp; 554 5.7.1 ERROR: Mail Refused - <187.6.215.228> - See
    http://csi.cloudmark.com/reset-request/ ; Poor Reputation Sender


Segue a configuração:

Onde o xxxxxxxxx e a senha.

Os emails ficam sempre na caixa de correio do gmail não chegam no outro email =\

Não entendo pq não funciona o bsmtp (ou como configura ele), peguei essa configuração do sendmail aqui mesmo na lista de um topico mais antigo que algum colega estava com dificuldades em fazer funcionar o envio de emails.


Messages {
        Name = daemon-messages
        ##Mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(backup cmc\) %r\" -s \"Mensagem do sistema de backup\" %r"
        mailcommand = "/usr/sbin/sendmail -f gabriel...@gmail.com -t %r -u \"REMETENTE Bacula: %t %e of %c %l\" -s smtp.gmail.com -o tls=yes -xu gabriel...@gmail.com -xp xxxxxxxxxx"
        Mail = gab...@cmcsolucoes.com.br = all, !skipped
        Console = all, !skipped, !saved
        Append = "/var/lib/bacula/log" = all, !skipped
}

Messages {
        Name = job-messages
##      Mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(CMC\) %r\" -s \"Sistema de backup: %t %e of %c %l\" %r"
        mailcommand = "/usr/sbin/sendmail -f gabriel...@gmail.com -t %r -u \"REMETENTE Bacula: %t %e of %c %l\" -s smtp.gmail.com -o tls=yes -xu gabriel...@gmail.com -xp xxxxxxxxxxx"
        OperatorCommand = "/usr/sbin/bsmtp -h localhost -f  \"\(Intech\) %r\" -s \"Sistema de backup: Intervenção Necessaria para %j\" %r"
        Mail = gab...@cmcsolucoes.com.br = all, !skipped
        Mail on error = gab...@cmcsolucoes.com.br = all, !skipped
        Operator = gab...@cmcsolucoes.com.br = mount
        Console = all, !skipped, !saved
        Append = "/var/lib/bacula/log" = all, !skipped
        Catalog = all, !skipped, !saved


att,

Gabriel

Ana Emília

unread,
May 24, 2013, 10:48:31 AM5/24/13
to bacula-ba...@googlegroups.com
Oi Gabriel,

Em vez de usar "/usr/bin/sendmail", tenta usar o "/usr/bin/mail".
Para você verificar se o bsmpt está instalado, executa "/.../bacula/bin/bsmtp". Acho que ele é como o btape, bscan, etc., quando você instala o director ele é instalado também.
Se você tiver o bsmtp instalado, a linha que tem no manual funcionou comigo:

mailcommand = "bacula/bin/bsmtp -h mail.example.com -f \"\(Bacula\) %r\" -s \"Bacula: %t %e of %c %l\" %r"

Vc pode fazer testes na linha de comando, antes de incluir no seu director.

Outro detalhe, é que se seu remetente e destinatários são iguais, não sei se o gmail tem alguma política SPF pra bloquear isso...

[]s
Ana



El viernes, 24 de mayo de 2013 09:23:21 UTC-3, Gabriel Franca escribió:
Bom dia a todos !!!!

Galera seguinte estou tentando configurar o sistema de email do bacula e estou recebendo essa mensagem.

This is the mail system at host lx-backup.localdomain.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

                   The mail system

<...@lx-backup.localdomain> (expanded from <-o>): bad address syntax

<...@lx-backup.localdomain> (expanded from <-s>): bad address syntax

<...@lx-backup.localdomain> (expanded from <-u>): bad address syntax

<-...@lx-backup.localdomain> (expanded from <-xp>): bad address syntax

<-...@lx-backup.localdomain> (expanded from <-xu>): bad address syntax

<tls...@lx-backup.localdomain> (expanded from <tls=yes>): unknown user:
    "tls=yes"

<...@lx-backup.localdomain> (expanded from <of>): unknown user: "of"

<"Bacula:Backup"@lx-backup.localdomain> (expanded from <"Bacula:Backup">):
    unknown user: "bacula:backup"

<...@lx-backup.localdomain> (expanded from <OK>): unknown user: "ok"

<bdpr...@lx-backup.localdomain> (expanded from <bdprod-fd>): unknown user:
    "bdprod-fd"

<REME...@lx-backup.localdomain> (expanded from <REMETENTE>): unknown user:
    "remetente"

<Diffe...@lx-backup.localdomain> (expanded from <Differential>): unknown
    user: "differential"

<smtp.g...@lx-backup.localdomain> (expanded from <smtp.gmail.com>):
    unknown user: "smtp.gmail.com"

Original-Recipient: rfc822; -xu
Action: failed
Status: 5.1.3
Diagnostic-Code: X-Postfix; bad address syntax

Final-Recipient: rfc822; tls...@lx-backup.localdomain

Alisson Rafael Marques da Silva

unread,
May 24, 2013, 1:59:17 PM5/24/13
to bacula-ba...@googlegroups.com
Resolvi meu problema para envio de e-mails no Bacula através do sendEmail. Substitui as seguintes linhas:
 
 mailcommand = "/usr/local/bin/sendEmail -s server:587 -f \"(Bacula1\) \<em...@email.com.br\>\"  -u \"Bacula: %t %e of %c %l\" -t %r -o tls=yes -xu usuario -xp senha -m"
 operatorcommand = "/usr/local/bin/sendEmail -s server:587 -f \"\(Bacula2\) \<
em...@email.com.br\>\"  -u \"Bacula: Intervention needed for %j\" -t %r -o tls=yes -xu usuario -xp senha -m "

 mailcommand = "/usr/local/bin/sendEmail -s server:587 -f \"(Bacula\) \<em...@email.com.br\>\" -u \"Bacula daemon message\" -t %r  -o tls=yes -xu usuario -xp senha -m"
 
Caso queiram colocar com e-mail como cópia deve ser adicionada a seguinte opção: -cc
 
mailcommand = "/usr/local/bin/sendEmail -s server:587 -f \"(Bacula\) \<em...@email.com.br\>\" -u \"Bacula daemon message\" -t %r -o tls=yes -xu usuario -xp senha -cc ema...@email.com.br -m"
 
A opçao: - o tls foi usada devida a necessidade de autenticação pelo servidor, no meu caso o GMAIL,


Em sexta-feira, 24 de maio de 2013 09h23min21s UTC-3, Gabriel Franca escreveu:
Bom dia a todos !!!!

Galera seguinte estou tentando configurar o sistema de email do bacula e estou recebendo essa mensagem.

This is the mail system at host lx-backup.localdomain.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

                   The mail system

<...@lx-backup.localdomain> (expanded from <-o>): bad address syntax

<...@lx-backup.localdomain> (expanded from <-s>): bad address syntax

<...@lx-backup.localdomain> (expanded from <-u>): bad address syntax

<-...@lx-backup.localdomain> (expanded from <-xp>): bad address syntax

<-...@lx-backup.localdomain> (expanded from <-xu>): bad address syntax

<tls...@lx-backup.localdomain> (expanded from <tls=yes>): unknown user:
    "tls=yes"

<...@lx-backup.localdomain> (expanded from <of>): unknown user: "of"

<"Bacula:Backup"@lx-backup.localdomain> (expanded from <"Bacula:Backup">):
    unknown user: "bacula:backup"

<...@lx-backup.localdomain> (expanded from <OK>): unknown user: "ok"

<bdpr...@lx-backup.localdomain> (expanded from <bdprod-fd>): unknown user:
    "bdprod-fd"

<REME...@lx-backup.localdomain> (expanded from <REMETENTE>): unknown user:
    "remetente"

<Diffe...@lx-backup.localdomain> (expanded from <Differential>): unknown
    user: "differential"

<smtp.g...@lx-backup.localdomain> (expanded from <smtp.gmail.com>):
    unknown user: "smtp.gmail.com"

Original-Recipient: rfc822; -xu
Action: failed
Status: 5.1.3
Diagnostic-Code: X-Postfix; bad address syntax

Final-Recipient: rfc822; tls...@lx-backup.localdomain

Pedro Borges

unread,
May 25, 2013, 5:39:57 AM5/25/13
to bacula-ba...@googlegroups.com

Gabriel,

Se seu, MTA estiver usando a porta 587, vc deve informar isso no config do bacula   da seguinte forma:
mailcommand = ..... -h localhost:587...

Por padrão os clientes vão continuar a  enviar as mensages par a porta 25 até esta alteração ser feita.

Att,

--
Você está recebendo esta mensagem porque se inscreveu no grupo "Bacula Backup-Pt-Br" dos Grupos do Google.
Para cancelar a inscrição neste grupo e parar de receber seus e-mails, envie um e-mail para bacula-backup-p...@googlegroups.com.
Para postar neste grupo, envie um e-mail para bacula-ba...@googlegroups.com.
Visite este grupo em http://groups.google.com/group/bacula-backup-pt-br?hl=pt-BR.
Para ver esta discussão na web, acesse https://groups.google.com/d/msgid/bacula-backup-pt-br/40c6a8ce-81df-44ec-9cf6-ef34ff2c153b%40googlegroups.com?hl=pt-BR.
Para obter mais opções, acesse https://groups.google.com/groups/opt_out.
 
 
Reply all
Reply to author
Forward
0 new messages