email - SMF "<apache>: sender address must contain a domain" -


i have smf forum installed on own server. reason unable found, smf send emails new user-activation without "from" email address, "apache". obviously, email server not allow , email never received.

i following postfix message postmaster account.

<email@dest.example.com>: host dest.example.com[255.255.255.255] said: 501 <apache>: sender address must contain domain (in reply mail command)  reporting-mta: dns; my.example.com x-postfix-queue-id: 62653a403d7 x-postfix-sender: rfc822; apache arrival-date: sat, 13 jul 2013 01:44:57 +0200 (cest)  final-recipient: rfc822; email@dest.example.com action: failed status: 5.0.0 remote-mta: dns; dest.example.com diagnostic-code: smtp; 501 <apache>: sender address must contain domain  return-path: <apache> received: my.example.com (postfix, userid 48)     id 62653a403d7; sat, 13 jul 2013 01:44:57 +0200 (cest) to: email@dest.example.com subject: example title x-php-originating-script: 48:subs-post.php from: "my page title" <noreply@my.example.com> date: fri, 12 jul 2013 23:44:57 -0000 x-mailer: smf mime-version: 1.0 content-type: multipart/alternative; boundary="smf-2b3ce4fbf69b6d2e40cb7c5b15d5a97c" content-transfer-encoding: 7bit message-id: <20130712234457.62653a403d7@my.example.com> 

i think problem may be:

  1. some configuration php/apache/postfix missing.
  2. smf need additional configuration or has bug.
  3. any other idea?

ps: smf configured send emails php (not smtp)

any idea of how solve problem?

editing: following smtp communication.

 in:  220 server.domain.com esmtp exim 4.69 fri, 26 jul 2013 12:51:21 -0400  out: ehlo my.example.com  in:  250-server.domain.com hello my.example.com [79.143.177.174]  in:  250-size 20971520  in:  250-pipelining  in:  250-auth plain login  in:  250-starttls  in:  250  out: mail from:<apache>  out: rcpt to:<email@dest.example.com>  out: data  in:  501 <apache>: sender address must contain domain  in:  503 sender not yet given  in:  503-all rcpt commands rejected error:  in:  503-503 sender not yet given  in:  503 valid rcpt command must precede data  out: rset  out: quit  in:  250 reset ok 

your sender apache because webserver runs local user.

to ensure forum sending mails explicit sender can add information php.ini

sendmail_path = /usr/sbin/sendmail -t -i -f 'noreply@domain.tld' -f 'forum registration <noreply@domain.tld>' 

-f => name of sender -f => header


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -