Centos 7 - Sendmail não está funcionando

0

Estou tentando configurar o sendmail no meu servidor centos 7, mas ele está falhando por algum motivo. Eu abri a porta 25 / tcp no firewall-cmd e o selinux também está desativado. Ainda não está funcionando ... Logs / var / log / maillog:

Jul 25 14:14:34 mail sendmail[12274]: u6PBEYlI012274: [email protected], size=101, class=0, nrcpts=1, msgid=<[email protected]>, relay=root@localhost
Jul 25 14:14:34 mail sendmail[12275]: NOQUEUE: tcpwrappers (localhost, 127.0.0.1) rejection
Jul 25 14:14:34 mail sendmail[12274]: u6PBEYlI012274: [email protected], [email protected] (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30101, relay=[127.0.0.1] [127.0.0.1], dsn=5.0.0, stat=Service unavailable
Jul 25 14:14:34 mail sendmail[12274]: u6PBEYlI012274: u6PBEYlJ012274: DSN: Service unavailable
Jul 25 14:14:34 mail sendmail[12274]: u6PBEYlJ012274: [email protected], delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31125, relay=[127.0.0.1], dsn=5.0.0, stat=Service unavailable
Jul 25 14:14:34 mail sendmail[12274]: u6PBEYlJ012274: u6PBEYlK012274: return to sender: Service unavailable
Jul 25 14:14:34 mail sendmail[12274]: u6PBEYlK012274: to=postmaster, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=32149, relay=[127.0.0.1], dsn=5.0.0, stat=Service unavailable
Jul 25 14:14:34 mail sendmail[12274]: u6PBEYlJ012274: Losing ./qfu6PBEYlJ012274: savemail panic
Jul 25 14:14:34 mail sendmail[12274]: u6PBEYlJ012274: SYSERR(root): savemail: cannot save rejected email anywhere

Graças à resposta do @Andrzej A. Filip, agora estou recebendo isso nos registros:

Jul 25 17:26:00 mail sendmail[3812]: u6PEPxur003812: [email protected], size=102, class=0, nrcpts=1, msgid=<[email protected]>, relay=root@localhost
Jul 25 17:26:00 mail sendmail[3813]: u6PEQ0Bs003813: from=<[email protected]>, size=347, class=0, nrcpts=1, msgid=<[email protected]>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Jul 25 17:26:00 mail sendmail[3812]: u6PEPxur003812: [email protected], [email protected] (0/0), delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=30102, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (u6PEQ0Bs003813 Message accepted for delivery)

Mas os e-mails ainda não chegam ao destino ...

    
por Jojo01 25.07.2016 / 14:49

1 resposta

1

Seu sendmail parece usar tcpwrappers. Os tcpwrappers parecem rejeitar a conexão de e-mail para 127.0.0.1:25.
Essas conexões são usadas para enviar emails enviados por meio do comando sendmail para o daemon sendmail local.

FIX:
Inspecione e corrija os arquivos de configuração do tcpwrappers: /etc/hosts.allow e /etc/hosts.deny .

    
por 25.07.2016 / 15:25