On 08/26/2015 08:26 PM, dravion.sm...@gmx.net wrote:
>
> Right now i use unix_listener but inet_listener on a local loopback
> address like 127.0.0.5/port 222 would not
> be a big deal. But there are more questions comming up. How can i
> establish diffrent lmtp connects to a postfix
> single postfix instance?? As far as i understand, i need diffrent
> config files on Postfix AND Dovecot side wich leads
> to multiinstance hosting of postfix and dovcecot, right?
>
> I tested postfix instances on my CentOS 7.1 box an hour ago, but it
> didnt work well because SELinux is blocking write access
> to the new created multi instance /var/spoo/postfix/domain01.tld
> /var/spoo/postfix/domain02.tld ect. audit log show denied
> messages if i try to start systemctl start postfix.serivce. Hmm looks
> very tricky...
>
> Dravion
>
>From the postfix side you can do it without multiple instances. You'd
need an additional lmtp transport in master.cf with customized settings
for lmtp_bind_address/lmtp_bind_address6 and myhostname (using the -o to
set options), to which you would specifically direct email for that
domain by setting up a transport table entry.

That would take care of half of the problem because now instead of
"Received: from smtp.mydomain01.com"
"by smtp.mydomain01.com (Dovecot) with LMTP id jMydI//Z3VUIOAAACRxwyw"

You would get
Received: from smtp.mydomain02.com ([ip address of smtp.mydomain02.com])
"by smtp.mydomain01.com (Dovecot) with LMTP id jMydI//Z3VUIOAAACRxwyw"

To do the second part, I think you would need to use multiple dovecot
instances or change the source code. As far as I know the dovecot
hostname setting is one per instance either set manually or taken from
the server hostname.

best regards,
John


Reply via email to