• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 736
  • Last Modified:

PHP script Sendmail error in maillog

Hello,

When I try to send a e-mail with a PHP-script in my website I get a error in the maillog from Xampp / Linux.

May  1 02:14:16 websrv01 sendmail[10752]: n410EG7Z010752: from=nobody, size=1118, class=0, nrcpts=1, msgid=<8332719fdeee1ee8aaaaa493b598fd16@10.10.0.6>, relay=nobody@localhost May  1 02:14:16 websrv01 sendmail[10754]: n410EGQ2010754:
from=<nobody@websrv01.sure.local>, size=1223, class=0, nrcpts=1, msgid=<8332719fdeee1ee8aaaaa493b598fd16@10.10.0.6>, proto=ESMTP, daemon=MTA, relay=websrv01.sure.local [127.0.0.1] May  1 02:14:16 websrv01 sendmail[10752]: n410EG7Z010752:
to=info@domainname.com, ctladdr=nobody (99/99), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31118, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (n410EGQ2010754 Message accepted for delivery) May  1 02:14:16 websrv01 sendmail[10756]: n410EGQ2010754:
to=<info@domainname.com>, ctladdr=<nobody@websrv01.sure.local>
(99/99), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=121223, relay=mailfilter2.i-ict.nl. [92.48.196.214], dsn=5.7.1, stat=User unknown May  1 02:14:16 websrv01 sendmail[10756]: n410EGQ2010754: n410EGQ2010756:
DSN: User unknown
May  1 02:14:16 websrv01 sendmail[10756]: n410EGQ2010756: to=root, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=32489, dsn=2.0.0, stat=Sent

What is wrong and how can I fix it?

Bart
0
prinsbj
Asked:
prinsbj
  • 2
1 Solution
 
cdaugustinCommented:
Hi,

try editing php.ini file and adding from email id to sendmail

sendmail_path = /usr/sbin/sendmail -t -i -f admin@hostedomain.com

I hope the above fixes your problem if not maybe the error is in your sendmail configuration, maybe somewhere instead of the full name of the server you used localhost, dunno. Usually ppl recomend you do use something else than sendmail:

alternatives: POSTFIX, QMAIL, CITADEL(recommended because its a bit easier to start with)
0
 
cdaugustinCommented:
sendmail_path = /usr/sbin/sendmail -t -i -f admin@hostedomain.com

forgot to mention but on the above line, make sure you put in the correct path to sendmail (eventually do a whereis sendmail first)
0
 
prinsbjAuthor Commented:
This was were I was looking for. THANKS!
0

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now