Someone leaves the company: disabling the account, passing on the mail, keeping the data

Jack Green (jgreen, administration) leaves John Smith Ltd on 31 December. His work passes to Julia Brown (jbrown). The company wants:

Situation

Jack Green (jgreen, administration) leaves John Smith Ltd on 31 December. His work passes to Julia Brown (jbrown). The company wants:

  • that from his last day Jack can no longer get in anywhere: Windows, console, VPN, files, phone;
  • that whoever still writes to jgreen@johnsmith.test knows whom to contact, and that work messages are not lost; the address invoices@johnsmith.test (which for the example is in the «Alternate emails» of his account) passes to Julia;
  • to keep Jack’s work data: the personal folder, the work mail, the calendar, his Caveau entries, the voicemail messages;
  • to close the account for good only after a short and declared transition period, here 30 days.

The delicate point is the order. In Atlas «Disable» stops everything at once, but it also stops incoming mail (see the choice below), and some things can only be done with the account still active and only by whoever owns them. For this reason the scenario has two stages: on the last day the account is suspended with the expiry date, which closes the accesses and leaves the mail alive; after the transition period it is disabled.

Before you start: privacy

A company mailbox also contains personal messages, and the mail of a person who is leaving is not a company archive like any other. This scenario explains how to do it with Atlas; whether and how far to do it is decided by the company, beforehand, in writing. These are the common-sense rules the manual applies (they derive from the Italian Data Protection Authority’s (the «Garante per la protezione dei dati personali») guidelines on e-mail in the employment relationship and from the GDPR, the European Union’s General Data Protection Regulation; check them with your data protection officer or a consultant, and with the rules that apply in your own country):

  • A written rule, communicated beforehand, is needed. A short «use of e-mail and the internet» document handed to all employees, saying: the mailbox is a work tool; what happens to the mail when a person leaves; who can access work messages, for what purpose and for how long; how long the backups are kept. If it does not exist yet, write it and hand it out before using this scenario. In the John Smith Ltd example a rule is assumed with these values: automatic reply and access to work messages only for 30 days, then account disabled. The values are an example: the company decides them.
  • The worker takes part. Before leaving, Jack sorts his messages: work ones go into a handover folder, personal ones he deletes or takes away.
  • You give the new address, you do not read the mailbox. The automatic reply with an alternative work address is exactly what the Italian Data Protection Authority recommends. Forwarding incoming messages to a colleague and access to the mailbox are exceptions to be used only if provided for by the written rule, limited in time and to what is necessary.
  • Role addresses do not raise the problem. invoices@ is not a person’s address: passing it to Julia is always lawful.
  • Backups count. The mailbox stays in the snapshots until they expire according to the retention that is set. The manual does not describe an operation to remove a single person from snapshots already taken: the retention period is a decision to take beforehand (and to write in the rule).

Warning The step that touches the content of other people’s mailboxes is number 9: Julia’s access to a folder. Do not give her access to the whole mailbox and do not do it without a written rule. If someone asks to read Jack’s messages “to see what is there”, it is not a step of this scenario: it requires a documented decision of the company, with the data protection officer.

What you need

  • An administrator (for example lwhite).
  • The written rule described above, already handed to the employees.
  • Jack present in the last week, for sorting the mail, the Caveau and the voicemail messages: no administrator can read or transfer another person’s Caveau entries (User tools).
  • Julia, to whom Jack’s role addresses and work messages pass.
  • The modules: domain, Mail, Groupware for the automatic reply and the calendars, Telephony for the extension, and a working backup (Backup).
  • A mail program (Thunderbird, Outlook, the phone) to create a folder: Atlas’s webmail does not create folders (Groupware).
  • A list, written beforehand, of what Jack owns: Caveau folders, calendars and address books shared with others, alternative addresses, the extension, app passwords, connected devices.

Warning Do not delete the account on the day of departure. «Delete» revokes MFA tokens, app passwords and AI access (MCP), removes the extension and reapplies the PBX, but leaves the personal folder and the mailbox on the disk; the address, however, ceases to exist and incoming mail bounces. Deleting is the final step, after the transition period, and only with a recent, verified backup.

Disable or let it expire?

«Disable» «Account expires on»
Windows and VPN refused refused
Atlas and chat sessions closed at once closed within 5 minutes
App passwords no longer valid no longer valid
Connections to shared files closed at once not closed at once: a PC with a valid Kerberos ticket may stay connected for up to 10 hours
Incoming mail is no longer accepted for that address keeps arriving, and the automatic reply keeps answering

