Infodrom Oldenburg

— postfix —

28.10.2001: Fix envelope-from for uucp sites postfix 0.0.20011008.SNAPSHOT
This patch fixes a severe problem with a postfix installation on a uucp host. Without this patch all mails sent to the server via UUCP will be sent out by postfix with an envelope from like $user@$uucphost.$mydomain if the uucp name does not contain a dot. As long as the uucp site is addressed at $uucphost.$mydomain, this is fine.

However it is not if the uucp site is actually foo.com with the name foo and there is no foo.$mydomain. In that case Postfix would try to send out mails with an invalid envelope from address which could (and actually does) cause destination mail servers to reject the mail. Bummer.

This patch will make rmail look for the From: line in the originating mail and use that information as envelope from. This will only work if the address passes a very easy sanity check, i.e. contains an at-sign or a bang. If that's not the case the original method is used.

Download: patch.