[Dovecot] Problem with deliver
Steffen Kaiser
skdovecot at smail.inf.fh-bonn-rhein-sieg.de
Tue Jun 19 10:59:55 EEST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Mon, 18 Jun 2007, David Favor wrote:
> Doing the following should create a Maildir directory structure
> in an arbitrary directory, deposit a message and create/update
> any dovecot indexes:
>
> mkdir /common/foo
> export HOME=/common/foo
> export PATH=/usr/libexec/dovecot:$PATH
> cat 1180102308.88215.4145.davidfavor.com:2,RS | deliver -f doda at foobar.com
Well, who is executing this sequence of commands?
> This gives an error "(-d user) not given"
So, you are running the commands as root.
> and when '-d user' given an exit
> code
> of 75 is silently returned.
Which means Tempfail.
> Let me know the correct way to test how the deliver program works.
See, http://wiki.dovecot.org/LDA ;-)
For system users the MTA usually drops privileges before calling programs
in the ".forward" files, hence, deliver knows from its UID what user to
deliver to, hence, no -d switch; when you use deliver as MDA, deliver is
usually invoked with the sendmail privieleges, hence, root und need to
get passed the recipient with the -d switch.
What's in the Logs? - First make sure that Dovecot Deliver is able to
access the logs, e.g. using syslog or a 0666 file, because Deliver drops
privileges.
The correct useage depends on your user base, virtual vs. real.
Bye,
- --
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iQEVAwUBRneM/S9SORjhbDpvAQLU0ggAm3HLo9Nvf4QWELMX3SONIVm80LBlSWHC
V06daXDueaz4v8zcToPWKXv6xzxB8u9fP2O3qpY/bQUj/bmO6faGESX/KXPRSS+e
GVbqJBRQZ2xvmb0LoXZUAaPfJTqCTt5/D55Fbfe7gBhLUU8fhAI30rN1fUCKuIZu
y6q/1e5ZLNtfUZKcaD4/faY++7UDfmfie5JJz77qTyi3ITsE/moISilqeEoYTg0C
XorZBjg9lmEUK0vhBu9hvWREIgsnki4sPLJfhI1J9Z2Wxr2Rz6b7k9sNSvf/KlfI
TQdZDzkEHPgGV67Toq9YN7A58h4D0A+zh7JOFPMfU3enRdNnencj3g==
=G6IC
-----END PGP SIGNATURE-----
More information about the dovecot
mailing list