Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Mail was accidentally installed on my debian server and I want to remove all mta, mail related software. I do not know what exactly was installed, how can I find out and uninstall this stuff? I don't want to see this "you have mail" when I log in.

share|improve this question

2 Answers 2

Start with

dpkg --get-selections

or

dpkg --get-selections | grep -v deinstall

for a shorter list, which shows you what is installed. Look through the list, work out the major packages you don't need (like exim, postfix, mailx, bsd-mailx, etc.) and then,

apt-get remove exim mailx ......
share|improve this answer
    
Do you see any mail related packages in this list? gist.github.com/2889285 –  powtac Jun 7 '12 at 15:05
    
I still get "You have mail" :-( –  powtac Jun 7 '12 at 15:14
    
That's probably because you have content in /var/spool/mail/userid. If you don't care about mail, just delete your file from there. –  EightBitTony Jun 7 '12 at 15:50

I'm assuming you're using postfix since it's the default mail server for Debian (I think). You should be able to remove this by using:

apt-get remove postfix

If it's not the postfix package just substitute the name of the package that was installed.

share|improve this answer
    
My bad, postfix is the mail server, sub mutt for postfix (is the default mail client on most of the distro's I have seen). –  Rob Jun 7 '12 at 14:39

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.