From: Soren 'Frank' Munch (no email)
Date: Sun Jun 02 2002 - 13:17:01 EDT
Dear list,
I have a problems with
postfix + sasl + mailbox_command
The problem is that Postfix' "local" refuses to deliver as it can't see
users in the sasl-db.
I have now enjoyed spending a couple of days on trying to understand mail &
postfix and would be grateful for any answers on below.
I see the mail has gotten long but that is just an attempt to give precise
info - the questions are short. :-)
- - -
Procmail works as expected and procmail + cyrus's deliver also works fine
together when called isolated.
And Postfix + cyrus works fine by itself, with delivery to users in the
sasl-db to their imap-boxes.
In /etc/post/main.cf I use the line
local_transport = lmtp:unix:/u5/var/imap/socket/lmtp
matched by cyrus' /etc/cyrus.conf
lmtpunix cmd="lmtpd" listen="/u5/var/imap/socket/lmtp" prefork=1
I assume that this of course is what links postfix' delivery to cyrus imapd.
I have tried to remove everything about sasl_... from main.cf and it still
works so:
*** First question:
When using local_transport it not really postfix that authenticates the
users in sasl-db.
Postfix "simply" sends the info off to cyrus' imapd and authentication is
done by imapd.
This is why it works regardless of sasl_... entries in main.cf
Right?
- - -
Anyway - as I want to use procmail calling cyrus "deliver" I do not want to
use the local_transport socket mechanism.
So I out-comment the lines mentioned above
# local_transport = lmtp:unix:/u5/var/imap/socket/lmtp
# lmtpunix cmd="lmtpd" listen="/u5/var/imap/socket/lmtp" prefork=1
and instead add this to main.cf:
mailbox_command = /u5/apps/procmail/bin/procmail -t -a "$EXTENSION"
Now postfix invokes it's own "local" daemon - but it does not accept
entries in sasl-db - it gives back a "postfix/local: unknown user" in the log.
*** Second question (provided I understood the first one correctly)
Is there a way to make "local" accept users in sasl-db?
I have read everything related, tried to throw in every possible (I think)
sasl_... command into main.cf.
- - -
I got the idea of copying the users in the sasl-db into a table called
local_recipients in the form
user1 anything
user2 anything
...
then add the line in main.cf
local_recipients_maps = hash:/path/to/file/local_recipients
and run postmap that as expected produced a local_recipients.db file.
But still "status=bounced (unknown user: "user1")"
*** Third question
Why does this not help?
- - -
In
http://www.linuxworld.com/site-stories/2002/0401.ldap2.html
"How to set up IMAP on the cheap, Part 2"
there's a description of exactly what I try to do. I have tried it also
without luck. Espacially it puzzles me that the author _both_ uses the
mailbox_command and mailbox_transport = procmail. That way the .../procmail
- call is written two places, both in
main.cf and also in master.cf. I am confused!
When I tried it I invariably got an "procmail/pipe: : unexpected attribute
sender in input from procmail socket" , regardless of what commands I sent
to procmail. After spending many hours on it I gave up.
*** Last questions:
Would it make sense to both use mailbox_command and mailbox_transport =
procmail ? Would it solve my problem?
Why do I get this ... error?
- - -
If anyone would have good ideas on how I get postfix to recognize users not
in master.passwd (preferably those in the sasl db) I'd like to try them out!
(Below are "dumps" from postconf and maillog.)
Thanks in advance.
Soren "Frank"
u5com
postconf -n
command_directory = /u5/apps/postfix/bin
config_directory = /etc/postfix
daemon_directory = /u5/apps/postfix/daemon
debug_peer_level = 2
local_recipient_maps = hash:/u5/var/postfix/tables/local_recipients
mail_owner = cyrus
mailbox_command = /u5/apps/procmail/bin/procmail -t -a "$EXTENSION"
mailq_path = /usr/bin/mailq
manpage_directory = /usr/local/man
newaliases_path = /usr/bin/newaliases
queue_directory = /u5/var/postfix/spool
readme_directory = /u5/apps/postfix/README
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
Jun 2 13:14:17 pb10 postfix/local[6210]: 77B18A3047:
to=<>, relay=local, delay=1, status=bounced (unknown
user: "sfm1")
Jun 2 13:14:17 pb10 postfix/cleanup[6209]: 2377BA30BC:
message-id=<>
Jun 2 13:14:17 pb10 postfix/qmgr[6199]: 2377BA30BC: from=<>, size=2535,
nrcpt=1 (queue active)
Jun 2 13:14:17 pb10 postfix/smtp[6202]: 2377BA30BC: to=<>,
relay=pb5.pair.com[216.92.131.17], delay=0, status=sent (250 Ok: queued as
DBA793E9B9E)
-
To unsubscribe, send mail to with content
(not subject): unsubscribe postfix-users
|
|
|