Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: Lowell Fuher on March 09, 2005, 02:58:00 PM

Title: Close Account Email Only?
Post by: Lowell Fuher on March 09, 2005, 02:58:00 PM
How do I shutdown / close email only on a user account?
Title: Re: Close Account Email Only?
Post by: Quail_Linux on March 09, 2005, 03:01:46 PM
Quote from: "moe"
How do I shutdown / close email only on a user account?


Hi moe,

I think what your after is:

(1) log into the server manager

(2) click on "users"

(3) and then click on "lock account" to the said user

HTH
Title: Close Account Email Only?
Post by: Lowell Fuher on March 09, 2005, 03:21:20 PM
HTH,

Actually no.  

Initially that was the shutdown of the account when the employee left, but we need to maintain the account as we retrieve the information from both the server and the workstation.  

I need to re-establish a logon to the account but any emails coming to this particular account name to recieve a "user not on this system (or what ever)" message from the mail server.

But thanks any way...
Title: Close Account Email Only?
Post by: jackl on March 09, 2005, 08:46:01 PM
Moe,

Do you retrieve mail by multi-drop, smtp or etrn.

Jack
Title: Close Account Email Only?
Post by: Lowell Fuher on March 10, 2005, 02:11:14 AM
Quote from: "jackl"

Do you retrieve mail by multi-drop, smtp or etrn.


SMPT
Title: Close Account Email Only?
Post by: Tib on March 10, 2005, 03:06:32 AM
Why don't you use the user vacations message conrib and put in there whatever you want.

That way you still get the e-mail but a message goes back to the sender to let them know that the person is no longer there.

I've set things up this way a few times when people have left.

Regards,

Tib
Title: Close Account Email Only?
Post by: egerards on March 10, 2005, 11:33:17 AM
The solution is rather simple: install dungog-mailblocking-1.0-4.noarch.rpm and create an extra deny rule for this account. Something like: 'deny from *@* to account@yourdomain.com'.
Title: Re: Close Account Email Only?
Post by: CharlieBrady on March 10, 2005, 04:40:04 PM
Quote from: "moe"
How do I shutdown / close email only on a user account?


Define exactly what you mean when you say "close email". Do you want to block POP/IMAP access? Delete all existing messages?

If you just mean "block any incoming email from the Internet to that account", then you can do it via:

/sbin/e-smith/db accounts setprop username Visible internal
/sbin/e-smith/signal-event email-update
Title: Re: Close Account Email Only?
Post by: Lowell Fuher on March 11, 2005, 07:00:48 AM
Quote from: "CharlieBrady"
If you just mean "block any incoming email from the Internet to that account", then you can do it via:
/sbin/e-smith/db accounts setprop username Visible internal
/sbin/e-smith/signal-event email-update


Thanks Charlie!
That is exactly what I was looking for.  The reply from that server after making the change on that particular account reads;

20*.**.**.248 does not like recipient.
Remote host said: 553 Sorry, that address is in my badrcptto list.
Giving up on 20*.**.**.248.


Charlie, Glad your still around keeping us on track.  My first e-smith box was 5 years ago - think that was version 3.1..  <<GRIN>>
Title: Close Account Email Only?
Post by: Tib on March 11, 2005, 12:36:03 PM
The e-mail blocking contrib will do the same thing.

Plus it's on the server-manager panel so you can turn it on or off.

Regards,

Tib
Title: Close Account Email Only?
Post by: Lowell Fuher on March 11, 2005, 03:02:09 PM
Quote from: "Tib"
The e-mail blocking contrib will do the same thing.


Are you talking about the dungog-mailblocking-1.1 rpm?
Title: Close Account Email Only?
Post by: egerards on March 11, 2005, 06:19:21 PM
Quote
Are you talking about the dungog-mailblocking-1.1 rpm?


Ahum, did I not mention the rpm involved a few posts ago? :hammer:

You can download it here (http://www.dungog.net/sme/files/dungog-mailblocking-1.0-4.noarch.rpm).

Now you really should manage...  :-D
Title: Re: Close Account Email Only?
Post by: stefan24 on March 31, 2005, 09:43:21 PM
Hi Charlie!

Quote from: "CharlieBrady"
"block any incoming email from the Internet to that account", [...] you can do it via:

/sbin/e-smith/db accounts setprop username Visible internal
/sbin/e-smith/signal-event email-update


That's what I was searching for, but it does not work here. Even "everyone@domain" is getting through from outside. I found a old post from psoren:

Quote from: "psoren"

I have found that on a fresh install, i can reject one or more email adresses by typing them into /var/qmail/control/badrcptto. BUT then i install AntiVir and it stops working. So AntiVir gets the mails before smtpfront-qmail and smtpfront-qmail does not recognize that it's a blocked adress.
[...]
(http://forums.contribs.org/index.php?topic=23166.msg92475#msg92475)



I can see the users in /var/qmail/control/badrcptto, but they do not get not blocked at all. Any idea (beside asking Knuddi)?