[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[msmtp-users] Race in msmtp-enqueue?



I'm using msmtp 1.28 and noticed that I lose emails - they are just not send.


Below shows a simple test with 4 mail invocations - as you see the first three times, I get four new elements in the queue but then suddenly only 2. So, this looks like some race in queing of messages.

mail is configured to use msmtp-enqueue.

Andreas

> echo "Test1" |mail -s test1 aj@...45...;echo "Test2" |mail -s test2 aj@...45...;echo "Test3" |mail -s test3 aj@...45...;echo "Test4" |mail -s test4 aj@...45...;
> msmtp-listqueue.sh  |grep Subject |sort |wc -l
4
> echo "Test1" |mail -s test1 aj@...45...;echo "Test2" |mail -s test2 aj@...45...;echo "Test3" |mail -s test3 aj@...45...;echo "Test4" |mail -s test4 aj@...45...;
> msmtp-listqueue.sh  |grep Subject |sort |wc -l
8
> echo "Test1" |mail -s test1 aj@...45...;echo "Test2" |mail -s test2 aj@...45...;echo "Test3" |mail -s test3 aj@...45...;echo "Test4" |mail -s test4 aj@...45...;
> msmtp-listqueue.sh  |grep Subject |sort |wc -l
12
> echo "Test1" |mail -s test1 aj@...45...;echo "Test2" |mail -s test2 aj@...45...;echo "Test3" |mail -s test3 aj@...45...;echo "Test4" |mail -s test4 aj@...45...;
> msmtp-listqueue.sh  |grep Subject |sort |wc -l
14

> ls ~/.msmtpqueue/
2012-12-30-20.29.44-1.mail   2012-12-30-20.29.48-2.mail   2012-12-30-20.29.50-3.mail
2012-12-30-20.29.44-1.msmtp  2012-12-30-20.29.48-2.msmtp  2012-12-30-20.29.50-3.msmtp
2012-12-30-20.29.44-2.mail   2012-12-30-20.29.48-3.mail   2012-12-30-20.29.50.mail
2012-12-30-20.29.44-2.msmtp  2012-12-30-20.29.48-3.msmtp  2012-12-30-20.29.50.msmtp
2012-12-30-20.29.44.mail     2012-12-30-20.29.48.mail     2012-12-30-20.29.53-1.mail
2012-12-30-20.29.44.msmtp    2012-12-30-20.29.48.msmtp    2012-12-30-20.29.53-1.msmtp
2012-12-30-20.29.45.mail     2012-12-30-20.29.50-1.mail   2012-12-30-20.29.53.mail
2012-12-30-20.29.45.msmtp    2012-12-30-20.29.50-1.msmtp  2012-12-30-20.29.53.msmtp
2012-12-30-20.29.48-1.mail   2012-12-30-20.29.50-2.mail
2012-12-30-20.29.48-1.msmtp  2012-12-30-20.29.50-2.msmtp

--
Andreas Jaeger
 jaegerandi@...20...
  http://andreasjaeger.blogspot.com