Current time: 12-24-2024, 06:28 AM Hello There, Guest! (LoginRegister)


Post Reply 
Can I turn off mail for a domain?
Author Message
Erik Offline
Newbie
*

Posts: 5
Joined: Feb 2008
Reputation: 0
Post: #1
Can I turn off mail for a domain?
Hello,

I'm looking for a way to turn of mail for certain domains so mail can be handled by another server.
A non-solution is just changing the DNS records (mx and such) because the server itself will still deliver mail to the local postfix server Sad

Does anyone have a suggestion?
03-20-2008 01:20 AM
Find all posts by this user Quote this message in a reply
rbtux Offline
Moderator
*****
Moderators

Posts: 1,847
Joined: Feb 2007
Reputation: 33
Post: #2
RE: Can I turn off mail for a domain?
remove the domain and the accounts from:
/etc/postfix/ispcp/{aliases,domains,mailboxes}
/etc/ispcp/postfix/working/{aliases,domains,mailboxes}

and restart postfix...
(This post was last modified: 03-20-2008 01:27 AM by rbtux.)
03-20-2008 01:27 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Erik Offline
Newbie
*

Posts: 5
Joined: Feb 2008
Reputation: 0
Post: #3
RE: Can I turn off mail for a domain?
That is what we currently do. You need to run "postmap domains" too to update the database. But every change in the control panel will undo the changes made. I'm looking for a permanent fix like an option to handle or not handle mail for a domain in the control panel itself. It's a requirement that most users will need so I hoped I just missed some option somewhere.
03-20-2008 01:30 AM
Find all posts by this user Quote this message in a reply
Cube Offline
Member
***

Posts: 740
Joined: Apr 2007
Reputation: 9
Post: #4
RE: Can I turn off mail for a domain?
I am not sure, but I think an entry in postfix's transport-map would be enough. It's not in the panel, but quite easy to do.
03-20-2008 01:32 AM
Find all posts by this user Quote this message in a reply
rbtux Offline
Moderator
*****
Moderators

Posts: 1,847
Joined: Feb 2007
Reputation: 33
Post: #5
RE: Can I turn off mail for a domain?
then you havn't changed the files under /etc/ispcp/postfix/working/{aliases,domains,mailboxes}
they make the change permanent

and no there is no option in the panel...
(This post was last modified: 03-20-2008 01:34 AM by rbtux.)
03-20-2008 01:33 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Erik Offline
Newbie
*

Posts: 5
Joined: Feb 2008
Reputation: 0
Post: #6
RE: Can I turn off mail for a domain?
rbtux Wrote:then you havn't changed the files under /etc/ispcp/postfix/working/{aliases,domains,mailboxes}
they make the change permanent

and no there is no option in the panel...

rbtux, thanks. I did not know there were such files for the mail config too. This will at least provide a permanent fix although it's still a feature request that should be made (in my opinion).
03-20-2008 01:45 AM
Find all posts by this user Quote this message in a reply
BioALIEN Offline
Public Relations Officer
*****
Dev Team

Posts: 620
Joined: Feb 2007
Reputation: 5
Post: #7
RE: Can I turn off mail for a domain?
Just to outline, I believe the feature request made here is 100% valid. Especially with hosted app services such as Google and Live, a domain user (yes at the user level) may want their mail handled elsewhere.
(This post was last modified: 03-20-2008 05:01 AM by BioALIEN.)
03-20-2008 05:00 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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