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.
--
Les Mikesell
lesmikesell@xxxxxxxxx