O SMTP do Sendmail não está funcionando no servidor apache2 [Meu nome de host não qualificado (X) desconhecido]

1

Eu recentemente fiz uma tarefa para o site da minha equipe de desenvolvimento (ironfi.st), no qual eu configurei um servidor de correio SMTP em um servidor web apache2. Eu usei o sendmail para completar a tarefa junto com um plugin WordPress SMTP chamado WP-MAIL-SMTP para permitir a funcionalidade de uma página de contato em nosso site. No entanto, o problema atual que estou enfrentando é que nenhum email será enviado pelo servidor.

Uma das razões pelas quais escolhi o sendmail é devido às suas etapas de configuração simples. Então estou tendo problemas para identificar o que eu poderia ter feito incorretamente. Eu me conectei ao servidor via Ubuntu e instalei o sendmail nele. Depois disso, executei a configuração e fui editar o arquivo hosts em / etc / hosts.

Abaixo está uma cópia do que eu coloquei no arquivo hosts: 127.0.1.1 ironfi.st ironfi.st 127.0.0.1 localhost localhost.localdomain ironfi.st

Ao fazer isso, testei o servidor SMTP usando o recurso "enviar e-mail de teste" que vem com o plugin WP que estou usando. Como dito anteriormente, o email não foi enviado. Comecei a ler os logs que o plugin cuspiu. No entanto, essa área não é necessariamente minha área habilitada, então posso ter perdido alguma coisa nos logs, e é por isso que estou anexando os logs que tirei diretamente do arquivo de log mais recente do servidor SMTP mail.log de / var / log e os arquivos de log do plug-in abaixo:

Registros do plug-in:

Mensagem de teste enviada

O resultado foi:

bool(false)

The full debugging output is shown below:

object(PHPMailer)#445 (75) {
  ["Version"]=>
  string(6) "5.2.14"
  ["Priority"]=>
  NULL
  ["CharSet"]=>
  string(10) "iso-8859-1"
  ["ContentType"]=>
  string(10) "text/plain"
  ["Encoding"]=>
  string(4) "8bit"
  ["ErrorInfo"]=>
  string(0) ""
  ["From"]=>
  string(14) "root@localhost"
  ["FromName"]=>
  string(9) "Root User"
  ["Sender"]=>
  string(0) ""
  ["ReturnPath"]=>
  string(0) ""
  ["Subject"]=>
  string(0) ""
  ["Body"]=>
  string(0) ""
  ["AltBody"]=>
  string(0) ""
  ["Ical"]=>
  string(0) ""
  ["MIMEBody":protected]=>
  string(0) ""
  ["MIMEHeader":protected]=>
  string(0) ""
  ["mailHeader":protected]=>
  string(0) ""
  ["WordWrap"]=>
  int(0)
  ["Mailer"]=>
  string(4) "mail"
  ["Sendmail"]=>
  string(18) "/usr/sbin/sendmail"
  ["UseSendmailOptions"]=>
  bool(true)
  ["PluginDir"]=>
  string(0) ""
  ["ConfirmReadingTo"]=>
  string(0) ""
  ["Hostname"]=>
  string(0) ""
  ["MessageID"]=>
  string(0) ""
  ["MessageDate"]=>
  string(0) ""
  ["Host"]=>
  string(9) "localhost"
  ["Port"]=>
  int(25)
  ["Helo"]=>
  string(0) ""
  ["SMTPSecure"]=>
  string(0) ""
  ["SMTPAutoTLS"]=>
  bool(true)
  ["SMTPAuth"]=>
  bool(false)
  ["SMTPOptions"]=>
  array(0) {
  }
  ["Username"]=>
  string(0) ""
  ["Password"]=>
  string(0) ""
  ["AuthType"]=>
  string(0) ""
  ["Realm"]=>
  string(0) ""
  ["Workstation"]=>
  string(0) ""
  ["Timeout"]=>
  int(300)
  ["SMTPDebug"]=>
  bool(true)
  ["Debugoutput"]=>
  string(4) "echo"
  ["SMTPKeepAlive"]=>
  bool(false)
  ["SingleTo"]=>
  bool(false)
  ["SingleToArray"]=>
  array(0) {
  }
  ["do_verp"]=>
  bool(false)
  ["AllowEmpty"]=>
  bool(false)
  ["LE"]=>
  string(1) "
