I started a self-education exercise in modifying the Python smtplib  and smtpd
modules to handle xforward.   I'm at the point where the two modules to talk to
each other and send xforward information and I can receive xforward data as a
prequeueing filter but, I can't forward it on to the next stage.

I created an smtpd for receiving the output of a prequeueing filter:

localhost:10025 inet    n       -       n       -       10      smtpd -v
        -o
receive_override_options=no_unknown_recipient_checks,no_header_body_checks
        -o content_filter=filterscan:localhost:40025
        -o smtpd_helo_restrictions=
        -o smtpd_client_restrictions=
        -o smtpd_sender_restrictions=
        -o smtpd_data_restrictions=
        -o smtpd_recipient_restrictions=permit_mynetworks,reject
        -o mynetworks=127.0.0.0/8
        -o smtpd_authorized_xforward_hosts=127.0.0.0/8

After trying to debug via the various internal debugging options, I captured the
protocol stream.

220 tpblue ESMTP Postfix (Ubuntu)
ehlo tpblue.localdomain
250-tpblue
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-XFORWARD NAME ADDR PROTO HELO SOURCE PORT
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
mail FROM:<x...@harvee.org> size=3586
250 2.1.0 Ok
rcpt TO:<e...@harvee.org>
250 2.1.5 Ok
XFORWARD  ADDR=1.2.3.4
503 5.5.1 Error: MAIL transaction in progress
rset
250 2.0.0 Ok


I've been over the documentation, mailing list archives, Google a few times but
I'm not seeing what's wrong.  I would appreciate some help.

thanks

---eric

Reply via email to