sim085 a écrit : > Hi, > > I have a little problem when sending emails to multiple recipients. I do not > know if the problem is with Postfix, however some people on other forums > suggested that I could find an option in Postfix to help me solve this > problem. > > My problem is as follows: > > When I send an email to multiple recipients (such as; TO: a...@mydomain.com; > b...@mydomain.com) that email is sent to my ISP SMTP server. This will put the > email twice in mydomain.com catch-all-emails mailbox.
why do you use catch-all's? there's your problem. > I then have fetchmail > installed which will fetch all emails from this mailbox and post them on > postfix. The problem is that user 'a' and 'b' are receiving the same email > twice as well. If I sent the email to c...@mydomain.com then each recipient > would receive the email 3 times and so on. What I want is that each > recipient would only receive the email once! > > However to say it all I tried using postfix through telnet (without > involving my ISP and fetchmail). I sent an email and passed the RCPT TO > value to both recipients. Like this it worked fine. > > This makes me believe that the problem is not with Postfix but rather with > my ISP which is duplicating emails when sent to multiple recipients. On the > other hand I was hoping that maybe Postfix has some setting to block emails > to a recipient if that email has already been sent!! > > Any suggestions? > what happens is that you send mail to a...@example.com and b...@example.com. This results in two identical messages stored by your ISP. then you have configured fetchmail for a "multi drop box". so fetchmail uses headers to try to determine the envelope recipient. Thus the duplicates. as fetchmail docs will tell you, multi drop boxes are a bad idea. as smtp docs and standards will tell you, you should not use headers for mail routing. the best you can do is find an ISP that doesn't require catch-alls.