[Mediawiki-l] confirmation email from=<apache at server.localdomain> - where to change it?
Tomasz Chmielewski
mangoo at wpkg.org
Tue Nov 20 23:36:07 UTC 2007
Tom Brown schrieb:
> It uses $wgPasswordSender if $from is null. I don't see sendMail getting
> called with a 'from' address. Maybe I missed it somewhere. I also found
It looks the problem is somewhere else, in MTA probably? PHP? Web
server? MediaWiki?
This is Postfix log - user registered, and MediaWiki is trying to send
an email:
Nov 21 00:29:36 web2 postfix/pickup[4135]: 6A86B5D7F0: uid=71 from=<apache>
Nov 21 00:29:36 web2 postfix/cleanup[6057]: 6A86B5D7F0:
message-id=<20071120232936.6A86B5D7F0 at web2.localdomain>
Nov 21 00:29:36 web2 postfix/qmgr[2662]: 6A86B5D7F0:
from=<apache at web2.localdomain>, size=1326, nrcpt=1 (queue active)
Nov 21 00:29:36 web2 postfix/smtp[6059]: 6A86B5D7F0:
to=<real at mail.address>, relay=mail.wpkg.org[87.79.32.166]:25, delay=0.3,
delays=0.06/0.03/0.14/0.07, dsn=4.1.8, status=deferred (host
mail.wpkg.org[87.79.32.166] said: 450 4.1.8 <apache at web2.localdomain>:
Sender address rejected: Domain not found (in reply to RCPT TO command))
So, let's inspect the mail - it still can be found in Postfix' deferred
directory:
# strings 6A86B5D7F0
CO 1326 203 1 0
1326T
1195601376 403499A
create_time=1195601376A
rewrite_context=localF
system user for apache-confS
apache at web2.localdomainM
N7Received: by web2.localdomain (Postfix, from userid 71)N5 id
6A86B5D7F0; Wed, 21 Nov 2007 00:29:36 +0100 (CET)N
To: Tester13 <real at mail.address>N
Subject: Site Title e-mail address confirmationN!HTTP-Posting-Client:
87.79.44.194N'HTTP-Posting-URI:
wpkg.org:80/index.phpN`HTTP-Posting-User-Agent: Mozilla/5.0 (compatible;
Konqueror/3.5; Linux) KHTML/3.5.8 (like Gecko)N
MIME-Version: 1.0N'Content-type: text/plain; charset=UTF-8N
Content-Transfer-Encoding: 8bitN
X-Mailer: MediaWiki mailerN
From: postmaster at wpkg.nospamN8Message-Id:
<20071120232936.6A86B5D7F0 at web2.localdomain>N+Date: Wed, 21 Nov 2007
00:29:36 +0100 (CET)N
NESomeone, probably you from IP address 87.79.44.194, has registered anN
account "Tester13" with this e-mail address on Site Title.N
NCTo confirm that this account really does belong to you and activateN
e-mail features on Site Title, open this link in your browser:N
NEhttp://wpkg.org/Special:Confirmemail/42a40ad1ac99277369278ee6f55a5958f5N
NCIf this is *not* you, don't follow the link. This confirmation
codeN'will expire at 23:29, 27 November 2007.X
encoding=8bitO
So, we see that the "From:" field is set correctly by MediaWiki -
however, the remote SMTP server rejects it, as it doesn't come from a
real address like "postmaster at wpkg.nospam", but from
"apache at web2.localdomain".
What should I configure on my system to get it working properly?
--
Tomasz Chmielewski
http://wpkg.org
More information about the MediaWiki-l
mailing list