The row about mail is the reason for the scenario. The one for «Account expires on» is written in the chapter Users; the one for «Disable» comes from the mail server’s code: the Postfix tables used to resolve mailboxes and forwards exclude disabled accounts, so a disabled address no longer resolves. The console does not say so anywhere: test it with a message (step 29) before trusting it.

Why not disable at once? Because once the address is disabled, whoever writes receives a bounce without the new address. As long as the account has only expired, the automatic reply tells everybody whom to contact: that is why the transition period is kept short but is not zero.

Steps

A. In the last week, with Jack present

  1. Sorting the mail. Jack opens his mail program and creates a folder Handover in the mailbox. He moves to it the work messages that his replacement needs (contracts in progress, open requests). The personal messages he deletes or exports to his own device. A message of which it is unclear whether it is personal or work stays with him: Jack decides.
  2. Handover record. Write two lines signed by both: what has been put in Handover, to whom his role addresses pass, until when the automatic reply and the access stay active (30 days from 31 December). Whoever manages personnel files it.
  3. Caveau. Jack signs in and opens Tools → Caveau. For each shared folder he owns he chooses «Transfer folder ownership», «New owner» jbrown, and confirms with «Transfer». He leaves «Destination folder» on «Leave it where it is» if he does not want to move them. From then on Jack loses access if he has no permission of his own; for single entries he uses «Transfer ownership». Then check with Julia’s account that the folders appear among hers. Entries not transferred are lost with the account: the Caveau has no exceptions for administrators and has no recycle bin.
  4. Voicemail. Jack listens to the messages from his phone (*97 and the PIN) or reads them from the notification mail the PBX sent him. Each message has the recording attached: save them in the folders where they are needed. When you delete the extension (step 25) the voicemail is deleted together with its messages.
  5. Calendars and address books. If Jack had calendars or address books shared with others or to which others contribute, open the card of jgreen in Active Directory → Users and press «Sharing»: the tabs «Calendars», «Contacts» and «Notes» show with whom they are shared. Add jbrown with «Write», so she can keep the work events open. The changes are immediate. An event that Jack considers private he deletes himself beforehand.
  6. Documents on the PC. Ask Jack to move the files from his PC’s local disk to the share \\atlas\administration or to the personal folder Z:. The PC is not in the appliance’s backup unless it is enrolled as a client (Backup).
  7. Backup. Check that the last cycle in Backup → Logs succeeded. If the last one is old, in System → Settings → Backup press «Run now» and wait until Backup → In progress no longer shows the job.

B. The last day

  1. Open Active Directory → Users and choose jgreen. The detail’s title shows his user name.
  2. Give Julia access to the Handover folder only. Press «Sharing» (detail’s bar), tab «Mail», and then «Add»: «User» jbrown, «Scope» «One folder», choose Handover, «Role» «Read». Press «Grant access». Now Julia sees the work messages that Jack handed over to her, from her webmail and from the mail program, and nothing else. Do not choose «The whole mailbox»: the «Inbox» does not appear among the folders and its rights apply to all the folders that have none of their own, so sharing it is equivalent to sharing every message.
  3. Automatic reply. Press «Mail rules (automatic reply, filters)» (requires the Groupware module) and, in the «Automatic reply» tab, turn on «Reply automatically to incoming messages». «Subject»: Jack Green no longer works at John Smith Ltd. «Reply text»: For administrative matters write to invoices@johnsmith.test or to jbrown@johnsmith.test. «Days between two replies»: 7. «From» 2026-12-31 and «Until» 2027-01-30: outside this period the reply does not go out, so it ends by itself on the declared date. Save. This is how whoever writes is directed elsewhere; the forwarding of the next step is not mandatory. The reply goes only to senders whose identity is verified (SPF or DMARC) and to the server’s users, never to mailing lists, bulk mailings and automatic messages: whoever writes from an unverified sender does not get the reply, so the written rule must not promise that “everybody” receives the notice.
  4. Forwarding (optional: only if the written rule provides for it). In the «Forwarding» tab of the same window turn on «Forward incoming messages», write jbrown@johnsmith.test in «Forward to» and leave «Keep a copy in the mailbox» on. Save. Message: «Rules saved and active.» Forwarding is applied by the mail server to incoming messages, even when Atlas is closed (up to 20 different addresses, counting those of the filters too). Note in your diary 30 January, the date on which you turn it off (step 24): the console does not turn it off by itself. If there is no written rule providing for it, skip this step: the automatic reply is enough.
  5. The alternative addresses. Scroll to «Contacts». In «Alternate emails» select invoices@johnsmith.test and press «Remove selected».
  6. Press «Save» at the bottom right. Then open jbrown, add invoices@johnsmith.test in «Alternate emails» with «Add entry» and press «Save». If the console answers «Already used by another account», the first save did not succeed: repeat from step 12.
  7. Jack’s accesses. Go back to jgreen. In the «Features» block turn off «VPN» and «Cloud drive» (if on). For now leave «Sending mail», «Mailbox access» and «Mail delivery» on: they are needed by the automatic reply and the Handover folder. «Sending mail» stays on only so that the automatic reply goes out; nobody uses Jack’s address to write on his behalf.
  8. In «Account expires on» choose the date and time of departure, 2026-12-31 at 18:00, from the browser’s picker. If you set it already in the past the effect is immediate: the user expires at once.
  9. Press «Save». «User updated.» appears. From the expiry Windows and the VPN refuse him; within 5 minutes the Atlas and chat sessions close and the app passwords stop working. Mail keeps arriving and the automatic reply keeps answering.
  10. Department group. Open Active Directory → Groups, choose administration, select jgreen in the «Members» and press «−», then «Save». Atlas closes Jack’s sessions: at the next sign-in he would no longer have the permissions. The folders and files Jack created in the shares stay: they belong to the group, not to the person.
  11. Second factor. Open Tools → MFA enrollment, look for jgreen, press «Revoke token» (the administrator does not need the code). With single sign-on also press «End the sessions» to close Jack’s single sign-on sessions.
  12. The phone. Extension 202 is left active until step 25: the voicemail collects the messages of whoever calls. If Jack has a desk phone that passes to another person, in Telephony → Desk phones replace 202 with their extension in «Assigned extensions».

