![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||||
| |||||
|
|
i'm creating a db to store mail account's data user by postfix i created the tables, i inserted some test accounts and i created an user (postfix) used by postfix to access the db i granted select right to this user, but when postfix tried to use the db, i received this error : [postgres.log] 2006-12-21 17:18:17 [10729] LOG: connection authorized: user=postfix database=mail_miohost 2006-12-21 17:18:17 [10729] ERROR: Permission Denied to the Relation domains |
|
[mail.log] Dec 21 17:16:13 p2-debian postfix/trivial-rewrite[10620]: warning: connect to pgsql server 192.168.1.5: fe_sendauth: no password supplied? Dec 21 17:16:13 p2-debian postfix/cleanup[10619]: 8A7F42014A: message-id=<20061221161613.8A7F42014A (AT) miohost (DOT) it> Dec 21 17:16:13 p2-debian postfix/qmgr[10615]: 8A7F42014A: from=<root (AT) miohost (DOT) it>, size=443, nrcpt=1 (queue active) Dec 21 17:16:13 p2-debian postfix/trivial-rewrite[10620]: fatal: pgsql:/etc/postfix/transport.cf(0,100): table lookup problem Dec 21 17:16:14 p2-debian postfix/qmgr[10615]: warning: premature end-of-input on private/rewrite socket while reading input attribute name Dec 21 17:16:14 p2-debian postfix/qmgr[10615]: warning: problem talking to service rewrite: Success Dec 21 17:16:14 p2-debian postfix/master[1756]: warning: process /usr/lib/postfix/trivial-rewrite pid 10620 exit status 1 |
|
postfix is correctly(i think) configurated : [main.cf] virtual_maps = hash:/etc/postfix/virtual virtual_mailbox_base =/var/spool/mail/vhosts virtual_minimum_uid = 10000 virtual_uid_maps = pgsql:/etc/postfix/uids.cf virtual_minimum_gid = 10000 virtual_gif_maps = pgsql:/etc/postfix/virtual.cf virtual_mailbox_domains = pgsql:/etc/postfix/transport.cf virtual_mailbox_maps = pgsql:/etc/postfix/mailboxes.cf |
|
and one of postfix external configuration file [transport.cf]: #domain transport information hosts = 192.168.1.5 user = postfix password = postfix dbname = mail_miohost table = domains select_field = transport where_field = domain this is in pg_hba.conf postfix 192.168.1.5 255.255.255.255 password |
|
i had errors even if i try to access the db with "postfix" user using psql -U i've created it (the user) with the standard procedure(login as "postgres" user and with "createuser") |
![]() |
| Thread Tools | |
| Display Modes | |
| |