OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
postfix/dovecot lda assistance

From: Scott Sharkey (ssharkeylinuxunlimited.com)
Date: Mon Sep 08 2008 - 13:46:17 CDT


Hi All,

I'm trying to set postfix up to deliver using dovecot's LDA delivery
agent. I'm using postfixadmin, with mysql virtual user tables. Those
tables include a "transport" field, which is set to "virtual:". But I
thought that the main.cf virtual_transport setting would redirect these
through dovecot's lda. However, it appears not, as I've replaced the
/usr/lib/dovecot/deliver entry in master with a dovecot.sh that just
log's that it was called before executing the actual dovecot deliver,
and the log remain's empty. Also, if I point the master.cf to a
non-existant shell script, mail is still delivered, without error.
Additionally, no dovecot-deliver log entries are ever made.

So, below are some config entries and log results, but what am I doing
wrong, or what should I try next.

In master.cf:

# Dovecot Local Delivery Agent
dovecot unix - n n - - pipe
      flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f
${sender} -d ${recipient}

And in main.cf:

virtual_transport = dovecot
local_transport = dovecot
dovecot_destination_recipient_limit = 1

And in mail.log:

Sep 8 14:22:18 mail postfix/virtual[31793]: 15AE21C154:
to=<ssharkeyipmsusa2009.org>, relay=virtual, delay=0.47,
delays=0.44/0.01/0/0.02, dsn=2.0.0, status=sent (delivered to maildir)

The key here being the postfix/virtual and relay=virtual.

Any suggestions welcome, and if you need more from the configs please
let me know.

Thanks!
-scott