Closed girardinsamuel closed 3 years ago
Thank you, I will take a look and play a bit with postfix config
I was thinking about running django code upon email reception. As I understand, when an email matching a rule is received Salmon will execute the function corresponding to this route. In this function we can do whatever we want, but we are not "inside" django scope so I guess I have to find a way to tell Django an email has been received (local api, sockets.. ?)
Oh, sorry I misunderstood.
You can call any Django code from within Salmon and it'll work fine as long as you've called django.setup()
via your boot module. Something like this:
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'myapp.settings')
django.setup()
Then you can use Django code you want in Salmon
Oh yes okay sure, I'll try 👍 I am closing this issue then. Thanks
Hi ✋ !
I am planning to develop an app which needs to act on emails receiving and have some questions about production deployment with Salmon.
Thank you in advance,