2 Replies Latest reply: Nov 30, 2012 3:58 PM by kvaulakh
kvaulakh Level 1 Level 1 (0 points)

i am hosting a virtual domain on my lion server. there is a webform on site when user can sigh up. I am sending a email to user using php mail function but keep getting error

Nov 29 17:21:40 server postfix/cleanup[10246]: warning: recipient <_www> uid falls below minimum allowed: 70 < 501

 

can someone please help why this error message is coming?

 

if i send mail to internal email it works find. only sending to external mail i get the error message and email doesnt work.


Mac mini, Mac OS X (10.7.5)
  • Camelot Level 8 Level 8 (46,220 points)

    The error message kind of tells you what's going on:

     

    recipient <_www> uid falls below minimum allowed: 70 < 501

     

    This says that postfix is trying to deliver mail to a user (_www) whose UID in less than the minimum allowed - in this case Apple default all regular user accounts to UID 501 and higher, with lower numbers used for service daemons, etc., which typically don't need to receive mail - there's no point in sending mail to your web server, for example.

     

    If that sounds counter to what you expect, you'd be right, which I think speaks to a larger issue on your setup. It sounds to me like you are trying to send mail OUT from the _www user (e.g. the Apache process). This mail is getting rejected for some reason and I suspect it's the bounce message that you're seeing here in the logs - and the bounce gets trashed because postfix won't deliver to a user with a UID lower than 501 (other than root).

     

    You kind of have two solutions - one is to change the minimum UID so that postfix will deliver these messages - that won't fix the problem but it may at least allow you to capture the messages to see what's going on. The better solution is to work out why the messages are bouncing in the first place. You probably don't want to send the messages from _www, so there's probably some missing element in the form that defines the 'sender' address. Fix that and I suspect your problem goes away.

  • kvaulakh Level 1 Level 1 (0 points)

    Hi Camelot,

     

    Thanks for replying

     

    Here are logs for one email in detail when sending to external email domain.

     

    Apache web server is running as user www and group www. All I can figure is www process is trying to send email. I dont have any _www@server.mypersonaldomain.com email account on my server. I also dont know how to change UID allowed to send email. I do use mail relay, and my ISP is rejecting the email from _www@mypersonaldomain.com (because i havent added it as a registered email)

     

    I dont understand when i use the mail() function in my webpages, the FROM email address is not being used, and _www@server.mypersonaldomain.com is being used.

    I have using the following headers

     

      $headers = "From: noreply@mypersonaldomain.com\r\n";

                                                      $headers .= "Reply-To: noreply@mypersonaldomain.com\r\n";

                                                      $headers .= "Return-Path: noreply@mypersonaldomain.com\r\n";

                                                      $headers .= "MIME-Version: 1.0\r\n";

                                                      $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";

     

    mail($to,$subject,$message,$headers))

     

    Mail.log

    =============

    Nov 30 09:24:37 server postfix/pickup[21670]: ACA8116EA2C: uid=70 from=<_www>

    Nov 30 09:24:37 server postfix/cleanup[23826]: ACA8116EA2C: message-id=<20121130142437.ACA8116EA2C@server.mypersonaldomain.com>

    Nov 30 09:24:37 server postfix/cleanup[23826]: sacl_check: mbr_user_name_to_uuid(jp@me.com) failed: No such file or directory

    Nov 30 09:24:37 server postfix/cleanup[23826]: sacl_check: mbr_user_name_to_uuid(@me.com) failed: No such file or directory

    Nov 30 09:24:37 server postfix/qmgr[18852]: ACA8116EA2C: from=<_www@server.mypersonaldomain.com>, size=725, nrcpt=1 (queue active)

    Nov 30 09:24:39 server postfix/smtpd[23830]: connect from localhost[127.0.0.1]

    Nov 30 09:24:39 server postfix/smtpd[23830]: B42CA16EA38: client=localhost[127.0.0.1]

    Nov 30 09:24:39 server postfix/cleanup[23826]: sacl_check: mbr_user_name_to_uuid(jp@me.com) failed: No such file or directory

    Nov 30 09:24:39 server postfix/cleanup[23826]: sacl_check: mbr_user_name_to_uuid(@me.com) failed: No such file or directory

    Nov 30 09:24:39 server postfix/cleanup[23826]: B42CA16EA38: message-id=<20121130142437.ACA8116EA2C@server.mypersonaldomain.com>

    Nov 30 09:24:39 server postfix/smtpd[23830]: disconnect from localhost[127.0.0.1]

    Nov 30 09:24:39 server postfix/qmgr[18852]: B42CA16EA38: from=<_www@server.mypersonaldomain.com>, size=1308, nrcpt=1 (queue active)

    Nov 30 09:24:39 server postfix/smtp[23827]: ACA8116EA2C: to=<jp@me.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=2.3, delays=0.02/0.02/0.72/1.5, dsn=2.0.0, status=sent (250 2.0.0 from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as B42CA16EA38)

    Nov 30 09:24:39 server postfix/qmgr[18852]: ACA8116EA2C: removed

    Nov 30 09:24:40 server postfix/smtp[23831]: B42CA16EA38: to=<jp@me.com>, relay=smtp.broadband.rogers.com[98.139.263.125]:25, delay=0.51, delays=0.01/0.02/0.43/0.05, dsn=5.0.0, status=bounced (host smtp.broadband.rogers.com[98.149.221.125] said: 553 From address not verified - see http://www.rogershelp.com/verify-email (in reply to MAIL FROM command))

    Nov 30 09:24:40 server postfix/cleanup[23826]: sacl_check: mbr_user_name_to_uuid(_www@server.mypersonaldomain.com) failed: No such file or directory

    Nov 30 09:24:40 server postfix/cleanup[23826]: warning: recipient <_www> uid falls below minimum allowed: 70 < 501

    Nov 30 09:24:40 server postfix/cleanup[23826]: sacl_check: mbr_user_name_to_uuid(@server.mypersonaldomain.com) failed: No such file or directory

    Nov 30 09:24:40 server postfix/cleanup[23826]: 5002616EA3C: message-id=<20121130142440.5002616EA3C@server.mypersonaldomain.com>

    Nov 30 09:24:40 server postfix/qmgr[18852]: 5002616EA3C: from=<>, size=3493, nrcpt=1 (queue active)

    Nov 30 09:24:40 server postfix/bounce[23834]: B42CA16EA38: sender non-delivery notification: 5002616EA3C

    Nov 30 09:24:40 server postfix/qmgr[18852]: B42CA16EA38: removed

    Nov 30 09:24:40 server postfix/pipe[23836]: 5002616EA3C: to=<_www@server.mypersonaldomain.com>, relay=dovecot, delay=0.06, delays=0.02/0.01/0/0.03, dsn=2.0.0, status=sent (delivered via dovecot service)

    Nov 30 09:24:40 server postfix/qmgr[18852]: 5002616EA3C: removed