Lorna Sanchez M. wrote:
Where is the pop-before-smtp table? Is there a imap-before-smtp table?
Because they're not in the dbmail tar I downloaded and installed....
and they're not part of the database.
Do I have to change some parameters in postfix?
Has someone done this before?
Works quite nicely for me:
$ cat relay.mysql
hosts = unix:/tmp/mysql.sock
user = REMOVED
password = REMOVED
dbname = dbmail
table = dbmail_pbsp
select_field = ipnumber
where_field = ipnumber
$ cat main.cf|grep relay.mysql
mynetworks = 127.0.0.0/8, 193.66.203.225,
mysql:/usr/local/etc/postfix/relay.mysql
of course postfix needs to be compiled with mysql support as well
...there might be more elegant place in postfix to tell it which ip's
are allowed to relay mail. But this works for me :)
--
br,
Sty