diff --git a/plugins/rcpt_to.ldap.js b/plugins/rcpt_to.ldap.js
index <HASH>..<HASH> 100644
--- a/plugins/rcpt_to.ldap.js
+++ b/plugins/rcpt_to.ldap.js
@@ -33,7 +33,7 @@ exports.ldap_rcpt = function(next, connection, params) {
     var txn = connection.transaction;
     if (!txn) return next();
 
-    var rcpt = params[0];
+    var rcpt = txn.rcpt_to[txn.rcpt_to.length - 1];
     if (!rcpt.host) {
         txn.results.add(plugin, {fail: '!domain'});
         return next();
Aliases plugin modifies transaction.rcpt_to

The aliases plugin modifies the transaction.rcpt_to array.
Look at the latest entry added to the rcpt_to array and
use that for looking up the destination LDAP account.