Disable a User's email account

Les Mikesell lesmikesell at gmail.com
Mon Feb 12 14:08:07 UTC 2007


edwardspl at ita.org.mo wrote:

>> SMTP is the mail transport. Pop and IMAP only access a user's own
>> mailbox. Running a pop/imap mail program won't be very interesting if
>> you can't send or receive from anyone. If you want to disable access
>> to some particular program you'll have to make it only executable by a
>> certain group and put everyone allowed to run it in that group.
>>
> 
> Is there a best solution for disable user's email account ( mail service
> : incoming and outgoing ) ?

If you want ot provide logins for some services and not others, you
should probably learn how PAM works.  Each service gets its own entry in
/etc/pam.d with a sequence of steps needed to permit a login.  Fedora
sets these all up to include a common set for all services, but you can
modify them individually.  For example, some services could have their
own password files, or they could authenticate against an LDAP server or
windows domain controller.

Note that POP/IMAP mailers would have a separate network login, but
anyone logged in at shell level would be able to run any of several mail
programs directly: mail, mailx, mutt, evolution, thunderbird, etc., or
even access their /var/spool/mail file directly at the file level.

-- 
  Les Mikesell
   lesmikesell at gmail.com




More information about the users mailing list