Backup Mail MX Store And Forward
Your statement: "all email will be queue in psa", it will be Qmail doing the storing, not PSA
Your statement: "sometime my mailserver is down (cause powercut)", UPS's are not that expensive
Procedure / Rationale:
Need to add 2nd MX record to domain's DNS.
- do this in the control panel
Need to leave Plesk settings for the domain the same (ie. do not turn on Mail functions)
Need to modify Qmail control files directly using SSH root login. Use a LINUX editor, not a Windows editor!!
/var/qmail/control/smtproutes
- if the domain is not already listed, then add it to this file
- this will tell Qmail where to send the queued messages for the domain
- one domain per line, example: somedomain.tld:ip.add.re.ss:25
- 3 pieces of info separated by colon characters, no spaces, lowercase.
/var/qmail/control/rcpthosts
- if the domain is not already listed, then add it to this file
- if the domain is not in this file, Qmail will reject messages for this domain
- one domain per line, example: somedomain.tld
- self explanatory
/var/qmail/control/virtualdomains
- if the domain is listed in this file, remove it
- if the domain is listed, then Qmail will try to deliver the messages to Maildir on the local server
- we do not want local delivery to Maildir
For additional information, please use the forum search, I and others have posted about this numerous times.
This basic procedure should be the same on any Qmail driven server regardless of Plesk usage or not.
References:
http://forum.plesk.com/showthread.php?threadid=26113&highlight=store+AND+forward
http://forum.plesk.com/showthread.php?postid=116951#post116951
AtomicRocketTurtle's Project Gamera (parts)