On Mon, 2011-12-05 at 01:34:17 +0100, Sebastian Wiesinger wrote: > I'm using Postfix with MySQL via proxy:mysql maps. The documentation > states that mails should get deferred if no mysql server is reachable. > > However when I shut down MySQL, SMTP transaction freeze after I enter > the "MAIL FROM:<...>" statement. > > Any ideas how I can change that? There seems to be no timeout, I left > the SMTP dialog open for a few minutes at least.
Do not use SQL in virtual_mailbox_domains[1]; instead, set the latter to a regular list. Then, even when MySQL is down, Postfix will defer mail with 4.3.0 instead of appearing to freeze. [1] Actually, you should avoid using SQL or LDAP for any tables used by the trivial-rewrite(8) daemon. For context, see: http://article.gmane.org/gmane.mail.postfix.user/209024 http://article.gmane.org/gmane.mail.postfix.user/168112 http://article.gmane.org/gmane.mail.postfix.user/140543 -- Sahil Tandon