Thanks,
I already use sed for simple things like replacing xxxx = On to xxxx = Off
the main problem is with postfix master.cf where I need to add/modify lines in a specific place
For example:
in the smtp service line I need to add
Code:
smtp inet n - - - - smtpd
-o content_filter=spamassassin
below that I need to add:
Code:
spamassassin unix - n n - - pipe
user=spamd argv=/usr/bin/spamc -f -e
/usr/sbin/sendmail -oi -f ${sender} ${recipient}
dovecot unix - n n - - pipe
flags=DRhu user=vmail:mail argv=/usr/lib/dovecot/deliver -d ${recipient}
Any ideas?