Solved

postfix body_checks not working correctly

Posted on 2016-09-23
2
24 Views
Last Modified: 2016-09-23
I have a problem where the postfix body_checks file doesn't seem to work past the first line in the file..

For example I have...

/Dear atari/ REJECT unknown user EB100
/How is it going/ REJECT unknown user EB101
/Sent from my Samsung device/ REJECT unknown user EB102
/Fax: +1/ REJECT unknown user EB103
/android.email/ REJECT unknown user EB104
/RGVhciBhdGFyaQ/ REJECT unknown user EB105
/hello/ REJECT unknown user EB106

(plus many more lines)

If I send a email with "Dear atari" it gets rejected, but Thunderbird lists the entire file when it rejects the email (which doesn't seem right?)
Though any other line in the file seems to get ignored totally. So if I sent "hello" in a email.. it would just get delivered as normal, when it should be blocked.  

Its difficult to test the header_checks file, but from what I can tell that one seems to be working fine.  People report my server lists the "error code" so it seems multiple checks are working.. Though the body_checks seem to be not working past the first line in the file ?  

Its like any text after REJECT is being classed as the error message, despite being on a new line, so should be a separate check ?!

Anyone got any ideas on this ? I'm sure this was working when I first set it up.. I'm wondering if something updated on my server causing some "bug" with postfix somewhere.. its hard to figure out ::(
0
Comment
Question by:Chris Swinson
  • 2
2 Comments
 

Accepted Solution

by:
Chris Swinson earned 0 total points
ID: 41812345
OK I worked it out.. Seems the body_checks file was not in UNIX format. I converted in notepad++ and filter rules so far seem to be working ok.  I will leave this question here in case it catches out anyone else.
0
 

Author Closing Comment

by:Chris Swinson
ID: 41812346
Operator error I guess :)
0

Featured Post

Are end users causing IT problems again?

You’ve taken the time to design and update all your end user’s email signatures, only to find out they’re messing up the HTML, changing the font and ruining the imagery. What can you do to prevent this? Find out how you can save your signatures from end users today.

Join & Write a Comment

Import PST to Exchange using Power Shell new-mailboximportrequest command, you can simply import the PST file into Exchange mailbox or archived. To know How to import PST into Exchange  2013 read the complete article.
Workplace bullying has increased with the use of email and social media. Retain evidence of this with email archiving to protect your employees.
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
In this video we show how to create an Accepted Domain in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Mail Flow >> Ac…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now