Mail() function ?

[B]Hi Interworx Team,

I have any questions about php mail() function :

  • when the interworx was just install, is the function it activates or not?
  • [/B] [B]so not, how must one activate it ?

I ask you these questions because I have problems of sending of e-mail, I have created “inscription.php” who sending mail but it doesn’t work. [/B][B] In testing by a forum, it is the same problem.

I tested with this code :


 <?php  mail('', 'Subject', 'Hi!'); ?> 


                                             it functioned not either.

Why I can’t send e-mail with this function ? :confused::confused:
If you have a solution please ?

Thank you in advance for your answers.

The php mail function should work fine.

You should check the /var/log/send/current log file to see if the message is getting injected into the mail queue or not. If there is evidence of that message in the logs, there will probably also be an error describing why the message wasn’t delivered.


[B]Hi Paul,

I have this message in /var/log/send/current

@40000000436ea02c1c00636c status: local 0/10 remote 0/255
@40000000436ea06e1b623f0c starting delivery 63: msg 852552 to remote
@40000000436ea06e1b624eac status: local 0/10 remote 1/255
@40000000436ea08829c492d4 delivery 63: deferral: CNAME_lookup_failed_temporarily._(#4.4.3)/
@40000000436ea08829c4aa44 status: local 0/10 remote 0/255
@40000000436ea1a22731ca64 starting delivery 64: msg 852555 to remote
@40000000436ea1a22731e1d4 status: local 0/10 remote 1/255
@40000000436ea1b627734034 delivery 64: deferral: CNAME_lookup_failed_temporarily._(#4.4.3)/
@40000000436ea1b6277357a4 status: local 0/10 remote 0/255
                                              that does not speak to me... but can be that you yes.  If you have the solution, please ?                                                   I think that it is a problem of configuration of my share ... :o:o:o

Thank you in advance for your answer

It looks to me like the problem is probably that DNS for the hostname is not set up to resolve to any IP address.


If I understood well, thus I must add in my zone DNS ?

If somebody can answer me, please ?

I suggest just giving that a try :slight_smile: if that doesn’t work repost.


Ok thanks Blahrus :slight_smile:

[B]Hi all,

I tested in adding in my DNS zone but the problem persist :(.

If you are an other solution please ?

Thank you in advance for your answers

I believe it is a problem with your main “Authoritative” DNS.

Doing an NSLOOKUP on the URL gives me an IP address, but seting the type to MX, I get the following response “** server can’t find NXDOMAIN”. You should have this same problem for sending email, not just realted to PHP mail. It seems that there is no MX record for There is an MX for though.

Gimly, what does the mail log say now that you made the change, when you try to send.


[B]Hi Paul and Justec,

I created a DNS zone with with A, CNAME, MX. [/B]I have test with php mail()[B] and now it function correctly i receive correctly the e-mail.

This is the /var/log/send/current

@40000000437337fe2ed835dc new msg 852652
@40000000437337fe2ed84d4c info msg 852652: bytes 798 from <> qp 2347 uid 80
@40000000437337fe2f4660fc starting delivery 272: msg 852652 to remote
@40000000437337fe2f467c54 status: local 0/10 remote 1/255
@40000000437337ff0e12033c delivery 272: failure:<>:_Sender_address_rejected:_Domain_not_found/Giving_up_on_193.252.22.83./
@40000000437337ff0e121e94 status: local 0/10 remote 0/255
@40000000437337ff0ec66ebc bounce msg 852652 qp 2349
@40000000437337ff0ec6862c end msg 852652
@40000000437337ff0eca200c new msg 852657
@40000000437337ff0ecb411c info msg 852657: bytes 1477 from <> qp 2349 uid 107
@40000000437337ff0eff0704 starting delivery 273: msg 852657 to local
@40000000437337ff0effd224 status: local 1/10 remote 0/255
@40000000437337ff154f4ca4 delivery 273: success: did_0+0+1/
@40000000437337ff154f6414 status: local 0/10 remote 0/255
@40000000437337ff154f6fcc end msg 852657

I can look delivery success, I suppose that it is good.

Thank you for your assistance.

I’m running php 5.1.1 on the server and I’m also having issues with php mail(). We migrated a site over to our new server running Interworx and quickly noticed any script we were using the mail function was not working. I’ve read through every post in this forum about the problem and none seem to offer any solutions. Is there a problem with running a version of php higher than than the default 4.3.11?

I’m getting a lot of entries in my log like these two (wrong owner and trouble injecting bounce):

@400000004596392d1c8c99f4 delivery 16: deferral: Sorry,message_has_wrong_owner.(#4.3.5)/
@400000004596392d1c8d3e04 status: local 0/10 remote 0/255
@400000004596392d1c994bf4 warning: trouble injecting bounce message, will try later

I’m beginning to have concern about my decision to switch from Plesk to Interworx. The migration process from one to the other has been slow since I keep running into odd things like this. I’ve never had any issues with Plesk for the past 6 years I’ve been running it. I was initially impressed with your control panel which is why I decided to give it a try on our new server. Please tell me I didn’t make a mistake.

Sounds like this is related to the other issue you were talking about in your other thread. Check the suggestions I mentioned there, and if that doesn’t resolve this problem, open a ticket with your root and nodeworx login information, and we’ll check it out.