Joakim Ohlsson
2013-Jul-10 13:17 UTC
[Dovecot] Have an issue with catch-all - Dovecot-lda andPostfix
Hi, I run dovecot version 2.1.7 and postfix 2.9.6. I'm using dovecot-lda as local delivery. I use virtual users and need to use catch-all for some of my domains. My problem when using catch-all is that I got a separate email for each recipient. As an example: If I send mail to: test1 at test.org, test2, test3 at test.org, test4 at test.org and have a catch-all which will send this mail to test at test.org. In this example I get 4 mails in my test at test.org inbox and in TO: field in the header I have all this four recipients: TO: test1 at test.org, test2, test3 at test.org, test4 at test.org. In my dovecot log: 2013-07-10 13:49:25 lda(test at test.org): Debug: Destination address: test at test.org (source: user at hostname) 2013-07-10 13:49:25 lda(test at test.org: Info: msgid=<20130710114924.DBA3F9FA8D at mail2.test.org>: saved mail to INBOX 2013-07-10 13:49:25 lda(test at test.org): Info: msgid=<20130710114924.DBA3F9FA8D at mail2.test.org>: saved mail to INBOX 2013-07-10 13:49:25 lda(test at test.org): Info: msgid=<20130710114924.DBA3F9FA8D at mail2.test.org>: saved mail to INBOX 2013-07-10 13:49:25 lda(test at test.org): Info: msgid=<20130710114924.DBA3F9FA8D at mail2.test.org>: saved mail to INBOX My question is if it's possible to receive just one mail instead of four? If I send the mail via Spamassassin I'll just receive one mail to test at test.org with TO: test1 at test.org, test2, test3 at test.org, test4 at test.org in the header. Thanks in advance Br Joakim # dovecot -n:
Robert Schetterer
2013-Jul-10 13:35 UTC
[Dovecot] Have an issue with catch-all - Dovecot-lda andPostfix
Am 10.07.2013 15:17, schrieb Joakim Ohlsson:> Hi, > > I run dovecot version 2.1.7 and postfix 2.9.6. > I'm using dovecot-lda as local delivery. > I use virtual users and need to use catch-all for some of my domains. > > My problem when using catch-all is that I got a separate email for each recipient. > As an example: If I send mail to: test1 at test.org, test2, test3 at test.org, test4 at test.org and have a catch-all which will send this mail to test at test.org. > In this example I get 4 mails in my test at test.org inbox and in TO: field in the header I have all this four recipients: > TO: test1 at test.org, test2, test3 at test.org, test4 at test.org.looks ok to me, did you expect other ?> > In my dovecot log: > 2013-07-10 13:49:25 lda(test at test.org): Debug: Destination address: test at test.org (source: user at hostname) > 2013-07-10 13:49:25 lda(test at test.org: Info: msgid=<20130710114924.DBA3F9FA8D at mail2.test.org>: saved mail to INBOX > 2013-07-10 13:49:25 lda(test at test.org): Info: msgid=<20130710114924.DBA3F9FA8D at mail2.test.org>: saved mail to INBOX > 2013-07-10 13:49:25 lda(test at test.org): Info: msgid=<20130710114924.DBA3F9FA8D at mail2.test.org>: saved mail to INBOX > 2013-07-10 13:49:25 lda(test at test.org): Info: msgid=<20130710114924.DBA3F9FA8D at mail2.test.org>: saved mail to INBOX > > > My question is if it's possible to receive just one mail instead of four?perhaps, with some filter or supress doubles etc> > If I send the mail via Spamassassin I'll just receive one mail to test at test.org with TO: test1 at test.org, test2, test3 at test.org, test4 at test.org in the header. > > Thanks in advance > Br > Joakim > > # dovecot -n: > >you should solve your problem in not using catch alls in the first line Best Regards MfG Robert Schetterer -- [*] sys4 AG http://sys4.de, +49 (89) 30 90 46 64 Franziskanerstra?e 15, 81669 M?nchen Sitz der Gesellschaft: M?nchen, Amtsgericht M?nchen: HRB 199263 Vorstand: Patrick Ben Koetter, Axel von der Ohe, Marc Schiffbauer Aufsichtsratsvorsitzender: Florian Kirstein
Steffen Kaiser
2013-Jul-10 15:11 UTC
[Dovecot] Have an issue with catch-all - Dovecot-lda andPostfix
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wed, 10 Jul 2013, Joakim Ohlsson wrote:> I run dovecot version 2.1.7 and postfix 2.9.6. > I'm using dovecot-lda as local delivery. > I use virtual users and need to use catch-all for some of my domains.Where do you use "catch-all" in Postfix or Dovecot? If you must use Dovecot's "catch-all", Postfix is calling the Dovecot LDA for times, so you end up with four copies. You could try to change to Dovecot LMTP, maybe it is detecting the duplication. Can you activate catch-all in Postfix, then Postfix is to detect the duplicate recipients.> If I send the mail via Spamassassin I'll just receive one mail to test at test.org with TO: test1 at test.org, test2, test3 at test.org, test4 at test.org in the header.How do you send a mail via Spamassassin? You know that the "to" header is used in only very rare cases for mail routing, in other words: "to" has nothing to do with mail routing. Regards, - -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEVAwUBUd15nV3r2wJMiz2NAQIIBAf/VGjzKQCGOPyOdh1IjRCL1QPv8thFujt1 8OJJonm06EcxJ2hQGJFK/UK4TK8x4hcgse7Oj3NqsJV6n9u2UAcW1pe73phs5U53 mD0TLN8CsFOxwtP0nxZAYUGHgBriihRit0yUTNe0cdHMBOpCmLtaCe8EAnSSW6hU g+QcpTyrUiSbwSctYZv8ck2rI6Slym1cFHcJ818+rEeIBWz+ijtqNVaJ+jNavi3l f4EuEWL3qne8CkrwYCgSJ3ZYC32Z6niyglsJX3NAcZvRVlKvtV/tXfbnnlQ4i5Fn pkbWR/SzMI7YZISEYy+Vgioa6ulBo084g9mshuZQuw8XbMOZw5VCHg==i2YG -----END PGP SIGNATURE-----