Am 09.10.2010 23:25, schrieb Paul J Stevens:
> On 10/09/2010 05:14 PM, Reindl Harald wrote:
>> I think this is a bug on dbmail-side
>>
>> lmtpd should send a 4xx-temorary-error instead a 5xx-hard-bounce
>> So postfix would try later to deliver the message again
> 
> That is easier said than done.

I know from my part as web-developer and this was not meant as critic

> The current setup will put lmtpd into sleep-mode immediately if the
> database goes away, and stay there until the connection recovers. In
> sleep mode no new client connections are accepted, and indeed in a
> perfect world existing connections should be dealt with gracefully.

As expected

> So obviously there are race-conditions at play here. Currently queries
> either succeed, or queries fail. The exact nature of the query failure
> is *not* examined, nor communicated back up the call stack! All query
> errors are hard errors.

This is the point what possible could be better

The easiest replacment would be drop the lmtp-connection without any message
Postfix would answer with "connection lost message could be sent more than once"
and would defer the message and try again later

It has more charme too while admin makes a mistake or something wents
wrong to not bounce messages

> The solution in this case is simple of course: do not shut down your
> database, unless you've shut down postfix or dbmail-lmtpd first. In
> fact, shutting down lmtpd during dbmail-maintenance runs doesn't sound
> too bad.

In a perfect world :-)

We are using the following script to shut down mail services
First crond to prevent our HA-Script to start services again

But as example mysql-updates in many distributuons are restarting
mysqld silently (that is why we are building mysqld and some other
important packafes from source) which could hit race-conditions

The same while reboot the machine without stop in perfect order
before - That is was i meant to say maybe could be optimized

> [r...@mail:~]$ cat /scripts/dbmail-stop-all.sh
> #!/bin/bash
>
> /sbin/service crond stop
> /sbin/service postfix stop
> /sbin/service dovecot stop
> /sbin/service dbmail-imapd stop
> /sbin/service dbmail-lmtpd stop
> /sbin/service dbmail-pop3d stop
> /sbin/service dbmail-timsieved stop
> /sbin/service mysqld stop

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
DBmail mailing list
[email protected]
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail

Reply via email to