проблема с настройкой postfix
пхп'шная функция mail() не отправляет письмо, точнее отправляет но не туда, куда ей сказали
Лог:
#####################################
ep 26 16:52:31 arisa syslog-ng[8339]: Objects alive: 40, garbage collected: 65
Sep 26 16:52:34 arisa postfix/postfix-script: starting the Postfix mail system
Sep 26 16:52:34 arisa postfix/master[9637]: daemon started -- version 2.1.3
Sep 26 16:52:41 arisa postfix/pickup[9638]: 16B32F6B29: uid=81 from=<apache>
Sep 26 16:52:41 arisa postfix/cleanup[9643]: 16B32F6B29: message-id=<20040926165241.16B32F6B29@arisa.hostname.ru>
Sep 26 16:52:41 arisa postfix/cleanup[9643]: 16B32F6B29: to=<unknown>, relay=none, delay=0, status=bounced (No recipients specified)
Sep 26 16:52:41 arisa postfix/cleanup[9647]: 1E0D1F6BCE: message-id=<20040926165241.1E0D1F6BCE@arisa.hostname.ru>
Sep 26 16:52:41 arisa postfix/qmgr[9639]: 1E0D1F6BCE: from=<>, size=2001, nrcpt=1 (queue active)
Sep 26 16:52:41 arisa postfix/local[9648]: 1E0D1F6BCE: to=<apache@arisa.hostname.ru>, relay=local, delay=0, status=sent (delivered to mailbox)
Sep 26 16:52:41 arisa postfix/qmgr[9639]: 1E0D1F6BCE: removed
: removed
#####################################
т.е шлет сюда - apache@arisa.hostname.ru (arisa.hostname.ru - это мой хост в локалке)
(причем по телнету postfix письма отправляет - только в заголовке To: undisclosed-recipients;)
в /etc/mail/aliases тупо для проверки воткнул строчку
apache: мой_мэйл
письмо пришло :
#####################################
Subject: Undelivered Mail Returned to Sender
From: Mail Delivery System <MAILER-DAEMON@arisa.hostname.ru>
To: apache@arisa.hostname.ru
This is the Postfix program at host arisa.hostname.ru.
I'm sorry to have to inform you that your message could not be
be delivered to one or more recipients. It's attached below.
For further assistance, please send mail to <postmaster>
If you do so, please include this problem report. You can
delete your own text from the attached returned message.
The Postfix program
<unknown>: No recipients specified
Reporting-MTA: dns; arisa.hostname.ru
X-Postfix-Queue-ID: 93C01F6BC6
X-Postfix-Sender: rfc822; apache@arisa.hostname.ru
Arrival-Date: Sun, 26 Sep 2004 18:03:09 +0000 (GMT)
Final-Recipient: rfc822; unknown
Action: failed
Status: 5.0.0
Diagnostic-Code: X-Postfix; No recipients specified
Subject:
test from gentoo
From:
apache@arisa.hostname.ru (apache)
Date:
Sun, 26 Sep 2004 18:03:09 +0000 (GMT)
To:
my_email
Received:
by arisa.hostname.ru (Postfix, from userid 81) id 93C01F6BC6; Sun, 26 Sep 2004 18:03:09 +0000 (GMT)
Message-ID:
<20040926180309.93C01F6BC6@arisa.hostname.ru>
тело сообщения
#####################################
вот основные пункты /etc/postfix/main.cf
#################
defer_transport = smtp
relayhost = hostname.ru
mail_owner = postfix
myhostname = arisa.hostname.ru
mydomain = hostname.ru
#################
как настроить нормальное формирование 'To:' ?