Open hryamzik opened 7 years ago
The code currently uses a very lame heuristic for controlling the postfix MTA https://github.com/mdomke/concourse-email-resource/blob/master/opt/resource/out#L40-L44. To be honest I'm not a postfix expert and don't now if there is a deterministic way to find out if all mails in the queue have already been delivered.
I've faced issues with unsent emails. Messages stay in a queue but I would expect a send task to stay active until queue is empty.