I usually make a vhost for the hostname associated with the mx record, The vhost serves no content, just does a Deny All. This is probably the simplest solution. ~Jorge On Tue, Jul 26, 2011 at 10:24 AM, Amira Othman <a.othman@xxxxxxxxxxxxxxx> wrote: > Hi all > > > > I am using apache httpd-2.2.3-43.3 on centos 5.6.i have 5 virtual hosts .the > server is also mail server and has mx record how can I deny access to url of > mx record as it now goes to default virtual host. Any way to block using > apache or I should use iptables > > thanks --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx