Discussion:
[Mimedefang] Delaying 2xx as long as possible with stream_by_xyz()
Kevin A. McGrail
2017-01-27 03:50:46 UTC
Permalink
All,

I was thinking about a scenario with stream_by_recipient or
stream_by_domain where I want to delay accepting responsibility for the
email as long as possible.

In filter_begin when we call stream_by_xyz, have we accepted the mail?
Or can we still do interactive SMTP responses?

If not, can we do interactive SMTP responses such as checking the helo
values, then stream the messages to process it per domain or per recipient?

I can't find it documented, but I seem to remember that once you stream
the messages per domain or per recipient, that you've given a 2xx DSN
and closed the session. So if you then later find you want to decline,
you have to generate a bounce.

Any pointers appreciated especially if this is a milter limitation or an
MD framework limitation that I can figure out a way around!

Regards,
KAM


_______________________________________________
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID. You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list ***@lists.roaringpenguin.com
http://
Dianne Skoll
2017-01-27 14:15:40 UTC
Permalink
On Thu, 26 Jan 2017 22:50:46 -0500
Post by Kevin A. McGrail
In filter_begin when we call stream_by_xyz, have we accepted the
mail? Or can we still do interactive SMTP responses?
The latter... you can still do interactive SMTP responses.

Regards,

Dianne.
_______________________________________________
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID. You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list ***@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo
Kevin A. McGrail
2017-01-30 11:58:15 UTC
Permalink
Um, what do you mean with "interactive SMTP responses such as checking
the
helo values"
Which state you are returning to the sender, if your streamed messages
return different status'? E.g. it could sent to recipient one, but not
two
and recipient three tempfailed.
Maybe ...
Yeah, that is where I am a bit confused as well. I'll have to work it out in a lab I think.
Regards,
KAM

_______________________________________________
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID. You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list ***@lists.roaringpenguin.com
http://lists
Dianne Skoll
2017-01-30 14:11:47 UTC
Permalink
Sorry, I was wrong.

The stream_by_XXX methods set a flag that makes Sendmail discard the
original message, So you cannot do anything useful in the original
SMTP conversation after streaming.

Regards,

Dianne.
_______________________________________________
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID. You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list ***@lists.roaringpenguin.com
http:
Kevin A. McGrail
2017-01-30 15:49:20 UTC
Permalink
Post by Dianne Skoll
The stream_by_XXX methods set a flag that makes Sendmail discard the
original message, So you cannot do anything useful in the original
SMTP conversation after streaming.
Thank god. You were hurting my brain when I was looking at the
underlying code and didn't think it would work.

Regards,
KAM
_______________________________________________
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID. You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list ***@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/
Kevin A. McGrail
2017-02-09 03:22:20 UTC
Permalink
Thanks Steffen. If I find an elegant solution, I'll post back to the
list for sure!
_______________________________________________
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID. You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list ***@lists.roaringpenguin.com
http://list

Loading...