|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: database access
From: Kyle Dent (kdent
seaglass.com)
Date: Mon Dec 01 2003 - 15:38:20 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Mon, 1 Dec 2003 tallison
tacocat.net wrote:
> I've got a question about using a database for the access table.
>
> The intention is to, by default, REJECT or DEFER email while using a
> database for keeping a list of 'OK' addresses.
>
> Is the answer this simple:
>
> smtpd_helo_restrictions = postgresql:/etc/postfix/sql_access.cf... reject
> smtpd_sender_restrictions = postgresql:/etc/postfix/sql_access.cf... reject
>
> and to put the 'OK' addresses into the database?
Only if the question is 'How do I create an open relay?' :-) You
cannot allow relaying based on any client-supplied info (other
than IP address). Look into SASL authentication or one of the
before-POP solutions. See http://www.postfix.org/docs.html.
> Also, I didn't see many examples on the use of postgresql...
> Any suggestions on how best to use postgres for the database?
Works the same as MySQL if those examples help.
Kyle
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]