Current time: 07-07-2024, 05:43 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: #4
RE: disable mail handling for one or more domains
motin Wrote:Hey thanks for replying so quickly!

I had time to do some research before you replied, and with your answers everything is coming together.

joximu Wrote:deactivate the whole line. (see documentation of postfix - it's free...)

I searched for "domains" in man postfix

Well, the filename is not fixed - here's the reference... (main.cf)
virtual_mailbox_domains = hash:/etc/postfix/ispcp/domains

motin Wrote:and instead wanted to try my luck on the forums before reading postfix's fm. Was especially non-motivated to read it since the whole issue here is how to avoid using postfix on the server...

Btw that was what I did. When I wrote "bracket" - I meant one of them squares / woodpile / whateverthenameisinenglish characters: #

Gartenhag, Rautenzeichen, Number Sign (http://en.wikipedia.org/wiki/Number_sign) :-)

motin Wrote:
joximu Wrote:nope, I mean the same file you just edited one stpe before:
/etc/postfix/ispcp/domains

in /etc/ispcp/.../working there are copies of the current configuration.
It's often needed that you copy the self modified files also to this place. Otherwise ispCP might overwrite your changes.

Yeah, I now understand that this update the database file, and running in the other directory will not update the database file that is in current use. "Auto-reply: Exactly"

joximu Wrote:"relay=virtual" means: postfix found the domain to be a local virtual domain and want's to handle the mail in this way...

Hope you got a glimpse of light :-)

Cheers
Joximu

Yeah I sure did! Thanks.

Now I get some errors that are more understandable to a non-postfix-user:

Sep 5 01:23:57 ubuntu103 postfix/smtp[1458]: C981CBD08A7: to=<test@mydomain.net>, relay=none, delay=0, status=deferred (Host or domain name not found. Name service error for name=mydomain.net type=MX: Host not found, try again)

Got some forum threads to support me on this one:
http://www.isp-control.net/forum/custom-...ml#pid2532
http://www.isp-control.net/forum/how-to-...ml#pid4845
http://www.isp-control.net/forum/remove-...ml#pid4872

So I'll be allright.

In case you have any more light to shed on the DNS matter that would prevent me from doing something I'd regret, you are very welcome to shed it too of course.

Cheers!

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.
(This post was last modified: 09-05-2007 10:05 AM by joximu.)
09-05-2007 10:05 AM
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: 1 Guest(s)