[Dovecot] Sendmail + Deliver as an LDA

Patrick Domack patrickdk at patrickdk.com
Thu Jun 11 01:42:15 EEST 2009


You just need to set system-user in you alias file to execute a program (procmail), this way it overrides the local delivery agent 


----- Message from natanver at hotmail.com -----


>
>
>
> "deliver" is working fine.
>
> /usr/libexec/dovecot/deliver -d test at 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 at domain1 user1 at hotmail.com
> user2 at domain1 user2 at hotmail.com
> @domain1 system-user
>
> For the moment, an email sent to test at 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 at 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 at dovecot.org
>> From: andrzej.filip at gmail.com
>> Date: Wed, 10 Jun 2009 19:19:21 +0200
>> Subject: Re: [Dovecot] Sendmail + Deliver as an LDA
>>
>> Natan Vermeersch <natanver at 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')
>>
>> 1) Change path to dovecot's deliver to fit your installation.
>>
>> 2) 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.
>>
>> 3) 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 at 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



More information about the dovecot mailing list