> > if your filter is on a separate host, why does it reply with the same > hostname? >
Because it replies with what it received. It just passes everything from its input to its output, except for the DATA which goes via filters. it's basically this: https://github.com/jnorell/smtpprox