Postfix setup for checking against DB?

So does anyone have postfix configured to check users against the database as described here: http://pbj.ca/postfix.html

In a sandbox system I have postfix configured as a catch all and forward to maildaemon.php and it works fine. I have been trying to learn all the finer aspects of virtual mail routing and DB querying with postfix but so far have been unsuccessful. The doc seems to be missing or assuming some things in the postfix config. If anyone has any additional details not mentioned in the above link please post.

Comments

  • more specifically my error is:
    1. If I follow the config guide above I get an error (unknown user: "post"). Do you have to create a user named 'post' ?
    2. If I change this to be a system user that I created the mail is delivered to the user's home/mail directory properly. If I setup a .forward the maildaemon.php throws a "could not parse" error. So I am guessing that during lookup the TO or FROM is getting messed up.
  • Can anyone comment how you configured your smtp server? Is it setup to catch-all emails? What is the best practice here?
  • did you look here? http://status.net/wiki/Postfix I understand your pain, postfix can be really picky. its hard to say what it might be without looking/knowing more about your environemnt and looking at your postfix config (main, master, aliases, virtual, transports etc) --good luck!
  • you need to add a user post, yes, (some user), but as the doc explains, you cannot virtual alias map a system user
    if you connect postfix to the user table, and have a user and group with uid and gid as noted, the .forward will work

    email me if you need assistance; the doc works, but it is admittedly terse :)

    Stefan Caunter
    http://mapguy.ca/ http://pbj.ca/
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Google Sign In with OpenID