Re: [exim] help creating a rule for virtual accounts

2017-05-31 Thread Dan Liles via Exim-users
Hey Phil, Thank you that worked perfectly. I appreciate your help. Dan -Original Message- From: Phil Pennock [mailto:p...@exim.org] Sent: Tuesday, May 30, 2017 9:05 PM To: Dan Liles Cc: exim-users@exim.org Subject: Re: [exim] help creating a rule for virtual accounts On 2017-05-30

Re: [exim] help creating a rule for virtual accounts

2017-05-30 Thread Phil Pennock
On 2017-05-30 at 18:55 -0500, Dan Liles via Exim-users wrote: > Yes it's a file separated by : just like the other ones. So ? ${lookup {$local_part@$domain}lsearch{/etc/dovecot/passwd} {yes}{no}} https://www.exim.org/exim-html-current/doc/html/

Re: [exim] help creating a rule for virtual accounts

2017-05-30 Thread Dan Liles via Exim-users
help creating a rule for virtual accounts On 30/05/17 19:22, Dan Liles via Exim-users wrote: > No because it looks for an actual user on the system. I'm looking for > a solution that will work off of the /etc/dovecot/passwd file. You didn't mention that filename before. What's th

Re: [exim] help creating a rule for virtual accounts

2017-05-30 Thread Evgeniy Berdnikov
On Tue, May 30, 2017 at 11:56:41AM -0500, Dan Liles via Exim-users wrote: > What I'm trying to do is an lsearch condition to look for a delivery address > in the passwd file for acceptance. > > condition = {$lookup {passwd {$local_part@$domain}}} Syntax is incorrect. Test with "-be" command lin

Re: [exim] help creating a rule for virtual accounts

2017-05-30 Thread Jeremy Harris
On 30/05/17 19:22, Dan Liles via Exim-users wrote: > No because it looks for an actual user on the system. I'm looking for a > solution that will work off of the /etc/dovecot/passwd file. You didn't mention that filename before. What's the format; can you parse it with suitable string-expansions

Re: [exim] help creating a rule for virtual accounts

2017-05-30 Thread Dan Liles via Exim-users
arris Sent: Tuesday, May 30, 2017 12:31 PM To: exim-users@exim.org Subject: Re: [exim] help creating a rule for virtual accounts On 30/05/17 17:56, Dan Liles via Exim-users wrote: > I want to create a rule where we look in the /etc/passwd file to find > an email user that doesn't exist

Re: [exim] help creating a rule for virtual accounts

2017-05-30 Thread Jeremy Harris
On 30/05/17 17:56, Dan Liles via Exim-users wrote: > I want to create a rule where we look in the /etc/passwd file to find an > email user that doesn't exist as a local user account. Does the "check_local_user" router option do what you need? -- Cheers, Jeremy -- ## List details at https://l

[exim] help creating a rule for virtual accounts

2017-05-30 Thread Dan Liles via Exim-users
Hello everyone, I want to create a rule where we look in the /etc/passwd file to find an email user that doesn't exist as a local user account. What I'm trying to do is an lsearch condition to look for a delivery address in the passwd file for acceptance. condition = {$lookup {passwd {