Здравствуйте,
при запуске php скрипта с mail(«myemail@yandex.ru»,«My subject»,«test»);
письма приходят с задержкой, так же ошибки в логах
/etc/hostname main
/etc/hosts 127.0.0.1 localhost.localdomain localhost main 127.0.1.1 main
в логах:
/var/log/mail.log
Dec 8 18:44:08 main sm-mta[2023]: tB8Fi8C9002021: tB8Fi8C9002023: DSN: Local configuration error Dec 8 18:44:08 main sm-mta[2024]: tB8Fi884002024: localhost.localdomain [127.0.0.1] did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA-v4 Dec 8 18:44:08 main sm-mta[2023]: tB8Fi8C9002023: to=root, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=60000, dsn=2.0.0, stat=Sent Dec 8 18:44:08 main sm-mta[2023]: tB8Fi8C9002023: to=<root@localhost.localdomain>, delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=60000, relay=localhost.localdomain., dsn=5.3.5, stat=Local configuration error Dec 8 18:44:08 main sm-mta[2023]: tB8Fi8C9002023: tB8Fi8CA002023: return to sender: Local configuration error Dec 8 18:44:08 main sm-mta[2023]: tB8Fi8CA002023: to=root, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30000, dsn=2.0.0, stat=Sent
/var/log/mail.err
Dec 8 18:38:08 main sendmail[32756]: unable to qualify my own domain name (main) — using short name Dec 8 18:38:08 main sendmail[499]: My unqualified host name (main) unknown; sleeping for retry Dec 8 18:39:03 main sm-mta[728]: tB8Fd2YE000725: SYSERR(root): localhost.localdomain. config error: mail loops back to me (MX problem?)
Скажите пожалуйста в чем дело и как исправить?