LINUX.ORG.RU
ФорумAdmin

php + sendmail


0

0

Подскажите что делать

Имеется FreeBSD 6.1 Apache/1.3.37+php 5.2.1 Sendmail 8.14.1

хочу с веб страницы послать письмо, вот часть кода: ...

$message= "Content-type: text/plain; charset=windows-1251 From: Web Server ($name $email) To: test@localhost Subject: Question from Web Server Content-type: text/plain; charset=windows-1251 $message";

mail("test@localhost", "", $message);

...

письмо не отсылается в /var/log/maillog пишется

sendmail[3071]: NOQUEUE: Milter (spamassassin): to error state sendmail[3071]: NOQUEUE: Milter (clamav): to error state sendmail[3071]: l77D0258003071: SYSERR(www): Cannot open hash database /etc/mail/aliases.db: Permission denied sendmail[3071]: l77D0258003071: SYSERR(www): collect: Cannot write ./dfl77D0258003071 (bfcommit, uid=80, gid=25): Permission denied sendmail[3071]: l77D0258003071: from=www, size=230, class=0, nrcpts=1, relay=www@localhost sendmail[3071]: l77D0258003071: 0: fl=0x2, mode=10000: FIFO: dev=0/0, ino=0, nlink=0, u/gid=80/80, size=0 sendmail[3071]: l77D0258003071: 1: fl=0x1, mode=20666: CHR: dev=255/50331648, ino=12, nlink=1, u/gid=0/0, size=0 sendmail[3071]: l77D0258003071: 2: fl=0x9, mode=100644: dev=0/79, ino=3627138, nlink=1, u/gid=0/0, size=391404 sendmail[3071]: l77D0258003071: 3: fl=0x1, mode=20666: CHR: dev=255/50331648, ino=12, nlink=1, u/gid=0/0, size=0 sendmail[3071]: l77D0258003071: 4: fl=0x2, mode=140666: SOCK localhost->[[UNIX: /var/run/log]] sendmail[3071]: l77D0258003071: SYSERR(www): queueup: cannot create queue file ./qfl77D0258003071, euid=80, fd=-1, fp=0x0: Permission denied

где в чем проблема не пойму, почему "Permission denied" и куда надо дать доступ тоже не пойму :(

anonymous

Во первых, ты не туда написал. Пиши в Development. Во вторых, хрен что поймешь из твоего лога. Хоть бы форматирование нормально выставил.

iron ★★★★★
()

и эта.. если не хочешь давать разрешения юзеру, тогда можно использовать что-то типа nbsmtp - правда ему нужен еще smtp-релей.

FatBastard ★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.