From: "David Jacobson" <dav...@synaq.com>
To: postfix-users@postfix.org
Sent: Friday, July 9, 2010 3:54:16 PM
Subject: Re: SASL Authentication per recipient domain
From: "Sahil Tandon" <sa...@freebsd.org>
To: postfix-users@postfix.org
Sent: Friday, July 9, 2010 2:03:23 PM
Subject: Re: SASL Authentication per recipient domain
On Fri, 2010-07-09 at 12:20:12 +0200, David Jacobson wrote:
> I appreciate your response, however if you read my original message
> you will notice that we have had a look at all support
> smtp_sasl_password_maps options and it only allows for the following
> scenario according to the docs:
>
> 1) use SMTP auth for _destination_ mail server
> 2) use SMTP auth PER _email address_ to destination mail server
>
> It does not allow for SMTP auth per _sending domain_
>
> Option 2 will give desired results but is a nightmare to manage
> individual email addresses in the file, we just want to say
> *...@sendingdomain.com uses auth.
Have you explored PCRE to match *...@example.org on the LHS of
smtp_sasl_password_maps?
--
Sahil Tandon <sa...@freebsd.org>
Hi Sahil,
We tried PCRE matches to no avail. Based on your request we tried to change sasl_passwd lookup from hash to pcre (I'm no postfix guy, so have no idea if this should work or not, but postfix restart didn't complain)
smtp_sasl_password_maps = pcre:/opt/zimbra/postfix/conf/sasl_passwd
Then in sasl_passwd tried various combinations including:
/@domain\.com$/ username:password
And it did not work, please advise what you mean? It just seems like SASL doesn't support PCRE.
Thanks!
Hi There,
Just for the sake of clarification we've found what we're looking for, PCRE was not required.
We simply made smtp_sender_dependent_authentication = yes then sasl_passwd could accept @domain.com - took us now 2 days to figure this one out.
Thanks for everyones assistance anyway.
David Jacobson | |||
Technical Director | |||
Tel: | 011 262 3632 | ||
Fax: | 086 637 8868 | ||
Cell: | 083 235 0760 | ||
Email: | dav...@synaq.com | ||
Web: | www.synaq.com |
||
Sandhaven Office Park, Pongola Crescent Eastgate Ext 17 Sandton |
David Jacobson | |||
Technical Director | |||
Tel: | 011 262 3632 | ||
Fax: | 086 637 8868 | ||
Cell: | 083 235 0760 | ||
Email: | dav...@synaq.com | ||
Web: | www.synaq.com | ||
Sandhaven Office Park, Pongola Crescent Eastgate Ext 17 Sandton |