How do I configure email to send from nobody account correctly.

Brook

Well-Known Member
Apr 22, 2005
99
0
156
Hi

I recently sent out a mailer from my forums however a large proportion were sent back to me with the error:

<[email protected]>... Sender domain must exist

I thought I read somewhere that I need to configre exim to send email from just mydomainname.com and not myhostname.mydomainname because mydomainname.com will have an mx record and myhostname.mydomainname will not.

Any ideas on how to do this tho?

thanks.
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
31
473
Go on, have a guess
That's not true. You need to make sure that:

1. You do not have WHM > Tweak Settings > Prevent the user 'nobody' from sending out mail to remote addresses

2. That you do have a valid email address in WHM > Change System Mail Preferences
> nobody's email

3. That you have an A record for your hostname in the authoratitve zone for your domain (i.e. that servername.domain.com has a correct A record in the zone file for domain.com)

4. That servername.domain.com exists in /etc/localdomains

alternatively, recompile apache/php with phpsuexec enabled ;)
 

Brook

Well-Known Member
Apr 22, 2005
99
0
156
Hi Chirpy - thanks for the reply.

I have checked 1) and 2) and they are as you specified.

However how do I check number 3): ?

"That you have an A record for your hostname in the authoratitve zone for your domain (i.e. that servername.domain.com has a correct A record in the zone file for domain.com)"

I have checked number 4):

"That servername.domain.com exists in /etc/localdomains "

And it is ok.

If I enable phpsuexec, will my forum emails etc stop working? How will it effect contact forms etc? Its just that I've heard it can cause problems? Sorry Im a bit of a nube :)
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
31
473
Go on, have a guess
An alias should be fine.

You do need item 3. as that's the most likely cause of the problem. If you use your server for DNS and have nameservers configured for the server and you host yourdomain.com on the server, then in WHM > DNS > Edit DNS Zone > yourdomain.com > make sure that you have an A record for servername.yourdomain.com. pointing to the main IP address.

There can be issues with enabling phpsuexec (check the forums).
 

Brook

Well-Known Member
Apr 22, 2005
99
0
156
ok so now I have added this:

hostname.mydomain.com. 14400 IN A 18.55.170.47

Is there anyway to check that everythings ok? Im so worried my server will stop working!!
(sorry to be a chicken as well as a nube!)

Do I need to restart anything? or does it do it automatically?

thanks again for your help and bearing with me :)
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
31
473
Go on, have a guess
That should be all you need to do. It may take a while for some other servers to see the change (as DNS is propagated - usually around 24 hours) but you could try testing it out buy filling in a web-based email form that sends off-server and see if it now works.
 

Brook

Well-Known Member
Apr 22, 2005
99
0
156
Thanks!

I've sent out a test and hopefully it works!
(if you don't hear back from me on this thread it did! :))
Thanks again for your help!