PDA

View Full Version : PHP MAIL/Sendmail not going through


uniacid
12th December 2007, 23:18
This is beginning to annoy the hell out of me, I've been trying to resolve this issue for hours now.

On this domain I setup I am using an external mailserver since my mail server is dedicated and separate, I used a similar setup for another domain and that works but for whatever reason this new domain I am working on doesn't send mail at all.

Using a basic php mail test I get a 500 internal server error
I checked to make sure that the domain and co-domain are both using the external mail server option, I also checked the local-host-names config file for sendmail to make sure the domain isn't present.

Here are the maillog contents when I try my test:

Dec 12 16:13:37 ac sendmail[5286]: lBCLDbNX005286: from=web19_admin, size=81, class=0, nrcpts=1, msgid=<200712122113.lBCLDbNX005286@REMOVED>, relay=web19_admin@localhost
Dec 12 16:13:37 ac sendmail[5286]: lBCLDbNX005286: to=steven@REMOVED, ctladdr=web19_admin (10005/10019), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30081, relay=[127.0.0.1] [127.0.0.1], dsn=5.6.0, stat=Data format error

As you can see above it seems like for whatever reason it's trying to send it locally to itself when I use this domain which shouldn't be happening and I don't see how it is....


Any ideas anyone?


TIA.

till
13th December 2007, 18:57
Please make sure that the domain is not listed in the postfix main.cf file.

uniacid
13th December 2007, 19:36
Till,

FYI I am just using sendmail on this server, I didn't setup postfix on here as i didn't need it. I checked the sendmail.cf and .mc files and I don't have this domain set as the master domain in any of those files.

uniacid
21st December 2007, 17:08
Well I just created another domain and I am still having the same issue, seems like for whatever reason it's trying to route mail internally even though I've set it to use an external mail server and I've checked my sendmail config files to make sure that the domain wasn't listed as a local domain also.


Anyone have any ideas?

uniacid
21st December 2007, 21:11
I guess no one here responds :X

Just to make myself clear, I am using Centos 5 (followed howtoforge perfect server setup) Using sendmail instead of postfix. I've checked the config files (local-host-names) and they are not holding the domains that I am getting these errors on and I've also made sure that both the domain and co-domain are set to use an external mail server.

If someone could help explain why this is happening it would be much appreciated because so far I am lost as I've checked everything I could think of.

falko
22nd December 2007, 16:54
I'm not a Sendmail expert. I think it would be easier to help if you were using Postfix (which is a lot easier to manage than Sendmail).