Koozali.org: home of the SME Server

Close Account Email Only?

Offline Lowell Fuher

  • ****
  • 73
  • +0/-0
Close Account Email Only?
« on: March 09, 2005, 02:58:00 PM »
How do I shutdown / close email only on a user account?
Moe.....................

Quail_Linux

Re: Close Account Email Only?
« Reply #1 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

Offline Lowell Fuher

  • ****
  • 73
  • +0/-0
Close Account Email Only?
« Reply #2 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...
Moe.....................

Offline jackl

  • ****
  • 136
  • +0/-0
Close Account Email Only?
« Reply #3 on: March 09, 2005, 08:46:01 PM »
Moe,

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

Jack
......

Offline Lowell Fuher

  • ****
  • 73
  • +0/-0
Close Account Email Only?
« Reply #4 on: March 10, 2005, 02:11:14 AM »
Quote from: "jackl"

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


SMPT
Moe.....................

Offline Tib

  • *
  • 571
  • +0/-0
    • http://www.tibors.net
Close Account Email Only?
« Reply #5 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

egerards

Close Account Email Only?
« Reply #6 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'.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Close Account Email Only?
« Reply #7 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

Offline Lowell Fuher

  • ****
  • 73
  • +0/-0
Re: Close Account Email Only?
« Reply #8 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>>
Moe.....................

Offline Tib

  • *
  • 571
  • +0/-0
    • http://www.tibors.net
Close Account Email Only?
« Reply #9 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

Offline Lowell Fuher

  • ****
  • 73
  • +0/-0
Close Account Email Only?
« Reply #10 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?
Moe.....................

egerards

Close Account Email Only?
« Reply #11 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.

Now you really should manage...  :-D

Offline stefan24

  • *****
  • 483
  • +0/-0
    • www.sme-server.de
Re: Close Account Email Only?
« Reply #12 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)?