por alguma razão, meu sendmail não é capaz de enviar e-mails do meu servidor virtual no Hetzner via sendmail.
Na minha configuração de /etc/mail/aliases
, parecido com:
mailer-daemon: postmaster
postmaster: root
nobody: root
hostmaster: root
usenet: root
news: root
webmaster: root
www: root
ftp: root
abuse: root
noc: root
security: root
fail2ban: root
root: hetzner
Parece que está tudo bem, porque ele tenta enviar o e-mail, mas o log mostra:
Aug 9 10:11:47 mydomain sm-mta[16537]: u798BllJ016535: to=<fail2ban@mydomain>, delay=00:00:00, mailer=local, pri=123469, dsn=5.1.1, stat=User unknown
Aug 9 10:11:47 mydomain sm-mta[16537]: u798BllJ016535: to=hetzner, ctladdr=root (8/0), delay=00:00:00, mailer=local, pri=123469, dsn=5.1.1, stat=User unknown
Aug 9 10:11:47 mydomain sm-mta[16537]: u798BllJ016535: u798BllJ016537: postmaster notify: User unknown
Aug 9 10:11:48 mydomain sm-mta[16537]: u798BllJ016537: to=hetzner, ctladdr=root (8/0), delay=00:00:01, mailer=local, pri=0, dsn=5.1.1, stat=User unknown
Aug 9 10:11:48 mydomain sm-mta[16537]: u798BllJ016537: to=hetzner, ctladdr=root (8/0), delay=00:00:01, mailer=local, pri=0, dsn=5.1.1, stat=User unknown
Aug 9 10:11:48 mydomain sm-mta[16537]: u798BllJ016537: u798BllK016537: return to sender: User unknown
Aug 9 10:11:48 mydomain sm-mta[16537]: u798BllK016537: to=hetzner, ctladdr=root (8/0), delay=00:00:00, mailer=local, pri=0, dsn=5.1.1, stat=User unknown
Aug 9 10:11:48 mydomain sm-mta[16537]: u798BllJ016537: Saved message in /var/lib/sendmail/dead.letter
(Eu oculto meu nome de domínio no arquivo de log. mas ele está configurado em /etc/mail/local-host-names
e /etc/hosts
)