PDA

View Full Version : Virtual Postfix


alexillsley
9th September 2007, 01:53
Hi,
I have a setup similar to the following: http://howtoforge.com/virtual_users_and_domains_with_postfix_debian_etch _p3

I decided i want to be able enable / disable certain users being alllowed to send mail.

So i added to users table a field called 'smtpaccess' and then i modified SASL smtpd.conf to say:

sql_select: select password from users where email = '%u' and smtpaccess='Y'

I then enabled / disabled the usres smtp access how i wanted and reloaded and restarted postfix.

However it still lets me send emails even if smtpaccess doesnt equal Y for that account?

Any idea why?

Thanks again,
Alex