On Saturday 12 January 2019 18:55:32 Wietse Venema wrote: > Wietse Venema: > > Pali Roh?r: > > > Meanwhile I decoded postdrop protocol and come up with more easier > > > solution: > > > > That is an internal protocol. Programs that depend on this > > are NOT SUPPORTED and will break. > > Why not add the extra recipient on the SENDMAIL command line? > > Example: install this as /usr/sbin/sendmail. > > #!/bin/sh > exec /usr/sbin/sendmail.real "$@" ex...@example.com > > Why tinker with internal protocols, when you can use > documented features?
Hm... that you for a hint. This wrapper is easier to implement as wrapper for postdrop. I chose postdrop as I understood that this is the last application in "pipeline" which has information about unix before email is put into queue. Are there any other binaries which calls postdrop? Or /usr/sbin/sendmail is the only one binary which uses postdrop? -- Pali Rohár pali.ro...@gmail.com
signature.asc
Description: PGP signature