[Dovecot] Dovecot Virtual Users with Sendmail
Steffen Kaiser
skdovecot at smail.inf.fh-brs.de
Thu Jan 3 09:39:18 EET 2013
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thu, 3 Jan 2013, Steffen Kaiser wrote:
> On Wed, 2 Jan 2013, DormitionSkete at hotmail.com wrote:
>
>> On Jan 2, 2013, at 11:12 AM, Andrzej A. Filip wrote:
>>
>>> On 01/02/2013 06:53 PM, DormitionSkete at hotmail.com wrote:
>>>> [...]
>>>> This is the mail header from the mqueue:
>>>>
>>>> [...]
>>>> MDeferred: dovecot mailer (/usr/local/libexec/dovecot/dovecot-lda) exited
>>>> with EX_TEMPFAIL
>>>> [...]
>>>
>>> Check dovecot's logs
>>> If it does not help the push delivery of messages ni sendmail's queue in
>>> verbose mode: "sendmail -Am -v -q"
>>
>> Well, the logs showed this:
>
> Note, sendmail started the /usr/local/libexec/dovecot/dovecot-lda, but the
> LDA failed temporarily. Where does Dovecot LDA log to??
> I suppose that the LDA is executed with permissions, that does not allow to
> write to the mail storage or that the LDA does not have permission to access
> the userdb. Maybe it's the same problem as in the thread "From Sendmail to
> Dovecot mdbox, what is missing.".
>
> I suggest to replace the "P=" in the Dovecot mailer with a wrapper script,
I mean, hack the sendmail.cf file here:
######################*****##############
### DOVECOT Mailer specification ###
##################*****##################
Mdovecot, P=/usr/local/libexec/dovecot/dovecot-lda, F=DFMPhnu9,
S=EnvFromL/HdrFromL, R=EnvToL/HdrFromL,
T=DNS/RFC822/X-Unix,
A=/usr/local/libexec/dovecot/dovecot-lda -d $u
Replace /usr/local/libexec/dovecot/dovecot-lda with
/etc/mail/smrsh/wraplda.sh (or whereever your smrsh directory is
located). You do have a symlink to /usr/local/libexec/dovecot/dovecot-lda
in there, haven't you?
> you get all the necessary information with:
>
> ================ wraplda.sh
> #!/bin/sh
>
> ( date ; id
> echo "$@"
> /usr/local/libexec/dovecot/dovecot-lda "$@"
> rc=$?
> echo exit code: $rc
> exit $rc
> ) >> /tmp/lda.log 2>&1
> =================
>
> Put it into your "smrsh" directory.
Make it eXecutable.
- --
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
iQEVAwUBUOU1pmoxLS8a3A9mAQJ08AgAgcMGeByiDkdn+8LxAnbN8EJMPr1Kjyyf
fPiSQrl26ibX48OhWw/+jXlLtsXQQ2RkqP/+m9ojEDYlSRP/Ragj0AEcFuvD7e5K
Q4V4HPOnfAUWjpIJmjNiwfYNzmJljbcNuZYc1CCUGAFxJqoKigR1shZjk25TtdGk
XBe7XOUPi1+CftxVGR+q7cItFJ5IiU6chfJdFRtEARhznowqqwQsxEqB4MpJdb81
X2SDs442dReB0fgyWH4wOd/0vrAOvbganYrq5xId6fqP7eXerEgAQACj5ZK/OOiv
Pw/gyVSkDiSSVJ+6sFAreLQDj6Ibsejjq/xm8bKVldbbDluQz4yAvA==
=pYgA
-----END PGP SIGNATURE-----
More information about the dovecot
mailing list