|
|
|
| Доброго дня, у меня есть сервер в офисе, на нем стоит mediawiki? при регистрации нового пользователя должно отсылаться письмо на внешний e-mail (yandex/\.ru или mail.ru) но этого не происходит.
Установлен exim4
# stat /usr/sbin/sendmail
File: «/usr/sbin/sendmail» -> «exim4»
Size: 5 Blocks: 0 IO Block: 4096 символьная ссылка
Device: 801h/2049d Inode: 350264 Links: 1
Access: (0777/lrwxrwxrwx) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2013-05-27 17:39:02.000000000 +0400
Modify: 2012-10-28 14:24:01.000000000 +0400
Change: 2012-10-28 14:24:01.000000000 +0400
|
в папке /var/mail/ есть файл www-data - в нем все письма, которые должны были уйти, но так и не пришли
$address="mail@yandex.ru";
$subj="Mail Test";
$text=date("D, d.m.y, H:i");
$head="Content-type:text/plain; \n\t charset=windows-1251;";
echo "Sending to $address";
if(mail($address, $subj, $text, $head)){
echo " Ok, it works"; }else{echo" error";}
|
результат = Ok, it works, но письмо не приходит
Что посоветуете? или может быть знаете готовое решение?
P.S. может я ошибся форумом с данным сообщением? - не серчайте - я просто не знаю где еще спросить | |
|
|
|
|
|
|
|
для: darkozoid
(28.05.2013 в 10:16)
| | Идите в /var/log и смотрите все почтовые логи
mail.err
mail.log
Но самое главное, что в /var/log/exim4/mainlog?
PS Какая операционная система? | |
|
|
|
|
|
|
|
для: cheops
(28.05.2013 в 21:56)
| | debian 6
в /var/log/exim4/mainlog?
2013-05-29 08:27:46 1UhE1m-0006B9-28 Message is frozen
2013-05-29 08:27:46 1UhDCi-0008AR-Ah == prog@artlinespb.ru R=dnslookup T=remote_smtp defer (-53): retry time not reached for any host
2013-05-29 08:27:46 1UhKaD-00056D-Ue == root@peterhost.ru R=dnslookup T=remote_smtp defer (-53): retry time not reached for any host
2013-05-29 08:27:46 1UhEUn-0003Z5-61 Message is frozen
2013-05-29 08:27:46 1UhDFa-00019F-0m Message is frozen
2013-05-29 08:27:46 1UhCob-0004s0-I7 == darkink@yandex.ru R=dnslookup T=remote_smtp defer (-53): retry time not reached for any host
2013-05-29 08:27:46 1UhExp-000111-9M Message is frozen
|
я так понял что проблема в root@peterhost.ruтут должен быть настоящий ящик... а где это настроить не знаю | |
|
|
|
|
|
|
|
для: darkozoid
(29.05.2013 в 08:58)
| | 1) Что находится в /var/mail (какая структура, что там файлы, директории)? | |
|
|
|
|
|
|
|
для: cheops
(29.05.2013 в 21:11)
| |
все... больше нет ни чего
#nano otrs
From MAILER-DAEMON Wed May 29 15:36:56 2013
Return-path: <>
Envelope-to: otrs@localhost
Delivery-date: Wed, 29 May 2013 15:36:56 +0400
Received: from Debian-exim by artline with local (Exim 4.72)
id 1Uhega-0000YT-NT
for otrs@localhost; Wed, 29 May 2013 15:36:56 +0400
Date: Wed, 29 May 2013 15:36:56 +0400
Message-Id: <E1Uhega-0000YT-NT@artline>
Auto-Submitted: auto-replied
From: Mail Delivery System <Mailer-Daemon@artlinespb.ru>
To: otrs@localhost
Subject: Warning: message 1UhCXI-0004eI-Hw delayed 24 hours
This message was created automatically by mail delivery software.
A message that you sent has not yet been delivered to one or more of its
recipients after more than 24 hours on the queue on artline.
The message identifier is: 1UhCXI-0004eI-Hw
The subject of the message is: Fwd: [Ticket#2013052610000024] =?UTF-8?Q?=D1=82=D0=B5=D0=BC=D0=B0=D0=B2?=
The date of the message is: Tue, 28 May 2013 09:33:28 +0400
The address to which the message has not yet been delivered is:
darkink@mail.ru
No action is required on your part. Delivery attempts will continue for
some time, and this warning may be repeated at intervals if the message
remains undelivered. Eventually the mail delivery software will give up,
and when that happens, the message will be returned to you.
|
| |
|
|
|
|
|
|
|
для: darkozoid
(30.05.2013 в 08:52)
| | Попробуйте создать файл root, выставите права 0666 и перезагрузите почтовый сервер (маловероятно, конечно, что проблема именно в этом, но попробовать стоит).
Посмотрите cat /etc/passwd - пользователь root в списке есть? | |
|
|
|