"
  ["DKIM_selector"]=>
  string(0) ""
  ["DKIM_identity"]=>
  string(0) ""
  ["DKIM_passphrase"]=>
  string(0) ""
  ["DKIM_domain"]=>
  string(0) ""
  ["DKIM_private"]=>
  string(0) ""
  ["action_function"]=>
  string(0) ""
  ["XMailer"]=>
  string(0) ""
  ["smtp":protected]=>
  NULL
  ["to":protected]=>
  array(0) {
  }
  ["cc":protected]=>
  array(0) {
  }
  ["bcc":protected]=>
  array(0) {
  }
  ["ReplyTo":protected]=>
  array(0) {
  }
  ["all_recipients":protected]=>
  array(0) {
  }
  ["RecipientsQueue":protected]=>
  array(0) {
  }
  ["ReplyToQueue":protected]=>
  array(0) {
  }
  ["attachment":protected]=>
  array(0) {
  }
  ["CustomHeader":protected]=>
  array(0) {
  }
  ["lastMessageID":protected]=>
  string(0) ""
  ["message_type":protected]=>
  string(0) ""
  ["boundary":protected]=>
  array(0) {
  }
  ["language":protected]=>
  array(0) {
  }
  ["error_count":protected]=>
  int(0)
  ["sign_cert_file":protected]=>
  string(0) ""
  ["sign_key_file":protected]=>
  string(0) ""
  ["sign_extracerts_file":protected]=>
  string(0) ""
  ["sign_key_pass":protected]=>
  string(0) ""
  ["exceptions":protected]=>
  bool(true)
  ["uniqueid":protected]=>
  string(0) ""
}

mail.log:

Feb  5 10:56:28 ironfist-droplet sendmail[27655]: v15FuS0k027655: from=root, size=196, class=0, nrcpts=1, msgid=<201702051556.v15FuS0k027655@ironfist-droplet>, relay=root@localhost
Feb  5 10:56:28 ironfist-droplet sm-mta[27657]: v15FuSaG027657: ruleset=check_rcpt, arg1=<root@ironfist-droplet>, relay=localhost [127.0.0.1], reject=553 5.1.8 <root@ironfist-droplet>... Domain of sender address root@ironfist-droplet does not exist
Feb  5 10:56:28 ironfist-droplet sendmail[27655]: v15FuS0k027655: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30196, relay=[127.0.0.1] [127.0.0.1], dsn=5.1.8, stat=User unknown
Feb  5 10:56:28 ironfist-droplet sm-mta[27657]: v15FuSaG027657: from=<root@ironfist-droplet>, size=196, class=0, nrcpts=0, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
Feb  5 10:56:28 ironfist-droplet sendmail[27655]: v15FuS0k027655: v15FuS0l027655: DSN: User unknown
Feb  5 10:56:28 ironfist-droplet sm-mta[27657]: v15FuSaI027657: from=<>, size=2194, class=0, nrcpts=1, msgid=<201702051556.v15FuS0l027655@ironfist-droplet>, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
Feb  5 10:56:28 ironfist-droplet sendmail[27655]: v15FuS0l027655: to=root, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31220, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (v15FuSaI027657 Message accepted for delivery)
Feb  5 10:56:28 ironfist-droplet sm-mta[27658]: v15FuSaI027657: to=<root@ironfist-droplet>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=32407, dsn=2.0.0, stat=Sent
Feb  5 11:03:40 ironfist-droplet sendmail[27694]: v15G3ehZ027694: from=root, size=196, class=0, nrcpts=1, msgid=<201702051603.v15G3ehZ027694@ironfist-droplet>, relay=root@localhost
Feb  5 11:03:40 ironfist-droplet sm-mta[27696]: v15G3e0P027696: ruleset=check_rcpt, arg1=<root@ironfist-droplet>, relay=localhost [127.0.0.1], reject=553 5.1.8 <root@ironfist-droplet>... Domain of sender address root@ironfist-droplet does not exist
Feb  5 11:03:40 ironfist-droplet sendmail[27694]: v15G3ehZ027694: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30196, relay=[127.0.0.1] [127.0.0.1], dsn=5.1.8, stat=User unknown
Feb  5 11:03:40 ironfist-droplet sm-mta[27696]: v15G3e0P027696: from=<root@ironfist-droplet>, size=196, class=0, nrcpts=0, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
Feb  5 11:03:40 ironfist-droplet sendmail[27694]: v15G3ehZ027694: v15G3eha027694: DSN: User unknown
Feb  5 11:03:40 ironfist-droplet sm-mta[27696]: v15G3e0R027696: from=<>, size=2194, class=0, nrcpts=1, msgid=<201702051603.v15G3eha027694@ironfist-droplet>, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
Feb  5 11:03:40 ironfist-droplet sendmail[27694]: v15G3eha027694: to=root, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31220, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (v15G3e0R027696 Message accepted for delivery)
Feb  5 11:03:40 ironfist-droplet sm-mta[27697]: v15G3e0R027696: to=<root@ironfist-droplet>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=32407, dsn=2.0.0, stat=Sent
Feb  5 11:04:30 ironfist-droplet sendmail[27702]: v15G4Uxv027702: from=root, size=196, class=0, nrcpts=1, msgid=<201702051604.v15G4Uxv027702@ironfist-droplet>, relay=root@localhost
Feb  5 11:04:30 ironfist-droplet sm-mta[27704]: v15G4UL7027704: ruleset=check_rcpt, arg1=<root@ironfist-droplet>, relay=localhost [127.0.0.1], reject=553 5.1.8 <root@ironfist-droplet>... Domain of sender address root@ironfist-droplet does not exist
Feb  5 11:04:30 ironfist-droplet sendmail[27702]: v15G4Uxv027702: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30196, relay=[127.0.0.1] [127.0.0.1], dsn=5.1.8, stat=User unknown
Feb  5 11:04:30 ironfist-droplet sm-mta[27704]: v15G4UL7027704: from=<root@ironfist-droplet>, size=196, class=0, nrcpts=0, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
Feb  5 11:04:30 ironfist-droplet sendmail[27702]: v15G4Uxv027702: v15G4Uxw027702: DSN: User unknown
Feb  5 11:04:30 ironfist-droplet sm-mta[27704]: v15G4UL9027704: from=<>, size=2194, class=0, nrcpts=1, msgid=<201702051604.v15G4Uxw027702@ironfist-droplet>, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
Feb  5 11:04:30 ironfist-droplet sendmail[27702]: v15G4Uxw027702: to=root, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31220, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (v15G4UL9027704 Message accepted for delivery)
Feb  5 11:04:30 ironfist-droplet sm-mta[27705]: v15G4UL9027704: to=<root@ironfist-droplet>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=32407, dsn=2.0.0, stat=Sent
Feb  5 11:04:43 ironfist-droplet sendmail[27710]: v15G4hPh027710: from=root, size=196, class=0, nrcpts=1, msgid=<201702051604.v15G4hPh027710@ironfist-droplet>, relay=root@localhost
Feb  5 11:04:43 ironfist-droplet sm-mta[27712]: v15G4hZC027712: ruleset=check_rcpt, arg1=<root@ironfist-droplet>, relay=localhost [127.0.0.1], reject=553 5.1.8 <root@ironfist-droplet>... Domain of sender address root@ironfist-droplet does not exist
Feb  5 11:04:43 ironfist-droplet sendmail[27710]: v15G4hPh027710: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30196, relay=[127.0.0.1] [127.0.0.1], dsn=5.1.8, stat=User unknown
Feb  5 11:04:43 ironfist-droplet sm-mta[27712]: v15G4hZC027712: from=<root@ironfist-droplet>, size=196, class=0, nrcpts=0, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
Feb  5 11:04:43 ironfist-droplet sendmail[27710]: v15G4hPh027710: v15G4hPi027710: DSN: User unknown
Feb  5 11:04:43 ironfist-droplet sm-mta[27712]: v15G4hZE027712: from=<>, size=2194, class=0, nrcpts=1, msgid=<201702051604.v15G4hPi027710@ironfist-droplet>, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
Feb  5 11:04:43 ironfist-droplet sendmail[27710]: v15G4hPi027710: to=root, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31220, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (v15G4hZE027712 Message accepted for delivery)
Feb  5 11:04:43 ironfist-droplet sm-mta[27713]: v15G4hZE027712: to=<root@ironfist-droplet>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=32407, dsn=2.0.0, stat=Sent
Feb  5 11:06:52 ironfist-droplet sendmail[27722]: v15G6qmc027722: from=root, size=196, class=0, nrcpts=1, msgid=<201702051606.v15G6qmc027722@ironfist-droplet>, relay=root@localhost
Feb  5 11:06:52 ironfist-droplet sm-mta[27724]: v15G6qtl027724: ruleset=check_rcpt, arg1=<root@ironfist-droplet>, relay=localhost [127.0.0.1], reject=553 5.1.8 <root@ironfist-droplet>... Domain of sender address root@ironfist-droplet does not exist
Feb  5 11:06:52 ironfist-droplet sendmail[27722]: v15G6qmc027722: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30196, relay=[127.0.0.1] [127.0.0.1], dsn=5.1.8, stat=User unknown
Feb  5 11:06:52 ironfist-droplet sm-mta[27724]: v15G6qtl027724: from=<root@ironfist-droplet>, size=196, class=0, nrcpts=0, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
Feb  5 11:06:52 ironfist-droplet sendmail[27722]: v15G6qmc027722: v15G6qmd027722: DSN: User unknown
Feb  5 11:06:52 ironfist-droplet sm-mta[27724]: v15G6qtn027724: from=<>, size=2194, class=0, nrcpts=1, msgid=<201702051606.v15G6qmd027722@ironfist-droplet>, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
Feb  5 11:06:52 ironfist-droplet sendmail[27722]: v15G6qmd027722: to=root, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31220, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (v15G6qtn027724 Message accepted for delivery)
Feb  5 11:06:52 ironfist-droplet sm-mta[27725]: v15G6qtn027724: to=<root@ironfist-droplet>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=32407, dsn=2.0.0, stat=Sent
Feb  5 11:06:57 ironfist-droplet sendmail[27730]: v15G6vDO027730: from=root, size=196, class=0, nrcpts=1, msgid=<201702051606.v15G6vDO027730@ironfist-droplet>, relay=root@localhost
Feb  5 11:06:57 ironfist-droplet sm-mta[27732]: v15G6vBt027732: ruleset=check_rcpt, arg1=<root@ironfist-droplet>, relay=localhost [127.0.0.1], reject=553 5.1.8 <root@ironfist-droplet>... Domain of sender address root@ironfist-droplet does not exist
Feb  5 11:06:57 ironfist-droplet sendmail[27730]: v15G6vDO027730: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30196, relay=[127.0.0.1] [127.0.0.1], dsn=5.1.8, stat=User unknown
Feb  5 11:06:57 ironfist-droplet sm-mta[27732]: v15G6vBt027732: from=<root@ironfist-droplet>, size=196, class=0, nrcpts=0, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
Feb  5 11:06:57 ironfist-droplet sendmail[27730]: v15G6vDO027730: v15G6vDP027730: DSN: User unknown
Feb  5 11:06:57 ironfist-droplet sm-mta[27732]: v15G6vBv027732: from=<>, size=2194, class=0, nrcpts=1, msgid=<201702051606.v15G6vDP027730@ironfist-droplet>, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
Feb  5 11:06:57 ironfist-droplet sendmail[27730]: v15G6vDP027730: to=root, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31220, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (v15G6vBv027732 Message accepted for delivery)
Feb  5 11:06:57 ironfist-droplet sm-mta[27733]: v15G6vBv027732: to=<root@ironfist-droplet>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=32407, dsn=2.0.0, stat=Sent
Feb  5 11:08:43 ironfist-droplet sendmail[27745]: v15G8hA4027745: from=root, size=196, class=0, nrcpts=1, msgid=<201702051608.v15G8hA4027745@ironfist-droplet>, relay=root@localhost
Feb  5 11:08:43 ironfist-droplet sm-mta[27747]: v15G8hUp027747: ruleset=check_rcpt, arg1=<root@ironfist-droplet>, relay=localhost [127.0.0.1], reject=553 5.1.8 <root@ironfist-droplet>... Domain of sender address root@ironfist-droplet does not exist
Feb  5 11:08:43 ironfist-droplet sendmail[27745]: v15G8hA4027745: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30196, relay=[127.0.0.1] [127.0.0.1], dsn=5.1.8, stat=User unknown
Feb  5 11:08:43 ironfist-droplet sm-mta[27747]: v15G8hUp027747: from=<root@ironfist-droplet>, size=196, class=0, nrcpts=0, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
Feb  5 11:08:43 ironfist-droplet sendmail[27745]: v15G8hA4027745: v15G8hA5027745: DSN: User unknown
Feb  5 11:08:43 ironfist-droplet sm-mta[27747]: v15G8hUr027747: from=<>, size=2194, class=0, nrcpts=1, msgid=<201702051608.v15G8hA5027745@ironfist-droplet>, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
Feb  5 11:08:43 ironfist-droplet sendmail[27745]: v15G8hA5027745: to=root, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31220, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (v15G8hUr027747 Message accepted for delivery)
Feb  5 11:08:43 ironfist-droplet sm-mta[27748]: v15G8hUr027747: to=<root@ironfist-droplet>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=32407, dsn=2.0.0, stat=Sent
Feb  5 11:09:30 ironfist-droplet sendmail[27772]: v15G9U0s027772: from=root, size=196, class=0, nrcpts=1, msgid=<201702051609.v15G9U0s027772@ironfist-droplet>, relay=root@localhost
Feb  5 11:09:30 ironfist-droplet sm-mta[27774]: v15G9UTw027774: ruleset=check_rcpt, arg1=<root@ironfist-droplet>, relay=localhost [127.0.0.1], reject=553 5.1.8 <root@ironfist-droplet>... Domain of sender address root@ironfist-droplet does not exist
Feb  5 11:09:30 ironfist-droplet sendmail[27772]: v15G9U0s027772: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30196, relay=[127.0.0.1] [127.0.0.1], dsn=5.1.8, stat=User unknown
Feb  5 11:09:30 ironfist-droplet sm-mta[27774]: v15G9UTw027774: from=<root@ironfist-droplet>, size=196, class=0, nrcpts=0, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
Feb  5 11:09:30 ironfist-droplet sendmail[27772]: v15G9U0s027772: v15G9U0t027772: DSN: User unknown
Feb  5 11:09:30 ironfist-droplet sm-mta[27774]: v15G9UU0027774: from=<>, size=2194, class=0, nrcpts=1, msgid=<201702051609.v15G9U0t027772@ironfist-droplet>, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
Feb  5 11:09:30 ironfist-droplet sendmail[27772]: v15G9U0t027772: to=root, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31220, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (v15G9UU0027774 Message accepted for delivery)
Feb  5 11:09:30 ironfist-droplet sm-mta[27775]: v15G9UU0027774: to=<root@ironfist-droplet>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=32407, dsn=2.0.0, stat=Sent
Feb  5 15:34:09 ironfist-droplet sendmail[29166]: v15KY9ME029166: from=root, size=196, class=0, nrcpts=1, msgid=<201702052034.v15KY9ME029166@ironfist-droplet>, relay=root@localhost
Feb  5 15:34:09 ironfist-droplet sm-mta[29168]: v15KY9Bg029168: ruleset=check_rcpt, arg1=<root@ironfist-droplet>, relay=localhost [127.0.0.1], reject=553 5.1.8 <root@ironfist-droplet>... Domain of sender address root@ironfist-droplet does not exist
Feb  5 15:34:09 ironfist-droplet sendmail[29166]: v15KY9ME029166: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30196, relay=[127.0.0.1] [127.0.0.1], dsn=5.1.8, stat=User unknown
Feb  5 15:34:09 ironfist-droplet sm-mta[29168]: v15KY9Bg029168: from=<root@ironfist-droplet>, size=196, class=0, nrcpts=0, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
Feb  5 15:34:09 ironfist-droplet sendmail[29166]: v15KY9ME029166: v15KY9MF029166: DSN: User unknown
Feb  5 15:34:09 ironfist-droplet sm-mta[29168]: v15KY9Bi029168: from=<>, size=2194, class=0, nrcpts=1, msgid=<201702052034.v15KY9MF029166@ironfist-droplet>, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
Feb  5 15:34:09 ironfist-droplet sendmail[29166]: v15KY9MF029166: to=root, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31220, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (v15KY9Bi029168 Message accepted for delivery)
Feb  5 15:34:09 ironfist-droplet sm-mta[29169]: v15KY9Bi029168: to=<root@ironfist-droplet>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=32407, dsn=2.0.0, stat=Sent
Feb  5 15:34:59 ironfist-droplet sendmail[29179]: v15KYxAq029179: from=root, size=196, class=0, nrcpts=1, msgid=<201702052034.v15KYxAq029179@ironfist-droplet>, relay=root@localhost
Feb  5 15:34:59 ironfist-droplet sm-mta[29181]: v15KYx21029181: ruleset=check_rcpt, arg1=<root@ironfist-droplet>, relay=localhost [127.0.0.1], reject=553 5.1.8 <root@ironfist-droplet>... Domain of sender address root@ironfist-droplet does not exist
Feb  5 15:34:59 ironfist-droplet sendmail[29179]: v15KYxAq029179: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30196, relay=[127.0.0.1] [127.0.0.1], dsn=5.1.8, stat=User unknown
Feb  5 15:34:59 ironfist-droplet sm-mta[29181]: v15KYx21029181: from=<root@ironfist-droplet>, size=196, class=0, nrcpts=0, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
Feb  5 15:34:59 ironfist-droplet sendmail[29179]: v15KYxAq029179: v15KYxAr029179: DSN: User unknown
Feb  5 15:34:59 ironfist-droplet sm-mta[29181]: v15KYx23029181: from=<>, size=2194, class=0, nrcpts=1, msgid=<201702052034.v15KYxAr029179@ironfist-droplet>, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
Feb  5 15:34:59 ironfist-droplet sendmail[29179]: v15KYxAr029179: to=root, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31220, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (v15KYx23029181 Message accepted for delivery)
Feb  5 15:34:59 ironfist-droplet sm-mta[29182]: v15KYx23029181: to=<root@ironfist-droplet>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=32407, dsn=2.0.0, stat=Sent
Feb  5 15:35:24 ironfist-droplet sendmail[29189]: v15KZNKB029189: from=root, size=196, class=0, nrcpts=1, msgid=<201702052035.v15KZNKB029189@ironfist-droplet>, relay=root@localhost
Feb  5 15:35:24 ironfist-droplet sm-mta[29191]: v15KZOSx029191: ruleset=check_rcpt, arg1=<root@ironfist-droplet>, relay=localhost [127.0.0.1], reject=553 5.1.8 <root@ironfist-droplet>... Domain of sender address root@ironfist-droplet does not exist
Feb  5 15:35:24 ironfist-droplet sendmail[29189]: v15KZNKB029189: to=root, ctladdr=root (0/0), delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=30196, relay=[127.0.0.1] [127.0.0.1], dsn=5.1.8, stat=User unknown
Feb  5 15:35:24 ironfist-droplet sm-mta[29191]: v15KZOSx029191: from=<root@ironfist-droplet>, size=196, class=0, nrcpts=0, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
Feb  5 15:35:24 ironfist-droplet sendmail[29189]: v15KZNKB029189: v15KZNKC029189: DSN: User unknown
Feb  5 15:35:24 ironfist-droplet sm-mta[29191]: v15KZOT1029191: from=<>, size=2194, class=0, nrcpts=1, msgid=<201702052035.v15KZNKC029189@ironfist-droplet>, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
Feb  5 15:35:24 ironfist-droplet sendmail[29189]: v15KZNKC029189: to=root, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31220, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (v15KZOT1029191 Message accepted for delivery)
Feb  5 15:35:24 ironfist-droplet sm-mta[29192]: v15KZOT1029191: to=<root@ironfist-droplet>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=32407, dsn=2.0.0, stat=Sent
Feb  5 15:35:34 ironfist-droplet sendmail[29199]: v15KZYoU029199: from=root, size=196, class=0, nrcpts=1, msgid=<201702052035.v15KZYoU029199@ironfist-droplet>, relay=root@localhost
Feb  5 15:35:34 ironfist-droplet sm-mta[29201]: v15KZYQ4029201: ruleset=check_rcpt, arg1=<root@ironfist-droplet>, relay=localhost [127.0.0.1], reject=553 5.1.8 <root@ironfist-droplet>... Domain of sender address root@ironfist-droplet does not exist
Feb  5 15:35:34 ironfist-droplet sendmail[29199]: v15KZYoU029199: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30196, relay=[127.0.0.1] [127.0.0.1], dsn=5.1.8, stat=User unknown
Feb  5 15:35:34 ironfist-droplet sm-mta[29201]: v15KZYQ4029201: from=<root@ironfist-droplet>, size=196, class=0, nrcpts=0, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
Feb  5 15:35:34 ironfist-droplet sendmail[29199]: v15KZYoU029199: v15KZYoV029199: DSN: User unknown
Feb  5 15:35:34 ironfist-droplet sm-mta[29201]: v15KZYQ6029201: from=<>, size=2194, class=0, nrcpts=1, msgid=<201702052035.v15KZYoV029199@ironfist-droplet>, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
Feb  5 15:35:34 ironfist-droplet sendmail[29199]: v15KZYoV029199: to=root, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31220, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (v15KZYQ6029201 Message accepted for delivery)
Feb  5 15:35:34 ironfist-droplet sm-mta[29202]: v15KZYQ6029201: to=<root@ironfist-droplet>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=32407, dsn=2.0.0, stat=Sent