C. After the departure: checks

  1. After the expiry try to sign in as jgreen to the console and to a PC: access must be refused.
  2. In Active Directory → Users jgreen shows the label «Expired».
  3. Send a test mail to jgreen@johnsmith.test from an external address: the automatic reply with the new address must arrive. If step 11 is active, the message also reaches Julia. If nothing arrives, Mail → Logs shows where it stopped (Mail).
  4. Send a mail to invoices@johnsmith.test: it must arrive at Julia.

D. The transition period (30 days)

  1. On 30 January, at the declared expiry. The automatic reply has already stopped by itself thanks to «Until». Turn off the forwarding: Active Directory → Users → jgreen → «Mail rules» → «Forwarding» tab → turn off «Forward incoming messages» → Save (if you had turned it on). Then revoke Julia’s access to the folder: «Sharing» → «Mail» tab → «Revoke access» on jbrown.
  2. The extension. Open Telephony → Extensions, choose 202 and press «Delete» (confirmation «Remove this extension? Its phones will stop working and its voicemail is deleted with its messages.»): the associated phones stop working and the voicemail is deleted with its messages. If the number is still the destination of an alias or a rule, the console refuses and says where: change that destination first. A number taken by a new holder inherits nothing.
  3. Last check of the backups. Backup → Restore must show in the most recent snapshot «Files and folders» → «User home folders» → jgreen and the «Mail» branch with his mailbox (see Backup). The monthly snapshots (24 by default) stay until the retention discards them: if the written rule provides for a shorter period, adjust the repository’s retention in Backup → Repositories.
  4. Disable. With jgreen selected press «Disable». The label becomes «Disabled». From this moment the address jgreen@johnsmith.test is no longer a recipient: mail bounces. It is the right moment: for 30 days the usual senders have received the reply with the new address.
  5. Why not delete. Leaving the account disabled keeps the login and the address occupied, and tells whoever comes later that that person existed. A deleted account frees the login, and the personal folder and the mailbox stay on the disk with no owner in the directory any more: if you then create a new account with the same login, check by hand what it finds on the disk.
  6. Test first, if in doubt (it can also be done at the beginning). To learn the real behaviour of your version, create a test account, disable it and write to it from outside: the result (bounce or delivery) is what your appliance really does. Then delete it.
  7. Deleting (only if really needed, and as the written rule says). «Delete» asks «Delete this user account? Its sessions are closed and its MFA tokens, app passwords and AI access (MCP) revoked; the home folder and the mailbox stay on disk.» Do it only with the verified backup. The personal folder and the mailbox are then removed by hand, for example from the terminal in System → Shell, at the expiry of the retention the company has set: do not leave the mailbox of a person who has left for years.

