Current time: 11-16-2024, 09:47 AM Hello There, Guest! (LoginRegister)


Post Reply 
Disable mail for a domain
Author Message
theprincy Offline
Member
***

Posts: 311
Joined: Nov 2008
Reputation: 2
Post: #21
RE: Disable mail for a domain
(12-29-2009 05:14 PM)motokochan Wrote:  Are you sure the mail is being sent from this specific server? Have you confirmed on the mail log?

yes, is sent from domain orsus.it
(12-29-2009 05:19 PM)kilburn Wrote:  You should have it:
Code:
MiniBender:ispcp kilburn$ grep CMD_SASLDB_PASS configs/*/ispcp.conf
configs/centos/ispcp.conf:CMD_SASLDB_PASSWD2 = /usr/sbin/saslpasswd2
configs/debian/ispcp.conf:CMD_SASLDB_PASSWD2 = /usr/sbin/saslpasswd2
configs/fedora/ispcp.conf:CMD_SASLDB_PASSWD2 = /usr/sbin/saslpasswd2
configs/freebsd/ispcp.conf:CMD_SASLDB_PASSWD2 = /usr/local/sbin/saslpasswd2
configs/gentoo/ispcp.conf:CMD_SASLDB_PASSWD2 = /usr/sbin/saslpasswd2
configs/openbsd/ispcp.conf:CMD_SASLDB_PASSWD2 = /usr/local/sbin/saslpasswd2
configs/opensuse/ispcp.conf:CMD_SASLDB_PASSWD2 = /usr/sbin/saslpasswd2
configs/redhat/ispcp.conf:CMD_SASLDB_PASSWD2 = /usr/sbin/saslpasswd2
configs/ubuntu/ispcp.conf:CMD_SASLDB_PASSWD2 = /usr/sbin/saslpasswd2

yes
(This post was last modified: 12-29-2009 05:30 PM by theprincy.)
12-29-2009 05:28 PM
Visit this user's website Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #22
RE: Disable mail for a domain
If you disabled the account's password as I told you and there are still new messages appearing, it means that the website of this user got hacked or has a bug, and someone is sending the emails through it. You need to discover the vulnerable script and correct it...
12-29-2009 05:59 PM
Visit this user's website Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #23
RE: Disable mail for a domain
(05-08-2008 08:48 PM)KeNt Wrote:  nano /etc/postfix/ispcp/domains
comment domain
cp /etc/postfix/ispcp/domains /etc/ispcp/postfix/working
cd /etc/postfix/ispcp
postmap domains

Enjoy!

p.s. I want to do this by mouse. Maybe this feature will be realesed in 1.0 or 1.1 ?

It works with the gui:

- switch to the user (dom.tld)
- delete all mail accounts
- switch back to the corresponding reseller
- change the domain, set the numer of mail accounts to -1 (disable), and change the number of tranfervolume -> ok
- if needed: change the domain, set the transfervolume back to the previus number

this way the domain is removed from the domain hashfile (the mportant thing is the change of the transfer volume).

/J
01-20-2010 07:46 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Dylan Offline
Junior Member
*

Posts: 100
Joined: Mar 2010
Reputation: 1
Post: #24
RE: Disable mail for a domain
(01-20-2010 07:46 PM)joximu Wrote:  It works with the gui:

- switch to the user (dom.tld)
- delete all mail accounts
- switch back to the corresponding reseller
- change the domain, set the numer of mail accounts to -1 (disable), and change the number of tranfervolume -> ok
- if needed: change the domain, set the transfervolume back to the previus number

this way the domain is removed from the domain hashfile (the mportant thing is the change of the transfer volume).

/J

It's not work for me at 1.0.7

In the /etc/bind/domain.tld.db file have a line:
IN MX 10 mail.domain.tld. (after it, have my unique settings, what I set in the admin panel)

So the default mx record stay in the settings... (I hope you understand)

Please help! If I change the mx record on a single domain, what can I do?

Thank you!
04-11-2011 08:39 PM
Visit this user's website Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #25
RE: Disable mail for a domain
The procedure explained by joximu is to tell postfix that it is not the recipient of the domain's e-mails, yet it will not magically change the DNS MX records to your external email server.

You'll have to do this modification manually, either through the custom DNS manager or by directly modifying the bind zones in /etc/ispcp/bind/working/domain.tld.db *and* /var/cache/bind/domain.tld.db. Don't forget to update the serial number.
04-14-2011 04:34 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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