Sendmail SMTP no funciona en el server apache2

Hace poco realicé una tarea para el website de mi equipo de desarrollo (ironfi.st), en el que configuré un server de correo SMTP en un server web apache2. Utilicé sendmail para completar la tarea junto con un plugin WordPress SMTP llamado WP-MAIL-SMTP para permitir la funcionalidad de una página de contacto en nuestro website. Sin embargo, el problema actual que estoy enfrentando es que no se enviará correo desde el server.

Una de las razones por las que elegí sendmail se debe a sus simples pasos de configuration. Así que estoy teniendo problemas para identificar lo que podría haber hecho incorrectamente. Me conecté al server a través de Ubuntu e instalé sendmail en él. Después de lo cual ejecuté la configuration de configuration y luego fui a editar el file de hosts en / etc / hosts.

A continuación hay una copy de lo que puse en el file hosts: 127.0.1.1 ironfi.st ironfi.st 127.0.0.1 localhost localhost.localdomain ironfi.st

Al hacer esto, probé el server SMTP utilizando la function "enviar correo electrónico de testing" que viene con el complemento WP que estoy usando. Como se indicó anteriormente, el correo electrónico no se envió. Comencé a leer los loggings que el plugin escupió. Sin embargo, esta área no es necesariamente mi área especializada, por lo que puede haber perdido algo en los loggings, por lo que adjunto los loggings que tomé directamente desde el último file de logging del server SMTP mail.log desde / var / log y los files de logging del complemento a continuación:

Registros desde el plugin:

Mensaje de testing enviado

El resultado fue:

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) "" } 

logging electrónico:

 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 

Si alguien encuentra algo que podría ser de ayuda en los loggings, no dude en hacérmelo saber. Todavía estoy investigando e intentando encontrar lo que podría estar mal y revisando los loggings, sin embargo, dado que no soy tan habilidoso en esta área, se agradece toda ayuda en cualquier forma.

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 

Gracias.

Ha pasado mucho time desde que trabajaba con sendmail y postfix , por lo que no puedo darle consejos calificados en la configuration de su MTA.

Por lo que puedo ver, su nombre de dominio de internet es ironfi.st (vea which ironfi.st ), que es también el nombre de su server HTTP cuando se accede desde Internet ( host ironfi.st ), con (como mínimo) un nombre / alias adicional como www.ironfi.st .

También hay un logging MX para ironfi.st , que apunta a mx-caprica.easydns.com , por lo que los correos se pueden enviar a la dirección someone@ironfi.st . Estas informaciones están a disposition del público al consultar el DNS.

De lo que no estoy realmente seguro es de la organización de su networking / server local, ya que supongo que su server vive detrás de un enrutador que usa NAS con algunos puertos que pasan a su server (cualquier otra cosa sería muy insegura). Por lo tanto, su host debe tener la networking de bucle invertido (127.0.0.x) y al less otra networking privada para conectarse al enrutador. Aquí y en lo que sigue supongo que su server apache se basa en el sistema operativo Linux, y solo me refiero a la configuration de IPV4.

Lo que a primera vista parece extraño es su /etc/hosts . Por lo general se pnetworkingetermina a algo así como

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

A partir de su mail.log , supongo que su nombre de host es ironfist-droplet ; No sé si tu nombre de dominio DNS está configurado. Puede verificar esto con hostname -f y dnsdomainname . Suponiendo que su IP privada es 192.168.1.10 (¡solo una suposition!) Y el hostname -f devuelve ironfist-droplet.ironfi.st , la segunda línea debería leer

 192.168.1.10 ironfist-droplet ironfist-droplet.ironfi.st 

y para completar, podrías tener

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

Ahora puedes probar con

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

que debería devolver la dirección IP correcta y no tener pérdida de packages.

Ahora a las inputs en su mail.log :

Está enviando correos de root a root (no sé por qué) a través de relay root@localhost . El remitente se codifica como root@ironfist-droplet , que se rechaza porque el dominio de la dirección del remitente does not exist . Se devuelve un correo from <> a root@ironfist-droplet través de retransmisor localhost , qué es lo entregado; Creo que este es el post del MTA para el remitente de que no se pudo enviar el correo. Mire en el buzón local de root usando mailx o s-nail o algún otro progtwig como ese.

Debe reflejar a background la configuration de su complemento WP-MAIL-SMTP (quién será el remitente, quién será el destinatario) y su sendmail (de qué dominio es responsable, qué remitentes pueden enviar correos, dónde retransmitir correos a). Como dije, no puedo aconsejar aquí. Si, por ejemplo, desea que los correos electrónicos se envíen a someone@ironfi.st , debe configurarlo de esa manera con un remitente válido; solo de root a root no es una buena idea.

Y mira en /var/log/mail.err si existe, tal vez hay algunos consejos más. Por lo general, solo contiene posts de error, mientras que mail.log contiene posts de éxito.