Check

  • Jack gets in nowhere: console, Windows, VPN, files. In Status he does not appear among the active VPN sessions.
  • Whoever writes to jgreen@ receives the automatic reply with the new address; invoices@ reaches Julia.
  • Julia sees only Jack’s Handover folder, not his mailbox.
  • Julia’s Caveau shows the transferred folders.
  • Jack’s files are still in \\atlas\administration and in his personal folder (on the disk, under /srv/data/share).
  • The most recent backup contains his personal folder and his mailbox, for the duration you chose.
  • The end dates (forwarding, Julia’s access, disabling) are in the diary with the name of whoever closes them.

Variants

Immediate departure (suspension, removal). There is no time for part A and Jack cannot sort the mail. Press «Disable» on the account at once: the Atlas and chat sessions, the VPN session and the connections to files close at once and the app passwords stop being valid. Cost: incoming mail is no longer accepted and whoever writes receives a bounce without the new address. If you need the automatic reply to keep working, instead let the account expire with a date already in the past (immediate effect) and turn off «VPN» and «Cloud drive» by hand; then close the connections to files by restarting the PC or wait for the Kerberos ticket’s maximum of 10 hours. Access to the content of the mailbox remains an exception: it requires a documented work need, decided by the company with the data protection officer, limited to what is needed and, when possible, communicated to the person. The Caveau of someone who leaves in a hurry cannot be recovered: warn whoever shared entries with him.

Temporary collaborator. No departure day needs remembering: set «Account expires on» to the contract date already at creation (2026-12-31 at 18:00). At expiry access closes by itself; mail keeps arriving until you decide to disable. Tell the collaborator, in the written rule you hand over, what happens to their mailbox.

The manager changes role but stays. It is not a departure: only remove the membership of the old department’s group and add it to the new one (Groups and computers); the mailbox, the personal folder and the extension stay.

Several people at once (closing a department). Do part B person by person: the console has no group operation for expiries, forwards and revocations.

If something goes wrong

Symptom Cause and remedy
A PC stays connected to the folders after the expiry It has a valid Kerberos ticket, at most 10 hours. With «Disable» the open connections close at once; with the expiry alone they do not.
Julia does not see the Handover folder Step 9 was not saved, or the «Mail» tab shows «The mailbox is not enabled for this user.»: «Mailbox access» is off. Turn it on again. The folder must exist: the webmail does not create it, Jack creates it from his mail program.
«The mailbox has never been used: there are no folders to share yet.» Jack has never received or read mail: there is nothing to share.
«Already used by another account» when saving invoices@ on Julia The address is still in Jack’s «Alternate emails». Remove it and save first.
The mail to jgreen@ bounces You disabled the account instead of letting it expire, or «Mail delivery» is off. Turn the account back on («Enable» button) or put the expiry back.
«Mail rules» does not appear The Groupware module is needed. Without it, the automatic reply and forwarding are done with the Sieve rules of other mail programs.
Julia cannot find Jack’s Caveau folders The transfer was not done by Jack before leaving: his entries cannot be recovered by anyone.
Jack’s sessions are still open Within 5 minutes of the expiry they should close. «End the sessions» in MFA enrollment closes the single sign-on ones; «Disable» closes the Atlas and chat sessions at once.
Jack’s token still appears «Disable» and the expiry do not revoke it. Only «Delete» does, or «Revoke token» from the MFA page (step 18).

For the technician Dovecot and Postfix read the accounts from the domain with a filter that excludes users with the ACCOUNTDISABLE bit of userAccountControl; the expiry (accountExpires) does not set it, which is why the mail of an expired account is still delivered. A periodic check closes within 5 minutes the Atlas and chat sessions of disabled or expired accounts. The mail features (forwards, alternative addresses) live in the files Atlas generates for Postfix and Dovecot, not in the attributes: they are not edited from ADUC.

Checklist for the day of departure

  1. Written rule already handed out; handover record signed.
  2. Mail sorted by Jack: work in Handover, personal deleted or taken away.
  3. Caveau transferred and checked with the successor’s account; voicemail messages saved.
  4. Julia has access to the Handover folder only and to the work calendars; automatic reply active (forwarding only if provided for).
  5. Alternative addresses moved; «VPN» and «Cloud drive» off.
  6. «Account expires on» set; group memberships removed; token revoked.
  7. Test mail: automatic reply received; recent backup verified.
  8. End dates (forwarding, access, disabling) noted in the diary, each with the person who carries it out.

Warning

This guide is a suggestion, not legal advice: it shows how to achieve with Atlas what is described, but the choices (what to keep, for how long, who can access the messages) depend on the company and on the applicable law. Check with your data protection officer (DPO) before adopting it, and put the resulting rule in writing.

LET’S TALK INFRASTRUCTURE

Control starts with a conversation.

Tell us about your infrastructure. Let’s start with what you actually need.

Talk to an engineer