<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=Big5" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Les Mikesell wrote:<br>
<blockquote cite="mid45CF6F83.3070608@gmail.com" type="cite"><a class="moz-txt-link-abbreviated" href="mailto:edwardspl@ita.org.mo">edwardspl@ita.org.mo</a>
wrote:
<br>
<blockquote type="cite"><br>
<blockquote type="cite">
<blockquote type="cite">Dear All,
<br>
<br>
The System is FC6...
<br>
So, how to disbale a User's mail service ?
<br>
eg : Sendmail + Dovecot ( pop3 /imap ).
<br>
<br>
</blockquote>
One way is to use the aliases file to direct the mail elsewhere or to
<br>
/dev/null. Another is to use the virtuser table to map the users you
<br>
want to permit to real addresses with a catchall rejection.
<br>
<br>
Maybe it would be easier to describe exactly what you want these users
<br>
to be able to do first and build an environment that provides nothing
<br>
else instead of starting with a general-purpose login and trying to
<br>
stop everything you don't want them to do.
<br>
<br>
</blockquote>
Hello,
<br>
<br>
Is there a sample ( steps by steps ) for reference ?
<br>
<br>
</blockquote>
<br>
There's actually easier way than the ones mentioned above. In your
<br>
/etc/mail/access file put a line like:
<br>
<br>
<a class="moz-txt-link-abbreviated" href="mailto:user@domain.com">user@domain.com</a> REJECT
<br>
<br>
or
<br>
<br>
<a class="moz-txt-link-abbreviated" href="mailto:user@domain.com">user@domain.com</a> ERROR:550 no such user here
<br>
(if you want to control the rejection error)
<br>
<br>
or
<br>
<br>
<a class="moz-txt-link-abbreviated" href="mailto:To:user@domain.com">To:user@domain.com</a> ERROR:550 user unknown
<br>
(if you want to permit sending but reject inbound)
<br>
<br>
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.
<br>
<br>
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.
<br>
<br>
</blockquote>
<font size="-1">Hello,<br>
<br>
This way is only for SMTP ?<br>
So, how about for pop3 / imap also ?<br>
<br>
Edward.<br>
</font>
</body>
</html>