Les Mikesell wrote: > edwardspl@xxxxxxxxxx wrote: > >> Les Mikesell wrote: >> >>> edwardspl@xxxxxxxxxx wrote: >>> >>>>>> Dear All, >>>>>> >>>>>> The System is FC6... >>>>>> So, how to disbale a User's mail service ? >>>>>> eg : Sendmail + Dovecot ( pop3 /imap ). >>>>>> >>>>> One way is to use the aliases file to direct the mail elsewhere or to >>>>> /dev/null. Another is to use the virtuser table to map the users you >>>>> want to permit to real addresses with a catchall rejection. >>>>> >>>>> 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. >>>>> >>>> Hello, >>>> >>>> Is there a sample ( steps by steps ) for reference ? >>>> >>> There's actually easier way than the ones mentioned above. In your >>> /etc/mail/access file put a line like: >>> >>> user@xxxxxxxxxx REJECT >>> >>> or >>> >>> user@xxxxxxxxxx ERROR:550 no such user here >>> (if you want to control the rejection error) >>> >>> or >>> >>> To:user@xxxxxxxxxx ERROR:550 user unknown >>> (if you want to permit sending but reject inbound) >>> >>> Execute 'make' in the /etc/mail directory to rebuild the access >>> database after the change, or you can restart sendmail with 'service >>> sendmail restart' which will also do it. >>> >>> Note that fedora defaults to only accepting email within the local >>> machine. If you want a working mailer you have to make a change to >>> /etc/mail/sendmail.mc, removing the Addr=127.0.0.1 restriction, then >>> restart sendmail. >>> >> Hello, >> >> This way is only for SMTP ? >> So, how about for pop3 / imap also ? > > > 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. > Hello, Is there a best solution for disable user's email account ( mail service : incoming and outgoing ) ? Edward.