[Exim] Re: [AMaViS-user] exim system filter?

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: SONE Takeshi
Fecha:  
A: Dan Egli
Cc: amavis-user, exim-users
Asunto: [Exim] Re: [AMaViS-user] exim system filter?
On Thu, Aug 16, 2001 at 09:57:20AM -0600, Dan Egli wrote:
> If you know how, go ahead and post it. In the mean time, directors and
> routers work.


I'm not an experienced Exim/AMaViS hacker, but my first attempt
looks working ok.

In the MAIN CONFIGURATION of exim.conf:

# AMaViS filter
message_filter = /etc/exim/amavis_filter
message_filter_pipe_transport = amavis_pipe
message_filter_user = amavis

In the TRANSPORTS CONFIGURATION:

# AMaViS filter pipe transport
amavis_pipe:
driver = pipe
path = "/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
current_directory = "/var/amavis"

Finally, the system filter file, /etc/exim/amavis_filter is very simple:

# Exim filter
if $received_protocol is not "scanned-ok" then
pipe "/usr/sbin/amavis <$sender_address> $recipients"
endif

(Also, I added amavis to trusted_user.)


In the exim/mainlog:
(I posted a mail from remote host to two remote recipients.)

2001-08-18 00:07:50 15XlDy-0001rn-00 <= ts1@??? H=arndok.tsn.or.jp [202.217.183.35] U=mail P=esmtp S=678 id=20010818000742.A861@???
2001-08-18 00:07:50 15XlDy-0001rn-00 original recipients ignored (message_filter)
2001-08-18 00:07:51 15XlDz-0001ry-00 <= ts1@??? U=amavis P=scanned-ok S=905 id=20010818000742.A861@???
2001-08-18 00:07:51 15XlDy-0001rn-00 => |/usr/sbin/amavis <$sender_address> $recipients <message filter> T=amavis_pipe
2001-08-18 00:07:51 15XlDy-0001rn-00 Completed
2001-08-18 00:07:51 15XlDz-0001ry-00 == ts1@??? T=remote_smtp defer (-1): domain matches queue_smtp_domains, or -odqs set
2001-08-18 00:07:51 15XlDz-0001ry-00 == ts1@??? T=remote_smtp defer (-1): domain matches queue_smtp_domains, or -odqs set
2001-08-18 00:08:01 Start queue run: pid=7202
2001-08-18 00:08:01 15XlDz-0001ry-00 => ts1@??? R=lookuphost T=remote_smtp H=ki-ki.tsn.or.jp [202.217.183.34]
2001-08-18 00:08:07 15XlDz-0001ry-00 => ts1@??? R=lookuphost T=remote_smtp H=kky.cma.co.jp [202.217.183.2]
2001-08-18 00:08:07 15XlDz-0001ry-00 Completed
2001-08-18 00:08:07 End queue run: pid=7202

(This Exim is configured to defer all remote SMTP connections,
queue_smtp_domains = *).

I would like comments from serious Exim and/or AMaViS hackers.

Thanks.
--
Takeshi