Код: Выделить всё
log_router_in:
driver = accept
condition = ${if eq{}{${lookup mysql{SELECT `maildir` FROM `mailbox` \
WHERE `username`='${quote_mysql:$local_part@$domain}'}}}{no}{yes}}
unseen = true
transport = log_s_in
retry_use_local_part
Код: Выделить всё
mysqluser:
driver = accept
condition = ${if eq{}{${lookup mysql{SELECT `maildir` FROM `mailbox` \
WHERE `username`='${quote_mysql:$local_part@$domain}'}}}{no}{yes}}
transport = mysql_delivery
что-то вроде этого.
Код: Выделить всё
log_router_out:
driver = accept
condition = ${if eq{}{${lookup mysql{SELECT `maildir` FROM `mailbox` \
WHERE `username`='${quote_mysql:$sender_address}'}}}{no}{yes}}
unseen = true
transport = log_s_out
retry_use_local_part