php mail() exim Frozen remote_smtp defer (-1) 0x000b

nicknn

Verified User
Joined
Oct 4, 2006
Messages
31
Hi

Many directadmin users have problem to send email with php mail() and exim.
the messages are geting frozen with error

2006-10-04 15:07:08 Received from [email protected] U=apache P=local S=391 T="test"
2006-10-04 15:07:08 doamin2.doamin2.com R=lookuphost T=remote_smtp defer (-1): smtp transport process returned non-zero status 0x000b: terminated by signal 11
*** Frozen

I have this problem on 1 servers some days ago.
the solution posted in
http://help.directadmin.com/item.php?id=114
did not worked for me

I figured out a hack to bypass ( not solve) the problem

First change the virtual_host2.conf or virtual_host.conf tempalte

in
/usr/local/directadmin/data/templates
accordint this post
http://help.directadmin.com/item.php?id=2

php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f |USER|@|DOMAIN|'

to

php_admin_value sendmail_path '/usr/sbin/exim -t -odq -f |USER|@|DOMAIN|'

Replace -i to -odq, so exim does not try to send (and freeze) the mail, just put it to the spool

Then edit /etc/sysconfig/exim
and change the Quene value to 5 minutes.

So all email send with php mail() function go to spool, and delivered in avarage 2,5 minutes

No perfect, but at least works

iF anyone has the solution to bypass this problem without hacks, please post
 
Yeah, I'm doing a cronjob on the queue so this is almost the same.

I posted another comment on the bugzilla from Exim.

http://www.exim.org/bugzilla/show_bug.cgi?id=384

It's getting really annoying now!
 
Hello,

Just as an update, I believe we've nailed down why this is happening.

It seems to be a system filedescriptor limit issue with either exim or apache, or both at the same time.

In any case, you'll want to crank up your FD_SETSIZE values as instructed in this guide, step3 and step4:
http://help.directadmin.com/item.php?id=9

Then do a full exim recompile from source (whichever is approriate for your system/os)
http://help.directadmin.com/?query=exim+compile+source

and a full apache/php recompile.
 
Back
Top