404 error on Mail subdomain

riteshsanap

Verified User
Joined
Feb 4, 2011
Messages
17
Hi in the Earlier Thread i asked for Squirrel Mail on a Subdomain on
Code:
http://directadmin.com/forum/showthread.php?t=39439

Thanks for that but i have tried the solution stated their and means at
Code:
http://help.directadmin.com/item.php?id=92

but now i m getting a 404 error at that page

instead of webmail i have kept only mail as my users want it

Any Solution will be Helpful
 
By default mail is reserved by Directadmin for MX in DNS. And if you've got more than one IP addresses on your box, and if for your client is used a different IP (not that one with status server), that's where your problem comes from.

Check nslookup for domain.com and mail.domain.com. Do they match?
 
As long as the mail subdomain points to the same server, the IP# shouldn't matter. Becase you created a new thread and I'm not going to take the time to look for the old one, I don't know what guides you followed or what other steps you took, so I can't help you with why it didn't work.

Jeff
 
Ok,

Please, describe here, what exactly have you done? What is in logs for the specified virtual hosts? And what do you have in httpd.conf for that domain?
 
I have just followed the steps given in the tutorial but just in the place of webmail did it just mail
 
It won't work, if you just follow the guide step by step without thinking. The guide is outdated. Last Modified: Feb 12, 2008, 2:44 pm. It might be my fault, I did not mentioned that before. I gave you that link to understand the idea, which should be accepted only with certain modifications.

1. In suggested tutorial Apache 1.x is used (But there is still a remark or virtual_host2.conf if you're using apache 2). And you're using Apache 2.x most likely.

2. In suggested tutorial SquirrelMail is supposed to be installed and used. Do you have it?


The very first code should be modified, if using with Apache 2.x:

Code:
cd /usr/local/directadmin/data/templates
cp virtual_host2.conf custom
cd custom


That's why I asked you:

What is in logs for the specified virtual hosts? And what do you have in httpd.conf for that domain?

But my questions were ignored.
 
Last edited:
Ya i have squirrel Mail installed ,

As 404 is not found error i went to the directory and saw , the squirrel mail was present their
 
With that information, I don't know, who can help you. Not me.

You go your own? Or will do what you're ask for?
 
I guess the Custom Virtual Host File is not getting added in apache and therefore it is happening like that ? So any solution for this


Sorry for replying back like this - i was unable to edit earlier Post
 
The File name is virtual_host.conf

and yes i have done that
Code:
echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue
/usr/local/directadmin/dataskq d
 
Back
Top