Current time: 12-25-2024, 11:13 AM Hello There, Guest! (LoginRegister)


Post Reply 
disable mail handling for one or more domains
Author Message
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #6
RE: disable mail handling for one or more domains
motin Wrote:
joximu Wrote:Ah - now it's important, that the DNS knows where the mails (to mydomain.net) have to be send to...

So, you'll need to set this in the zone files.
Normally in debian etch they are in /var/cache/bind/(*.db) - with a copy in /etc/ispcp/bind/working - you already learned about that :-)

the MX line in the zone files should be changed:
either you set the new hostname (with a point at the end) or the right ip number there - or you leave mail.domain.. and give the new ip address in the line where mail is defined...

orig, some lines:
IN MX 10 mail.domain.net.
mail IN A 123.45.67.89
www IN A 123.45.67.89

variant 1:
IN MX 10 mail.newserver.net.
mail IN A 123.45.67.89
www IN A 123.45.67.89

variant 2:
IN MX 10 mail.domain.net.
mail IN A new.ip.of.mx
www IN A 123.45.67.89

or similar...

there is an excellent book from oreilly about bind and dns :-)))

Cheers, J.

Actually, I tried these and a third and a fourth variant to no avail even before I read your reply. Problem is, that however I do this (and regardless of how many times I am restarting/reloading bind9), I get no updated replies from dig... (I got no ANSWER section). There is no DNS cache to flush like on windows and I can only suspect TTL settings interfering here but is that normal? I'll wait 86400 seconds and check dig again... Then I can start to think about paperbacks.

Btw the 3rd variant I tried (and which is still active) was:

Code:
IN      MX      10 mail.mydomain.net.
mail            CNAME   mail.mailserver.com.
www             CNAME   mydomain.net.

...as this is how my external "real" dns is setup - querying mail.mydomain.net gives me a CNAME to mail.mailserver.com.

And btw my mail.mailserver.com resolves to my external mail server IP fine.

Thanks again for watching! Smile

Very important - forgot to tell you:
you have to increment the serial number in the zone file...
its called timestamp in the comment...
most of times it's the date and a 2 letter number:
2007090200
changes on thesame day:
2007090201
2007090202
on the next day
2007090300

I'm sure you got the trick...

Have a good day!
Joximu
09-05-2007 05:57 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread

Forum Jump:


User(s) browsing this thread: 2 Guest(s)