Of course i'm using Postfix 2.10.
Detailed description of my problem:

I have apache with ITK MPM. Every site runs from it's own user. It's done
via libnss-mysql and with the following config in nsswitch.conf:

group: files mysql
group_compat: nis
hosts: files dns
networks: files
passwd: files mysql
passwd_compat: nis
shells: files
services: compat
services_compat: nis
protocols: files
rpc: files

When php script uses mail() function, it calls sendmail from the user
running apache. I have following configuration for getpwuid in
libnss-mysql.cfg:
getpwuid SELECT username, 'x', uid, gid, '0', '', 'MySQL User', homedir,
shell, '0' FROM ftp_users WHERE uid='%1$u' AND login_enabled = 'Y' LIMIT 1

User with uid 10020 exists in table ftp_users and login_enabled set to Y.
Maybe the problem is not postfix-related, but everything else works fine: I
can use all these users from mysql for asigning owner of files, run
processes, etc. The only problem is with submitting emails from apache to
sendmail.


P.S. Sorry for bad english.

Reply via email to