LinuxGeneral discussion of programming the various flavors of Linux operating systems.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Linux section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
I have a domain like mydomain.com and a virtual host domain as something.mydomain.com with an IP.
My objective is that I want to send all mails directed to *.something.mydomain.com (eg xxx@yahoo.com.aa.bb.something.mydomain.com)
to a user say root in something.mydomain.com. I mean all mails coming in *.something.mydomain.com should be redirected to root@something.mydomain.com.
something.mydomain.com is also my mail server.
I am using Red Hat Linux with Bind .
I have created zone file like mydomain.com.zone in /var/named with
an wildcard Mx Entry and A record. and also pointed this file in named.conf.
But it is not working .
My zone file looks like this :
@ IN SOA ns1.mydomain.com. root.mydomain.com. (
2003080801 ; serial
28800 ; refresh
14400 ; retry
3600000 ; expire
86400 ; default_ttl
)
;name server
IN NS ns1.mydomain.com.
IN NS ns2.mydomain.com.
;mail server
*.mydomain.com. IN MX 10 someone.mydomain.com
;public server
ns1.mydomain.com IN A ip- of- primary name- server
ns2.mydomain.com IN A ip- of- slave name- server
www IN A ip- of- mail- server
ftp IN A ip- of- mail- server
mail IN A ip- of- mail- server
;end
# Now I have written in named.conf file
zone "vpscenter.com"{
type master;
file "vpscenter.com.zone";
allow-transfer { ip- of- slave name- server
};
I have started named dameon.
but I am not getting the desired result.
Can you post the output of:
$ cat /etc/resolv.conf
I dunno much about setting up BIND, but assuming that your setup is right and BINDs running ok, most likely you're looking at the wrong nameserver (rather than your local box, you're using some other DNS).
Maybe check that
$ dig yourdomain.whatever MX
gives the right result too.
--
Don't Stand on your head - you'll get footprints in your hair.