[Dovecot] Dovecot sieve with postfix.

Ben Morrow ben at morrow.me.uk
Wed Nov 28 02:32:07 EET 2012


At 12PM -0800 on 26/11/12 /#!/JoePea wrote:
> Hi Ben,
> Indeed, the mailq command shows my test messages sitting there with "mail
> transport unavailable".
> 
> > ┌─[11:48:22/hypership/root/~]
> > └─╼ mailq
> > -Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
> > 2DCCB580C01     1901 Mon Nov 26 11:45:02  trusktr at gmail.com
> >                                                   (mail transport
> > unavailable)
> >                                          trusktr at bettafootwear.com
> >
> > B1449580C03     1895 Mon Nov 26 11:48:41  trusktr at gmail.com
> >                                                   (mail transport
> > unavailable)
> >                                          trusktr at bettafootwear.com
> >
> > -- 5 Kbytes in 2 Requests.
> 
> I checked in /etc/syslog-ng/syslog-ng.conf and it shows destination d_mail
> { file("/var/log/mail.log"); }; but there is no such mail.log file so I
> created one.

I don't know how syslog-ng works, but you need to be able to see the
Postfix logs to have any chance of debugging this. Read your system
documentation and get that working before trying anything else.

> I logged in as mailman by doing su -s /bin/bash mailman then ran
> 
> /usr/lib/dovecot/dovecot-lda -f trusktr at gmail.com -d
> trusktr at bettafootwear.com </home/mailman/test_msg.txt
> 
> where /home/mailman/test_msg.txt contains a plain text sentence.

A single sentence is not a valid mail. Dovecot mostly doesn't care, but
you will see odd client behaviour if you deliver invalid mails...

> After doing that, mailq shows the new messages, but with the same "mail
> transport unavailable" message.

(I assume here that you only see the same list as before you attempted
the new delivery? Delivering to LDA by hand shouldn't go anywhere near
the Postfix queue.)

> However, in Roundcube I see a new blank message with no subject for each
> attempt of the dovecot-lda command.

...such as this. It looks like the 'mail' is being successfully
delivered; if you try with a proper mail, something like

    From: root at localhost
    To: root at localhost
    Subject: testing dovecot-lda

    1 2 3

it should show up properly in your client.

At this point I think this is a Postfix problem, not a Dovecot problem.
You can apparently successfully deliver mail using dovecot-lda, so
something in your Postfix config is not invoking it properly.

Ben




More information about the dovecot mailing list