"deliver" is working fine.
/usr/libexec/dovecot/deliver -d test@domain1 < testmail
creates the virtual-mailbox. (uid,gid,mail,home through passwd sql)
Currently we have a virtualusertable
(FEATURE(virtusertable',
hash -o /etc/mail/virtusertable')dnl)
virtualusertable looks like:
user1@domain1 user1@hotmail.com user2@domain1 user2@hotmail.com @domain1 system-user
For the moment, an email sent to test@domain1 is forwarded to the system-user. The system-user has a .procmail-config where he places the incomming mail into the correct virtual-mailbox.
Now we have replaced "local_procmail" with "deliver":
FEATURE(local_procmail',
/usr/libexec/dovecot/deliver',`deliver -d $u')
an email sent to test@domain1 is placed in the system-user's real-mailbox.
How to keep the external-forward-functionality of the virtualusertable and to be able to deliver into the virtual-mailbox?
Regards, Natan
To: dovecot@dovecot.org From: andrzej.filip@gmail.com Date: Wed, 10 Jun 2009 19:19:21 +0200 Subject: Re: [Dovecot] Sendmail + Deliver as an LDA
Natan Vermeersch natanver@hotmail.com wrote:
Need help with setup/config.
Current situation: (dovecot version : 1.1.7)
we have system users and virtual users. (with different domains) Virtual users have procmail as LDA
Now we want "deliver" to become the LDA
I'm confused reading http://wiki.dovecot.org/LDA/Sendmail [...]
To use dovecot's deliver as sendmail's local mailer you need the following lines in your sendmail.mc:
FEATURE(
local_procmail',
/local/dovecot/libexec/dovecot/deliver',deliver -d $u') MODIFY_MAILER_FLAGS(
LOCAL', `-f')
Change path to dovecot's deliver to fit your installation.
The second line is needed only if your deliver does not support "-f envelope_sender" command line argument or if dovecot and sendmail do not "play well together" with "empty" (<>) envelope sender. I do not think it is required but http://wiki.dovecot.org/LDA/Sendmail mentions it for some (unexplained) reasons.
the above changes should not affect deliveries to virtual users [ unless you use *VERY* unusual sendmail configuration ]
P.S. Do you reject messages to non existing virtual users in reply to "RCPT TO:"?
-- [pl>en: Andrew] Andrzej Adam Filip : anfi@onet.eu Gauls! We have nothing to fear; except perhaps that the sky may fall on our heads tomorrow. But as we all know, tomorrow never comes!! -- Adventures of Asterix
Je hele online leven op één stek? Ontdek Windows Live!
Reageer op foto’s van je vrienden en bekijk hun reacties op de jouwe. Gegarandeerd hilariteit! http://www.microsoft.com/belux/nl/windows/windowslive/products/photos.aspx