Re: Postfix get_service_attr, dovecot, mysql, OS X

2009-04-24 Thread Wietse Venema
Scott Haneda:
 Apr 23 16:28:02 postfix/pipe[49289]: fatal: get_service_attr:  
 unknown username: vmail

This error is logged in non-verbose mode.

In master.cf you have pipe ... user=vmail. Either there is no
such user in the password database, or you have incorrect access
permissions so that an unprivileged postfix process cannot access
the password database.

This error happens entirely before Postfix executes any Dovecot
software, and therefore logfile permissions are a red herring.

Wietse


Postfix get_service_attr, dovecot, mysql, OS X

2009-04-23 Thread Scott Haneda
Hello, this is a new install of postfix with dovecot and mysql as an  
auth db for me.  I have built everything in /opt/local/.


Currently, I have pop, smtp, imap working, auth'ing against mysql.  I  
can pop login, smtp login, and imap login.


When I make a telnet conenction to port 25, I am allowed in, I set  
mail from, rcpt to, send the data, and am given back a queue id.


Looking at the log, I hit an error:

Apr 23 16:28:02 postfix/qmgr[49216]: 0B073225D0D: from=sc...@scotttest.com 
, size=410, nrcpt=1 (queue active)
Apr 23 16:28:02 postfix/qmgr[49216]: 11803227FEE: from=sc...@scotttest.com 
, size=419, nrcpt=1 (queue active)
Apr 23 16:28:02 postfix/pipe[49289]: fatal: get_service_attr: unknown  
username: vmail
Apr 23 16:28:02 postfix/pipe[49290]: fatal: get_service_attr: unknown  
username: vmail
Apr 23 16:28:03 postfix/qmgr[49216]: warning: private/dovecot socket:  
malformed response
Apr 23 16:28:03 postfix/qmgr[49216]: warning: transport dovecot  
failure -- see a previous warning/fatal/panic logfile record for the  
problem description
Apr 23 16:28:03 postfix/master[43394]: warning: process /opt/local/ 
libexec/postfix/pipe pid 49289 exit status 1
Apr 23 16:28:03 postfix/master[43394]: warning: /opt/local/libexec/ 
postfix/pipe: bad command startup -- throttling
Apr 23 16:28:03 postfix/qmgr[49216]: warning: private/dovecot socket:  
malformed response
Apr 23 16:28:03 postfix/qmgr[49216]: warning: transport dovecot  
failure -- see a previous warning/fatal/panic logfile record for the  
problem description
Apr 23 16:28:03 postfix/master[43394]: warning: process /opt/local/ 
libexec/postfix/pipe pid 49290 exit status 1


I am pretty new to this on OS X, and I am fairly certain few people  
have gotten this setup on OS X. You will see reference to user vmail  
above, which I have set up that user, and as far as I know, it is  
correct.  OS X uses a slightly different mechanism that on linux to  
add users and groups.  I was new to this, but I am able to set user  
and group on a file or directory.


I am not sure what data is needed to help me, other than the log snips  
above, just in case, here is the output to postconf -n, I can also put  
up any cf files if they are needed.  I just saw 'debug_peer_level'  
below, I am going to bump that up and see if it gives me any clues.


$postconf -n
command_directory = /opt/local/sbin
config_directory = /opt/local/etc/postfix
daemon_directory = /opt/local/libexec/postfix
data_directory = /opt/local/var/lib/postfix
debug_peer_level = 2
default_privs = nobody
html_directory = no
mail_owner = _postfix
mailq_path = /opt/local/bin/mailq
manpage_directory = /opt/local/share/man
newaliases_path = /opt/local/bin/newaliases
queue_directory = /opt/local/var/spool/postfix
readme_directory = /opt/local/share/postfix/readme
sample_directory = /opt/local/share/postfix/sample
sendmail_path = /opt/local/sbin/sendmail
setgid_group = _postdrop
unknown_local_recipient_reject_code = 550
virtual_alias_maps = mysql:/opt/local/etc/postfix/mysql-virtual-alias- 
maps.cf,mysql:/opt/local/etc/postfix/mysql-email2email.cf

virtual_gid_maps = static:5000
virtual_mailbox_domains = mysql:/opt/local/etc/postfix/mysql-virtual- 
mailbox-domains.cf
virtual_mailbox_maps = mysql:/opt/local/etc/postfix/mysql-virtual- 
mailbox-maps.cf

virtual_transport = dovecot
virtual_uid_maps = static:5000

--
Scott * If you contact me off list replace talklists@ with scott@ *