Ошибка почтовой функции на Debian Server

У меня есть сервер Debian. Я установил postfix, а также попытался выполнить следующую команду:

echo testing | mail -s Bla [email protected]

это работает.

но когда я пытаюсь использовать функцию почты PHP, она не отправляет почту.

<?php
// the message
$msg = "First line of text\nSecond line of text";// send email
mail("[email protected]","My subject",$msg);
?>

У кого-нибудь есть решение или я что-то упустил? Я следил за уже заданными вопросами, но они не решают мою проблему.

Feb 27 12:26:53 vanni postfix/pickup[5702]: 96C259FC2B: uid=33 from=<www-data>
Feb 27 12:26:53 vanni postfix/cleanup[6377]: 96C259FC2B: message-id=<20170227112653.96C259FC2B@xxxx>
Feb 27 12:26:53 vanni postfix/qmgr[20579]: 96C259FC2B: from=<[email protected]>, size=363, nrcpt=1 (queue active)
Feb 27 12:26:54 vanni postfix/smtp[6379]: 96C259FC2B: to=<[email protected]>, relay=gmail-smtp-in.l.google.com[2a00:1450:400c:c07::1a]:25, delay=0.4, delays=0.03/0.01/0.19/0.18, dsn=5.7.1, status=bounced (host gmail-smtp-in.l.google.com[2a00:1450:400c:c07::1a] said: 550-5.7.1 [2001:41d0:8:bda7::1] Our system has detected that this message does 550-5.7.1 not meet IPv6 sending guidelines regarding PTR records and 550-5.7.1 authentication. Please review 550-5.7.1  https://support.google.com/mail/?p=IPv6AuthError for more information 550 5.7.1 . 52si21027306wra.235 - gsmtp (in reply to end of DATA command))
Feb 27 12:26:54 vanni postfix/cleanup[6377]: 05E4DA0AB5: message-id=<20170227112654.05E4DA0AB5@vannitec>
Feb 27 12:26:54 vanni postfix/bounce[6380]: 96C259FC2B: sender non-delivery notification: 05E4DA0AB5
Feb 27 12:26:54 vanni postfix/qmgr[20579]: 05E4DA0AB5: from=<>, size=2760, nrcpt=1 (queue active)
Feb 27 12:26:54 vanni postfix/qmgr[20579]: 96C259FC2B: removed
Feb 27 12:26:54 vanni postfix/local[6381]: 05E4DA0AB5: to=<[email protected]>, relay=local, delay=0.02, delays=0/0.01/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Feb 27 12:26:54 vanni postfix/qmgr[20579]: 05E4DA0AB5: removed

0

Решение

Задача ещё не решена.

Другие решения

Других решений пока нет …

По вопросам рекламы [email protected]