Trying to use different header_checks depending on TCP port for incoming mail

2010-09-05 Thread Ralph Seichter
I'm currently trying to figure out if it is possible to use different header_checks for TCP ports 25 (mail from world) and 587 (mail submitted by authenticated users). I tried the following without success: # cat /etc/postfix/master.cf smtp inet n - n - - smtpd -o content_filter=amav

Re: Trying to use different header_checks depending on TCP port for incoming mail

2010-09-05 Thread Jeroen Geilman
On 09/05/2010 07:20 PM, Ralph Seichter wrote: I'm currently trying to figure out if it is possible to use different header_checks for TCP ports 25 (mail from world) and 587 (mail submitted by authenticated users). I tried the following without success: Since header_checks is performed by cl

Re: Trying to use different header_checks depending on TCP port for incoming mail

2010-09-05 Thread Wietse Venema
Ralph Seichter: > I'm currently trying to figure out if it is possible to use different > header_checks for TCP ports 25 (mail from world) and 587 (mail submitted > by authenticated users). I tried the following without success: > > # cat /etc/postfix/master.cf > smtp inet n - n - - smt

Re: Trying to use different header_checks depending on TCP port for incoming mail

2010-09-05 Thread Ralph Seichter
On 05.09.10 20:55, Wietse Venema wrote: > As documented header_checks are not implemented in smtpd(8) but > in cleanup(8). Yup, that's why I asked if I needed a second cleanup service. > If you are courageous you can implement different cleanup > services: > > /etc/postfix/master.cf" > submissio

Re: Trying to use different header_checks depending on TCP port for incoming mail

2010-09-05 Thread Wietse Venema
Ralph Seichter: > On 05.09.10 20:55, Wietse Venema wrote: > > > As documented header_checks are not implemented in smtpd(8) but > > in cleanup(8). > > Yup, that's why I asked if I needed a second cleanup service. > > > If you are courageous you can implement different cleanup > > services: > > >

Re: Trying to use different header_checks depending on TCP port for incoming mail

2010-09-05 Thread mouss
Le 05/09/2010 21:32, Ralph Seichter a écrit : On 05.09.10 20:55, Wietse Venema wrote: As documented header_checks are not implemented in smtpd(8) but in cleanup(8). Yup, that's why I asked if I needed a second cleanup service. If you are courageous you can implement different cleanup servic

Re: Trying to use different header_checks depending on TCP port for incoming mail

2010-09-05 Thread Ralph Seichter
On 05.09.10 22:07, Wietse Venema wrote: > Are you running header_checks BEFORE or AFTER the external content > filter, or both? See the receive_override_options discussion in > the Postfix FILTER_README documentation. Sorry, I re-read the FILTER_README multiple times, but I am not sure how to ans

Re: Trying to use different header_checks depending on TCP port for incoming mail

2010-09-05 Thread Ralph Seichter
On 06.09.10 00:25, mouss wrote: > add "-o syslog_name=postsubmission" to both your submission and > cleanup_submission and see if it appears in your logs. I see postsubmission/smtpd in the mail log, but postsubmission/cleanup is not logged. So, I guess my cleanup_submission service is not called?

Re: Trying to use different header_checks depending on TCP port for incoming mail

2010-09-05 Thread Wietse Venema
Ralph Seichter: > On 06.09.10 00:25, mouss wrote: > > > add "-o syslog_name=postsubmission" to both your submission and > > cleanup_submission and see if it appears in your logs. > > I see postsubmission/smtpd in the mail log, but postsubmission/cleanup > is not logged. So, I guess my cleanup_sub

Re: Trying to use different header_checks depending on TCP port for incoming mail

2010-09-05 Thread Wietse Venema
Ralph Seichter: [ Charset ISO-8859-1 unsupported, converting... ] > On 05.09.10 22:07, Wietse Venema wrote: > > > Are you running header_checks BEFORE or AFTER the external content > > filter, or both? See the receive_override_options discussion in > > the Postfix FILTER_README documentation. > >

Re: Trying to use different header_checks depending on TCP port for incoming mail

2010-09-06 Thread Ralph Seichter
On 06.09.10 01:27, Wietse Venema wrote: > There is an smtpd+cleanup server AFTER your content filter. That is most likely a bad idea for my purposes. What I try to accomplish is this: A1: Have Postfix accept mail on port 587 from SASL-authenticated clients only. A2: Remove "Received:" header

Re: Trying to use different header_checks depending on TCP port for incoming mail

2010-09-06 Thread Jeroen Geilman
On 09/05/2010 08:55 PM, Wietse Venema wrote: Ralph Seichter: I'm currently trying to figure out if it is possible to use different header_checks for TCP ports 25 (mail from world) and 587 (mail submitted by authenticated users). I tried the following without success: # cat /etc/postfix/m

Re: Trying to use different header_checks depending on TCP port for incoming mail

2010-09-06 Thread mouss
Le 06/09/2010 01:01, Ralph Seichter a écrit : On 06.09.10 00:25, mouss wrote: add "-o syslog_name=postsubmission" to both your submission and cleanup_submission and see if it appears in your logs. I see postsubmission/smtpd in the mail log, but postsubmission/cleanup is not logged. So, I gues

Re: Trying to use different header_checks depending on TCP port for incoming mail

2010-09-07 Thread Ralph Seichter
On 06.09.10 19:07, Jeroen Geilman wrote: > postconf(5) says "cleanup_service_NAME" - I suspect it will work once > he changes that :) You're right, I did not spot this. ;-) When I use "cleanup_service_name" instead of "cleanup_service", it works. This is a feasible solution, as long as the submis

Re: Trying to use different header_checks depending on TCP port for incoming mail

2010-09-07 Thread Ralph Seichter
On 06.09.10 23:13, mouss wrote: > you need to review your master.cf and main.cf for typos and > space/comment errors. As Jeroen Geilman pointed out, it is "cleanup_service_name" instead of "cleanup_service". > I recommend using > -o var=${main_cf_var} > where variables are defined in main.cf.