Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[AMaViS-user] Header check ?

213 views
Skip to first unread message

Peter Sørensen

unread,
Oct 12, 2010, 6:50:15 AM10/12/10
to
Hi,

I have a situation where I need to check for a specific X-HEADER-SOMEVALUE after
Content scanning with amavisd. I have a setup like:

ð POSTFIX MTA PORT 25 => AMAVISD PORT 10024 => POSTFIX MTA PORT 10025

I am well aware of the possibilities in postfix to do header checks but this will catch
The header before amavisd and I need to catch it after amavisd.

I need to have the standard header_checks enabled in my POSTFIX MTA PORT 25 because
In some situations I need to catch headers before amavisd

Any ideas ?

Regards

Peter Sørensen/Univ. of Sothern Denmark/email: mas...@sdu.dk
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
AMaViS-user mailing list
AMaVi...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
Please visit http://www.ijs.si/software/amavisd/ regularly
For administrativa requests please send email to rainer at openantivirus dot org

Noel Jones

unread,
Oct 12, 2010, 7:18:26 AM10/12/10
to
On 10/12/2010 5:50 AM, Peter Sørensen wrote:
> Hi,
>
> I have a situation where I need to check for a specific X-HEADER-SOMEVALUE after
> Content scanning with amavisd. I have a setup like:
>
>
>
> ð POSTFIX MTA PORT 25 => AMAVISD PORT 10024 => POSTFIX MTA PORT 10025
>
> I am well aware of the possibilities in postfix to do header checks but this will catch
> The header before amavisd and I need to catch it after amavisd.
>
> I need to have the standard header_checks enabled in my POSTFIX MTA PORT 25 because
> In some situations I need to catch headers before amavisd
>
> Any ideas ?
>

header_checks are controlled by the postfix cleanup process.
you can define a "custom" cleanup process for the postfix
smtpd on 10025 with your header checks.

Basic idea:
# master.cf

# this is a copy of the standard cleanup line:
cleanup_amavisd unix n - n - 0 cleanup
-o header_checks=regexp:/path/to/header_checks_amavis

# this is the postfix reinjection port
127.0.0.1:10025 inet n - n - - smtpd
-o cleanup_service_name=cleanup_amavisd
... other stuff ...

Other examples and more details can be found in the
postfix-users archives.

-- Noel Jones

Peter Sørensen

unread,
Oct 13, 2010, 7:04:40 AM10/13/10
to
Thanks Noel

Just the information I needed :-) great.

Regards

Peter

-----Oprindelig meddelelse-----
Fra: Noel Jones [mailto:njo...@megan.vbhcs.org]
Sendt: 12. oktober 2010 13:18
Til: amavi...@lists.sourceforge.net
Emne: Re: [AMaViS-user] Header check ?

0 new messages