1
X-LBSMTP-Spam-Policy: SendBlaster SMTP is a paid relay service.We do not tolerate UCE of any kind. Please report it ASAP to abuse@lbsmtp.org.

I want to add such a header to mails sent by my postfix mail server. I have postfix 2.33 in my centos5 server. Is there a way to add this in postfix.

sysadmin1138
  • 133,124
  • 18
  • 176
  • 300
sam
  • 13
  • 2

1 Answers1

3

You should be able to do this using

 smtp_header_checks=regexp:/etc/postfix/add_x_header

Create the file /etc/postfix/add_x_header with the following contents:

/^Subject: .*/ PREPEND X-LBSMTP-Spam-Policy: SendBlaster SMTP is a paid relay service.We do not tolerate UCE of any kind. Please report it ASAP to abuse@lbsmtp.org.

This will insert the header before the Subject line.

(Also, it's very nice to see you wanting to work to end spam from your domain - good luck!)

adaptr
  • 16,576
  • 23
  • 34
Jenny D
  • 27,780
  • 21
  • 75
  • 114