-3

I am trying to install Mailscanner onto a Centos VPS and there is a section of the tutorial which I am reading that states the following:

Next, open the file /etc/postfix/header_checks and add this line: /^Received:/ HOLD This tells Postfix to move all messages to the HOLD queue. Now edit the file /etc/MailScanner/MailScanner.conf and change the following 6 settings, which are all near the top of the file:

My question is, where do I put the new line in the file?

Do I just put it at the bottom?

pgunston
  • 311
  • 4
  • 6
  • 15
  • Are there any uncommented lines in the file? I'm familiar with postfix in Ubuntu and in a new installation the file does not exist. We create it and since the mails must be sent to hold for mailscanner to scan them you should put it on the top. – eranga Oct 16 '14 at 07:13

1 Answers1

1

In General the order of header_checks is not that important. So you can place the line anywhere in /etc/postfix/header_checks.

Afterwards run

postfix check

just to make sure the config is fine and chgeck the log output

tail -n 50 /var/log/mail.{err,warn}
justlovingIT
  • 475
  • 3
  • 11