Re: [Exim] Fun with Cyrus

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: mb
Ημερομηνία:  
Προς: Ron McKeating
Υ/ο: Exim-Users (E-mail)
Αντικείμενο: Re: [Exim] Fun with Cyrus
At 11:16 +0100 Ron McKeating wrote:

>so they will not exist in /etc/passwd. In our old config we had
>check_local_user in the router. Is there anything else I should look at
>besides this if I want to deliver to cyrus for users that do not exist
>on as local users?


You can do a callout over LMTP if you use a manualroute router. This is
an edit (for simplicity and thus untested) of what I do, which should
queue messages for users who are over quota, but reject (at SMTP time)
invalid local-parts:

[in your RCPT ACL]

require verify = recipient/defer_ok/callout=10s/callout_defer_ok

[routers]

cyrus:
driver = manualroute
domains = cyrus
transport = lmtpsock
route_list = * localhost
log_as_local

local_user:
driver = redirect
domains = +local_domains
data = ${lc:$local_part}@cyrus
redirect_router = cyrus

[transports]

lmtpsock:
driver = lmtp
socket = /var/lib/cyrus/socket/lmtp
batch_max = 1000