[Mediawiki-l] Sendmail error

Justin Morgan JMorgan at d2hawkeye.com
Mon Sep 17 20:31:15 UTC 2007


Figured it out.  It was an iptables problem (argh).  I had TCP port 25
open to localhost, and that worked for telnet mail generation, but
apparently that's not good enough for PHP mail().  Opening the entire
loopback interface did the trick:

sudo iptables -A INPUT -s 127.0.0.1 -j ACCEPT

Thanks for your help.  =)

-Justin


-----Original Message-----
From: mediawiki-l-bounces at lists.wikimedia.org
[mailto:mediawiki-l-bounces at lists.wikimedia.org] On Behalf Of Dave
Sigafoos
Sent: Monday, September 17, 2007 4:00 PM
To: MediaWiki announcements and site admin list
Subject: Re: [Mediawiki-l] Sendmail error

I think if you search the archives you will find information on setting
up email on your server.  If I remember right something about using
curl.

Archives are available here

http://lists.wikimedia.org/pipermail/mediawiki-l/



DSig
David Tod Sigafoos | SANMAR Corporation
PICK Guy
206-770-5585
davesigafoos at sanmar.com 

 


-----Original Message-----
From: mediawiki-l-bounces at lists.wikimedia.org
[mailto:mediawiki-l-bounces at lists.wikimedia.org] On Behalf Of Justin
Morgan
Sent: Monday, September 17, 2007 12:30
To: MediaWiki announcements and site admin list
Subject: Re: [Mediawiki-l] Sendmail error

No, the PHP mail() function causes the same error in the mail.log file.
Curiously, the mail() function reports no errors, though:

Sep 17 15:15:42 justin-ubuntu sendmail[12008]: l8HJFg9q012008:
from=www-data, size=89, class=0, nrcpts=1,
msgid=<200709171915.l8HJFg9q012008 at justin-ubuntu.d2systems>,
relay=www-data at localhost
Sep 17 15:15:46 justin-ubuntu sendmail[12008]: l8HJFg9q012008:
to=jmorgan at d2hawkeye.com, ctladdr=www-data (33/33), delay=00:00:04,
xdelay=00:00:04, mailer=relay, pri=30089, relay=[127.0.0.1] [127.0.0.1],
dsn=4.0.0, stat=Deferred: Connection timed out with [127.0.0.1]

-Justin


-----Original Message-----
From: mediawiki-l-bounces at lists.wikimedia.org
[mailto:mediawiki-l-bounces at lists.wikimedia.org] On Behalf Of Dave
Sigafoos
Sent: Monday, September 17, 2007 3:10 PM
To: MediaWiki announcements and site admin list
Subject: Re: [Mediawiki-l] Sendmail error

Can you send a simple PHP email?

DSig
David Tod Sigafoos | SANMAR Corporation
PICK Guy
206-770-5585
davesigafoos at sanmar.com 

 


-----Original Message-----
From: mediawiki-l-bounces at lists.wikimedia.org
[mailto:mediawiki-l-bounces at lists.wikimedia.org] On Behalf Of Justin
Morgan
Sent: Monday, September 17, 2007 11:16
To: MediaWiki announcements and site admin list
Subject: [Mediawiki-l] Sendmail error

Hello,

I have recently migrated a MW install from Windows to Linux, and I'm
having some trouble getting system-generated emails to work.  First some
versions:

Ubuntu Linux 7.04 (I have root access)
MediaWiki 1.11.0
Apache 2.2.3
PHP 5.2.1
Sendmail 8.13.8
MySQL 5.0.38

Everything else is working... file uploads, ImageMagick, texvc, short
URLs, ParserFunctions, CharInsert, maintenance scripts, all working
fine.

When I try to generate a system email by clicking "Email password", for
example, the page responds successfully, saying the email was sent.
However, the message is never received, and I found the following error
message in /var/log/mail.log:

