PHP script Sendmail error in maillog

Posted on 2009-04-30
Last Modified: 2013-12-17

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@>, 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@>, proto=ESMTP, daemon=MTA, relay=websrv01.sure.local [] May  1 02:14:16 websrv01 sendmail[10752]: n410EG7Z010752:, ctladdr=nobody (99/99), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31118, relay=[] [], dsn=2.0.0, stat=Sent (n410EGQ2010754 Message accepted for delivery) May  1 02:14:16 websrv01 sendmail[10756]: n410EGQ2010754:
to=<>, ctladdr=<nobody@websrv01.sure.local>
(99/99), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=121223, [], 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?

Question by:prinsbj
    LVL 5

    Accepted Solution


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

    sendmail_path = /usr/sbin/sendmail -t -i -f

    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)
    LVL 5

    Expert Comment

    sendmail_path = /usr/sbin/sendmail -t -i -f

    forgot to mention but on the above line, make sure you put in the correct path to sendmail (eventually do a whereis sendmail first)

    Author Closing Comment

    This was were I was looking for. THANKS!

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
    Automapping, a wonderful feature with Exchange 2010 (SP2 onwards I believe), allows additional/Shared mailboxes that a user has access to be automatically mapped on Outlook client, simplifying the process by adding them while Outlook launches. Ho…
    The viewer will learn how to count occurrences of each item in an array.
    The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

    732 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now