I don't know whether this is relevant, but I rebooted the server this morning to see whether it was related to the install not starting services, and Dovecot didn't start automatically. When it started everything appeared fine. On further inspection the user alias issue may be an id10t error (i.e. my fault) they are working now - sorry for the false report. The domain alias issue is still present however, error reports follow;
I have the following domains (none of them critical, so not hiding them) - ac-wm.com - a 'real' domain, ac-wm.co.uk, an alias, john is a 'real' account on ac-wm.com and on the 'real' domain that ac-wm.co.uk is an alias of. johns is an alias of john on the real domain.
I sent an email from a hotmail test account to john@ac-wm.com, johns@ac-wm.com john@ac-wm.co.uk johns@ac-wm.co.uk. All should be delivered under the rule sets I have, all rulesets were created with iRedAdmin Pro. The server was installed as 32 bit Ubuntu server, 10.10, as a basic install, and then configured as an iRedMail server with your script.
Error log:
for john@ac-wm.co.uk (real account on alias domain)
May 5 16:15:04 broadway149 postfix/smtpd[8629]: connect from blu0-omc2-s28.blu0.hotmail.com[65.55.111.103]
May 5 16:15:04 broadway149 postfix/smtpd[8629]: NOQUEUE: reject: RCPT from blu0-omc2-s28.blu0.hotmail.com[65.55.111.103]: 554 5.7.1 <john@ac-wm.co.uk>: Relay access denied; from=<actest@hotmail.co.uk> to=<john@ac-wm.co.uk> proto=ESMTP helo=<blu0-omc2-s28.blu0.hotmail.com>
May 5 16:15:04 broadway149 postfix/smtpd[8629]: disconnect from blu0-omc2-s28.blu0.hotmail.com[65.55.111.103]
johns@ac-wm.co.uk (alias account on alias domain)
May 5 16:47:53 broadway149 postfix/smtpd[8939]: connect from blu0-omc3-s38.blu0.hotmail.com[65.55.116.113]
May 5 16:47:53 broadway149 postfix/smtpd[8939]: NOQUEUE: reject: RCPT from blu0-omc3-s38.blu0.hotmail.com[65.55.116.113]: 554 5.7.1 <johns@ac-wm.co.uk>: Relay access denied; from=<actest@hotmail.co.uk> to=<johns@ac-wm.co.uk> proto=ESMTP helo=<blu0-omc3-s38.blu0.hotmail.com>
May 5 16:47:53 broadway149 postfix/smtpd[8939]: disconnect from blu0-omc3-s38.blu0.hotmail.com[65.55.116.113]
john@ac-wm.com (real account, real domain)
delivered
johns@ac-wm.com (alias account, real domain)
delivered
As an entirely separate issue, I had to restart the mysql server because it was reporting 'too many connections' in mail.err. I had already increased connections to 500, and have now increased it to 1000 - but we simply are not that busy a mail server, so somewhere connections are not being closed - if I track it down I'll let you know.
As a third issue, roundcubemail reported a failure when trying to connect to the sieve server, but on a subsequent attempt connected, so I don't know whether it was also not running, and trying to connect 'prompted' it to start, or whether it is more significant, but it has been working since, however as a tiny aside, on the vacation filter there is a box prompting for 'How often send messages (in days):' - should this read 'How long between sending your message to each sender (in days):' or are you actually asking how many times a day should the message be sent?
Anyway, thank you, and any answers greatly appreciated.
Best,
John