Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.
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.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

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!)

share|improve this answer
    
thanks i will try this and inform you. –  sam Jul 19 '12 at 7:59
    
This is not working in my postfix actually i have postfix version 2.33 and this as i have seen works on version 2.5 or later. –  sam Jul 19 '12 at 8:04
    
Then I have no solution. Sorry! –  Jenny D Jul 19 '12 at 8:43
    
thanks jenny D it is working now i switched to postfix 2.9.3 and bingo it works. –  sam Jul 19 '12 at 9:13
    
Glad it's working! –  Jenny D Jul 19 '12 at 9:53

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.