Se alguém encontrar algo que possa ajudar nos logs, não hesite em me avisar. Eu ainda estou fazendo pesquisa e tentando encontrar o que pode estar errado e passando pelos logs, no entanto, desde que eu não sou tão habilidoso nesta área, toda ajuda em qualquer forma é apreciada.

Mail.err.1 log:

Jan 24 23:21:47 ironfist-droplet sendmail[2417]: My unqualified host name (ironfist-droplet) unknown; sleeping for retry
Jan 24 23:22:47 ironfist-droplet sendmail[2417]: unable to qualify my own domain name (ironfist-droplet) -- using short name
Jan 24 23:22:47 ironfist-droplet sm-mta[2486]: My unqualified host name (ironfist-droplet) unknown; sleeping for retry
Jan 24 23:22:50 ironfist-droplet sm-msp-queue[2491]: My unqualified host name (ironfist-droplet) unknown; sleeping for retry
Jan 24 23:23:47 ironfist-droplet sm-mta[2486]: unable to qualify my own domain name (ironfist-droplet) -- using short name
Jan 24 23:23:50 ironfist-droplet sm-msp-queue[2491]: unable to qualify my own domain name (ironfist-droplet) -- using short name

Obrigado.

    
por Matt Jones 05.02.2017 / 17:15

