Re: Disable a User's email account

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



James Wilkinson wrote:
edwardspl@xxxxxxxxxx wrote:
  
The System is FC6...
So, how to disbale a User's mail service ?
eg : Sendmail + Dovecot ( pop3 /imap ).
    

Les Mikesell wrote:

  
Maybe it would be easier to describe exactly what you want these users
to be able to do first and build an environment that provides nothing
else instead of starting with a general-purpose login and trying to
stop everything you don't want them to do.
    

I've quoted that advice Les gave because it's good. If you really want
to provide users with certain services and not others, start from a
position of not allowing them anything, and then give individual users
more rights when needed.

But for the Dovecot side of what you asked, why not have a look at
/etc/dovecot.conf ? It includes the lines
  # Users can be temporarily disabled by adding a passdb with deny=yes.
  # If the user is found from that database, authentication will fail.
  # The deny passdb should always be specified before others, so it gets
  # checked first. Here's an example:

  #passdb passwd-file {
    # File contains a list of usernames, one per line
    #args = /etc/dovecot.deny
    #deny = yes
  #}

Hope this helps,

James.

  
Hello James.

For disable user's incoming account ( pop3 / imap ) :
/etc/dovecot.conf

passdb passwd-file {
	args = /etc/dovecot.deny
    	deny = yes
}

/etc/dovecot.deny :
edward

For disable user's outgoing account :

/etc/mail/access file put a line :

To:user@xxxxxxxxxx ERROR:550 Sorry, user account disabled !

Is it ok for the disabling ?

Edward.
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux