[BlueOnyx:04972] Re: disable all email
Michael Stauber
mstauber at blueonyx.it
Wed Jul 7 04:29:48 -05 2010
Hi Bret,
> I have a client that has about 120 sites that are now only webservices
> with no email. Dns is working and all email outside the box works
> fine. The issue is that as they were setting stuff up they did not
> disable the email for the sites and/or remove the localhostname
> aliases. I suspect I can remove all the entries in
> /etc/mail/local-host-names that are troublesome but it appears that the
> gui will not reflect that email is disabled and some (all?) of the
> entries will be put back someone changes something email related.
>
> For instance :
>
> Site name www.mydomain.com has an Email Server Alias of mydomain.com
>
> There is an entry in /etc/mail/local-host-names for both
> www.mydomain.com and mydomain.com
>
> disabling email in the gui does not affect that
Yes, because /etc/mail/local-host-names is the wrong place for that.
When you tick the box for "disable all email" for a site, then the following
lines gets added to /etc/mail/access:
### Start Block Email for Virtual Site: site4.smd.net ###
www.site-in-question.com ERROR:5.1.1:550 User unknown
### END Block Email for Virtual Site: site4.smd.net ###
That'll then make sure that all email to that site is rejected with a "User
unknown" message.
--
With best regards
Michael Stauber
More information about the Blueonyx
mailing list