Dnia 12.11.2019 o godz. 21:56:51 Ján Lalinský pisze: > To achieve this, I'd like to set up Postfix+Linux -based outgoing mail > server, possibly with some helper daemon. Any incoming TCP connection on > localhost:25 where Postfix listens will be handled in a way dependent on > the UID of the process that initiated it. In short, I want to police the > emails based not on the sender email address or IP address, but based on > the sender UNIX UID.
I guess you can only reliably determine UIDs if you use mail submission via pickup (/usr/sbin/sendmail) and not via SMTP to localhost. Usually most software that sends emails can be configured to use pickup instead of SMTP to localhost, so check if you can reconfigure it so. -- Regards, Jaroslaw Rafa [email protected] -- "In a million years, when kids go to school, they're gonna know: once there was a Hushpuppy, and she lived with her daddy in the Bathtub."
