Alex: > Hi folks, > > Situation: > Hoping to tie Postfix into a chain of software and hardware appliances > as a Message Bus, most of which is outside of my control. Postfix is run > inside a heavily firewalled network, no e-mail incoming from the outside > world. > > I'm trying to find out how (much work it is) to transform/convert the > RCPT TO line--*including* the NOTIFY section--from the incoming SMTP > session with an e-mail, into a mailheader with Postfix (or > milter-plugin) *and* strip the NOTIFY section from the SMTP session > after the original notify_options are preserved for the mailheader. The
Converting SMTP command line options into message headers requires an SMTP-based filter, for example, smtpd_proxy_filter. See: http://www.postfix.org/SMTPD_PROXY_README/html The reverse, conversion from from message headers to SMTP command line options, also requires an SMTP-based filter. Postfix strips SMTP syntax while receiving mail, and adds SMTP syntax while delivering mail. The rest of Postfix knows nothing about SMTP. Wietse