Roy,

> I would like to know if there is a way to bypass @storage_sql_dsn
> when the database is offline, maybe a fallback storage method?

The @storage_sql_dsn is a list of alternate storage methods.
Entries that are not working are skipped, the one that does work
is used (even if previous entries are repaired meanwhile).
When a working entry fails, the search for a good entry
continues, in a round-robin fashion. If all entries fail,
mail processing tempfails, to be retried by MTA later.

> The long story is that our quarantine database is on our primary
> mail relay, and the secondary mail relay is using this quarantine
> database (on the primary). When the primary is down (and its
> MySQL database is unavailable) the secondary mail server 
> bounces messages.

It shouldn't bounce the message, it is supposed to return
a temporary failure to MTA, mail stays in the queue.

> What is the right way to configure amavisd to keep processing messages
> even though its quarantine database is not available?

Provide additional entries in @storage_sql_dsn for emergency needs.
Perhaps add a local SQL database, and you may discard later
whatever accumulates there if stored data is not important.
An entry can not be a dummy/empty entry: if storage to SQL
is specified, then data must end up in some storage, or mail tempfails.

> Is there a way to configure amavisd to temporarly quarantine using
> local files, or similar? 

Currently it is not possible to fallback from SQL to some file-based
storage method, it is only possible to fallback to some other SQL database.

  Mark

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to