On 21.05.21 14:43, [email protected] wrote:
I don't need Spamassassin to trust wether a mail comes from authenticated source or not.
I provided an example of how to find out the authenticated user by using existing solution, e.g. smtpd_sasl_auth_enable=yes.
I needed to know which one, is the authenticated user has sent an email in the smtpd instance returning from Amavis for being able to give that mail an action with a poilcy.
I know this - you have already explained what you want to know. But you haven't answered my question, which is: what exactly you need it for? Maybe we'd have better tip for you.
By the way, I would say that the fact of entering a very known header in an email as you know, is absolutely simple so I think it's not perhaps the best idea to trust only in that header. But I think Wietse put me in the correct way and now I think I have a good idea :)
I wonder that you are willing to accept random header that can be faked by sending client, instead of using header that can be trusted. ...are you sure you will only match the first header in the mail? maybe you could use STRIP, IGNORE or REPLACE instead of PREPEND, or use both STRIP/IGNORE in header_checks and PREPEND in policy filter, which makes sure the header you use will be deleted from input stream. but still explaining what you want could lead to better solution for your problem. -- Matus UHLAR - fantomas, [email protected] ; http://www.fantomas.sk/ Warning: I wish NOT to receive e-mail advertising to this address. Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu. Boost your system's speed by 500% - DEL C:\WINDOWS\*.*
