On 17.08.17 14:22, Søren Peter Skou wrote:
>I have Local users and users with forwards.
how do they forward?
Using virtual_alias_maps - Lookup into a database, that returns the field
alias as destination (alias due to a backend expecting that particular
fieldname).  If there is more than one forward, it is commaseparated.

This works as expected, Postfix sees this, and fires off one process for
b...@a.test and one for c...@b.test.  And everything is then handed off to
xMTPDeliver

you define content_filter named "spamassassin", which in fact calls
xMTPDeliver instead of spamassassin. That's pretty confusing.
You haven't posted whole master nor whole xMTPDeliver (pastebin, please).
Both can contain something that causes multiple deliveries.

why do you use this xMTPDeliver at all?
At first, I didn't have that. I delivered directly to users mailboxes. The
issue started with people having aliases/forwards that are not local. This means that the dovecot-lda did not really do anything for the remotes
and they ended up in "Nope" land basically.  Hence my test for "IS_LOCAL"
- This works, the remote gets one as expected, but during the "remote"
part, the local part all of a sudden gets one more.  I'm now investigating
the sendmail part of the xMTPDeliver to get it to do what I want.  But if
you have a better suggestion that ensures local deliver ends up in either
INBOX or SPAM, and that remote gets theirs as well, I'm all ears 😊

I believe you should only send local mail to dovecot (not all via
content_filter), you seem to pass everything to is which apparently caused
your problem.

I recommend you to reconfigure your mail flow and not use xMTPDeliver nor
dovecot_lda as content filter.

--
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
The 3 biggets disasters: Hiroshima 45, Tschernobyl 86, Windows 95

Reply via email to