|
Save the teapot fund New CSS web design for Wibble proudly provided by Kelv. Please contact the webmaster with any questions or concerns. |
Wibble > List archives > postfix > 2004 > October [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Access to DATA (content) with SMTP access policy delegation
Hi, I am wondering whether it is possible to access email headers and body content (i.e. the actual data passed with the DATA command) through access policy delegation. I've enabled a policy service for smtpd_data_restrictions but it seems that there is no way to get at the actual email content from here. These are the key value pairs I see (debug output from syslog): postfix/body_check-policyd[17709]: k=request v=smtpd_access_policy postfix/body_check-policyd[17709]: k=protocol_state v=DATA postfix/body_check-policyd[17709]: k=protocol_name v=ESMTP postfix/body_check-policyd[17709]: k=client_address v=10.142.254.1 postfix/body_check-policyd[17709]: k=client_name v=blah postfix/body_check-policyd[17709]: k=helo_name v=blah postfix/body_check-policyd[17709]: k=sender v=blah postfix/body_check-policyd[17709]: k=recipient v=blah postfix/body_check-policyd[17709]: k=queue_id v=9729285 postfix/body_check-policyd[17709]: k=instance v=4528.415d818f.0 postfix/body_check-policyd[17709]: k=size v=295 postfix/body_check-policyd[17709]: k=sasl_method v= postfix/body_check-policyd[17709]: k=sasl_username v= postfix/body_check-policyd[17709]: k=sasl_sender v= What I'd hoped to do is implement spam/virus filtering based on the content of DATA ... any hope? Am I nuts to try this? Thanks -- Fraser Campbell <fraser@xxxxxxxxxx> http://www.wehave.net/ Georgetown, Ontario, Canada Debian GNU/Linux
|