Здравствуйте. У меня проблема как раз с sendmail
Помогите, пожалуйста, настроить.
Установиk sendmail на CentOS.
Сделал следующее:
1. Установил:
text
# yum install sendmail
2. Изменил файл /etc/mail/access:
text
localhost.localdomain RELAY
localhost RELAY
127.0.0.1 RELAY
192.168.0.0/24 RELAY
3. В файле /etc/mail/local-host-names указал:
text
mail.test.ru
localhost
4. Запустил службу:
text
# service sendmail start
hostname-f выдаёт CentOS-62-64-minimal
Вот что оказалось в логах после попытки отправить письмо из командной строки на ящик:
text
Apr 29 16:36:10 CentOS-62-64-minimal sendmail[2319]: unable to qualify my own domain name (CentOS-62-64-minimal) -- using short name
Apr 29 16:36:10 CentOS-62-64-minimal sendmail[2319]: r3TCaAPP002319: from=root, size=209, class=0, nrcpts=1, msgid=<201304291236.r3TCaAPP002319@CentOS-62-64-minimal>, relay=root@localhost
Apr 29 16:36:10 CentOS-62-64-minimal postfix/smtpd[2341]: connect from localhost[127.0.0.1]
Apr 29 16:36:10 CentOS-62-64-minimal postfix/smtpd[2341]: 0FD05813D1: client=localhost[127.0.0.1]
Apr 29 16:36:10 CentOS-62-64-minimal postfix/cleanup[2344]: 0FD05813D1: message-id=<201304291236.r3TCaAPP002319@CentOS-62-64-minimal>
Apr 29 16:36:10 CentOS-62-64-minimal postfix/qmgr[1502]: 0FD05813D1: from=<root@CentOS-62-64-minimal.localdomain>, size=678, nrcpt=1 (queue active)
Apr 29 16:36:10 CentOS-62-64-minimal sendmail[2319]: r3TCaAPP002319: to=moyemail@bk.ru, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30209, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as 0FD0581
Apr 29 16:36:10 CentOS-62-64-minimal postfix/smtpd[2341]: disconnect from localhost[127.0.0.1]
Apr 29 16:36:10 CentOS-62-64-minimal postfix/smtp[2345]: 0FD05813D1: to=<moyemail@bk.ru>, relay=mxs.mail.ru[94.100.176.20]:25, delay=0.35, delays=0.05/0.05/0.19/0.06, dsn=5.0.0, status=bounced (host mxs.mail.ru[94.100.176.20] said: 550 Unro
Apr 29 16:36:10 CentOS-62-64-minimal postfix/cleanup[2344]: 75550813D2: message-id=<20130429123610.75550813D2@CentOS-62-64-minimal.localdomain>
Apr 29 16:36:10 CentOS-62-64-minimal postfix/qmgr[1502]: 75550813D2: from=<>, size=2754, nrcpt=1 (queue active)
Apr 29 16:36:10 CentOS-62-64-minimal postfix/bounce[2346]: 0FD05813D1: sender non-delivery notification: 75550813D2
Apr 29 16:36:10 CentOS-62-64-minimal postfix/qmgr[1502]: 0FD05813D1: removed
Apr 29 16:36:10 CentOS-62-64-minimal postfix/local[2347]: 75550813D2: to=<root@CentOS-62-64-minimal.localdomain>, relay=local, delay=0.01, delays=0/0.01/0/0, dsn=5.2.2, status=bounced (cannot update mailbox /var/mail/root for user root.
Apr 29 16:36:10 CentOS-62-64-minimal postfix/qmgr[1502]: 75550813D2: removed