1 resposta

1

Já faz muito tempo desde que eu estava trabalhando com sendmail e postfix , por isso não posso fornecer conselhos qualificados na configuração do seu MTA.

Tanto quanto eu posso ver seu nome de domínio na Internet é ironfi.st (veja which ironfi.st ), que é também o nome do seu servidor HTTP quando acessado da internet ( host ironfi.st ), com (no mínimo) um nome / alias adicional como www.ironfi.st .

Há também um registro MX para ironfi.st , apontando para mx-caprica.easydns.com , para que os e-mails possam ser entregues no endereço [email protected] . Essas informações estão disponíveis publicamente consultando o DNS.

O que eu não tenho certeza é da organização da sua rede local / servidor, pois eu suponho que o seu servidor vive atrás de um roteador usando o NAS com algumas portas passadas para o seu servidor (qualquer outra coisa seria strongmente insegura). Portanto, seu host deve ter a rede de loopback (127.0.0.x) e pelo menos uma outra rede privada para se conectar ao roteador. Aqui e no seguinte eu assumo que o seu servidor apache é baseado no sistema operacional Linux, e eu refiro-me apenas à configuração do IPV4.

O que a primeira vista parece estranho é o /etc/hosts . Normalmente, o padrão é algo como

127.0.0.1   localhost
<privateIP> <hostname> <hostname.domainname>

