Email aliases not deleting completely

3 posts / 0 new
Last post
#1 Tue, 12/23/2014 - 02:46
SebH

Email aliases not deleting completely

We have a series of Virtual Servers all of which were set up by accepting the defaults offered. We are currently running 4.12 Pro.

We service the email elsewhere, but of course, by accepting the defaults when setting up the Virtual Servers originally, we allowed Virtualmin to create 'Mail Aliases' eg abuse@example.com.

To try to improve security of the sites, we want to remove any potential email functionality. We want to do this by unchecking: Virus filtering, Mailman mailing lists, Mail for domain enabled and Spam filtering enabled in the Enabled features section and then clicking on 'Save Virtual Server'.

We have done that successfully for one Virtual Server, but the others say: 'Failed to modify server : A target server must have email enabled if any aliases do'.

We have deleted all the aliases, including the special ones, and, if we go into 'Edit Aliases', we see 'No mail aliases have been created in this domain yet.' This suggests that the deletion of the aliases has been successful, but we suspect that there is some sort of 'hangover' because on Virtual Servers which have no email, there is no 'Edit Aliases' visible on the Virtualmin menu, whereas that menu option does appear on the ones that we are having the problems on.

Is there any way of being sure that all trace of Aliases has been removed from a Virtual Server so that we can then remove its email functionality altogether?

Thanks in advance.

Wed, 12/24/2014 - 11:47
tpnsolutions
tpnsolutions's picture

Hi,

I'd be happy for a small fee to assist you resolve your matter, offering also some additional optimization suggestions which may help not only aid in security but make your machine run a bit more lean.

Drop me a line on Skype or email me to setup some time. I'm available all day today, and throughout most of the holidays :-)

Best Regards,
Peter Knowles
TPN Solutions

Email: pknowles@tpnsolutions.com
Phone: 604-782-9342
Skype: tpnsupport
Website: http://www.tpnsolutions.com
Best Regards,
Peter Knowles | TPN Solutions
Email: pknowles@tpnsolutions.com | Skype: tpnassist
Wed, 12/24/2014 - 18:54
jimdunn

You can check in the /etc/postfix directory.

The file "virtual" gets hashed into "virtual.db" that the system uses.

(this is part of /etc/postfix/main.cf)
(the "virtual_alias_maps = hash:/etc/postfix/virtual" line)

If you clean up the "virtual" file:

[code]# cd /etc/postfix
# vi virtual[/code]

Then you can run this command to hash it:

[code]# postmap /etc/postfix/virtual[/code]

P.S. You can hire me, too. : )

Topic locked