[NTLUG:Discuss] deisable email

Kelledin kelledin+NTLUG at skarpsey.dyndns.org
Sun Jul 28 14:27:25 CDT 2002


On Sunday 28 July 2002 01:37 pm, Carroll E. McCarroll wrote:
> Does anyone know an easy way to disable a users email account
> without disabling their login and or Samba account?
>

Best way to handle this is use a mail server that can keep its 
user database separate from the system's user database.  
Cyrus-IMAP springs to mind.

Of course, if you're already on a different e-mail server, you're 
probably not in a position to change.

If your e-mail server authenticates via Linux-PAM, there's 
another clean way to handle this.  Just find the PAM policy file 
for your e-mail server (usually in /etc/pam.d) and stick a line 
at the beginning something like the following:

auth 	required 	pam_listfile.so item=user sense=deny  
file=/etc/no-email

(put that all on one line...ignore the line break that got put in 
after "sense=deny")

Then, when you want to disable a user's e-mail account, just 
stick the username in the file /etc/no-email

-- 
Kelledin
"If a server crashes in a server farm and no one pings it, does 
it still cost four figures to fix?"




More information about the Discuss mailing list