A partir do seu mail.log , suponho que seu nome de host seja ironfist-droplet ; Não sei se seu nome de domínio DNS está definido. Você pode verificar isso com hostname -f e dnsdomainname . Supondo que seu IP privado seja 192.168.1.10 (apenas uma suposição!) E hostname -f retorne ironfist-droplet.ironfi.st , a segunda linha deve ser lida

192.168.1.10 ironfist-droplet ironfist-droplet.ironfi.st

e por completo você pode ter

192.168.1.10 ironfist-droplet ironfist-droplet.ironfi.st ironfi.st

Agora você pode testar com

ping localhost
ping ironfist-droplet
ping ironfist-droplet.ironfi.st
ping ironfi.st

que deve retornar o IP correto e não ter perda de pacotes.

Agora, as entradas no seu mail.log :

Você está enviando e-mails de root para root (não sei por que) via relé root@localhost . O remetente é então codificado como root@ironfist-droplet , que é rejeitado como o domínio do endereço do remetente does not exist . Há um e-mail retornado from <> to root@ironfist-droplet via relé localhost , o que é entregue; Eu acho que esta é a mensagem do MTA para o remetente que o email não pôde ser enviado. Procure na caixa de correio local do root usando mailx ou s-nail ou algum outro programa como esse.

Você deve refletir completamente a configuração do seu plugin WP-MAIL-SMTP (quem será o remetente, quem deve ser o destinatário) e seu sendmail (de que domínio é responsável, quais remetentes podem enviar e-mails, onde retransmitir mails para). Como eu disse, não sou capaz de aconselhar aqui. Se, e. você deseja que os e-mails enviados para [email protected] sejam configurados dessa maneira com um remetente válido; só de root a root não é uma boa ideia.

E procure em /var/log/mail.err se existir, talvez haja mais algumas dicas. Geralmente, ele contém apenas mensagens de erro, enquanto mail.log contém mensagens de sucesso também.

    
por 07.02.2017 / 14:50