Matus UHLAR - fantomas writes:

Hello,

How does courierfilter decide which value to return, when different
filters return different values?

Does it get the highest  (5xx > 4xx > 2xx) or is there different logic?

Filters get invoked one at a time, and not all at once.

The first filter that returns an error code stops the message from being processed any further, and the returned error code gets used.

Another question - is it possible to modify positive reply that esmtpd
sends to client, when courierfilter returns 2xx reply?

I have tried to return "250 2.0.0 Ok" but esmtpd returned just
"200 Ok. <id>"

A 2xx reply from the filter does not mean that the message should be accepted with the given return code.

It means that this filter did not reject the message, and that the next filter now has the opportunity to block it, and if there are no more filters left, then the message gets processed normally.

Attachment: pgpD2Jxudt3D5.pgp
Description: PGP signature

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to