Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was trying to setup spam filtering on Ubuntu server with postfix and dovecot already running. I issued the following command

sudo postconf -e 'content_filter = smtp-amavis:[]:10024'

Now I want to know that how can I undo this command?

share|improve this question
This was cross-posted on SU. Don't do that. Pick whatever site this question is on-topic for and ask it there only. – EEAA Sep 9 '11 at 16:02
up vote 5 down vote accepted

postconf -d content_filter will tell you what the default value for the content_filter parameter is.
You can then use postconf -e to reset the parameter to its default value.

share|improve this answer
Thanks man, that solved my problem, I am new to sysadmin thing and still learning. Hope I wont break things. – HSS Sep 9 '11 at 15:59
The best way not to break things is not to run commands unless you're sure of what they're going to do (especially when you're putting sudo in front of them...) – voretaq7 Sep 9 '11 at 16:59

Your Answer


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.