Sep 17 11:11:52 justin-ubuntu sendmail[11580]: l8HFBqnM011580:
from=www-data, size=649, class=0, nrcpts=1,
msgid=<200709171511.l8HFBqnM011580 at justin-ubuntu.d2systems>,
relay=www-data at localhost
Sep 17 11:11:56 justin-ubuntu sendmail[11580]: l8HFBqnM011580:
to=Jmorgan <jmorgan at d2hawkeye.com>, ctladdr=www-data (33/33),
delay=00:00:04, xdelay=00:00:04, mailer=relay, pri=30649,
relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection
timed out with [127.0.0.1]

MW appears to be generating the email and sending it off to Sendmail,
but Sendmail is not processing it correctly.  From the console, I tried
sending an email manually via the SMTP interface:

$ telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 justin-ubuntu.d2systems ESMTP Sendmail 8.13.8/8.13.8/Debian-3; Mon,
17 Sep 2007 13:42:07 -0400; (No UCE/UBE) logging access from:
localhost(OK)-localhost [127.0.0.1]
ehlo 127.0.0.1
250-justin-ubuntu.d2systems Hello localhost [127.0.0.1], pleased to meet
you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-EXPN
250-VERB
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-AUTH DIGEST-MD5 CRAM-MD5
250-DELIVERBY
250 HELP
mail from: test at example.com
250 2.1.0 test at example.com... Sender ok
rcpt to: jmorgan at d2hawkeye.com
250 2.1.5 jmorgan at d2hawkeye.com... Recipient ok
data
354 Enter mail, end with "." on a line by itself
Test message #3.
.
250 2.0.0 l8HHg7Um011895 Message accepted for delivery
quit
221 2.0.0 justin-ubuntu.d2systems closing connection
Connection closed by foreign host.

The /var/log/mail.log file shows the email being sent successfully, and
I receive the message in my inbox moments later.  The relevant mail.log
records are below:

Sep 17 13:42:00 justin-ubuntu sm-mta[11893]: l8HHfOgm011893:
from=test at example.com, size=0, class=0, nrcpts=0, proto=ESMTP,
daemon=MTA-v4, relay=localhost [127.0.0.1]
Sep 17 13:42:37 justin-ubuntu sm-mta[11895]: l8HHg7Um011895:
from=test at example.com, size=17, class=0, nrcpts=1,
msgid=<200709171742.l8HHg7Um011895 at justin-ubuntu.d2systems>,
proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
Sep 17 13:42:37 justin-ubuntu sm-mta[11897]: STARTTLS=client,
relay=d2hawkeye.com.inbound10.mxlogic.net., version=TLSv1/SSLv3,
verify=FAIL, cipher=AES256-SHA, bits=256/256
Sep 17 13:42:38 justin-ubuntu sm-mta[11897]: l8HHg7Um011895:
to=jmorgan at d2hawkeye.com, delay=00:00:15, xdelay=00:00:01, mailer=esmtp,
pri=120017, relay=d2hawkeye.com.inbound10.mxlogic.net. [208.65.145.2],
dsn=2.0.0, stat=Sent (Backend Replied
[91fbee64.2700422064.18629.00-018.p01c12m013.mxlogic.net]: .6.0
<200709171742.l8HH (Mode: normal))


What is happening differently with the mail triggered from MW?  I am
admittedly new to Sendmail, and the configuration files look very
daunting.

Any help?

Thanks,
-Justin 
 
 
PRIVACY NOTICE

This email and any attachments may be confidential and/or privileged.
Use of the information contained in this email by anyone other than the
intended recipient is strictly prohibited. If you have received this
email in error, please notify the sender by replying to this message and
delete this email.

_______________________________________________
MediaWiki-l mailing list
MediaWiki-l at lists.wikimedia.org
http://lists.wikimedia.org/mailman/listinfo/mediawiki-l

_______________________________________________
MediaWiki-l mailing list
MediaWiki-l at lists.wikimedia.org
http://lists.wikimedia.org/mailman/listinfo/mediawiki-l

_______________________________________________
MediaWiki-l mailing list
MediaWiki-l at lists.wikimedia.org
http://lists.wikimedia.org/mailman/listinfo/mediawiki-l

_______________________________________________
MediaWiki-l mailing list
MediaWiki-l at lists.wikimedia.org
http://lists.wikimedia.org/mailman/listinfo/mediawiki-l



More information about the MediaWiki-l mailing list