Re: Move sent emails to sent folder?
Thank you so much for the detailed info! I really appreciate it! I think I’ve got this working now how I want it. Austin Witmer > On Jun 16, 2022, at 11:52 PM, Gedalya wrote: > > On 6/17/22 12:29, Austin Witmer wrote: >> Do I add this to my postfix main.cf file and what is the exact syntax? > Yes, e.g.: > sender_bcc_maps = hash:/etc/postfix/back-to-sent-folder > > /etc/postfix/back-to-sent-folder : (simple key-value) > user@domain user+sent@domain > > hash the file with: postmap back-to-sent-folder > this will create back-to-sent-folder.db which is what postfix will actually > look at > > >> Will this affect all users or just this user? > > The content of the file determines that. > > For details: https://www.postfix.org/postconf.5.html#sender_bcc_maps > > In this example, we have only one line affecting only one user. > > The data can be taken from other sources, including SQL database: > > https://www.postfix.org/DATABASE_README.html#types >
Re: Move sent emails to sent folder?
Now I’ve run into a bit of a problem . . . For some reason I am now getting five duplicate emails placed in my sent folder! I have the email client I am testing with set to not place a copy in the sent folder, so none of those are being synced to my sent folder by my email client. How do I ensure that the email only gets placed in my sent folder once? Thanks! Austin Witmer > On Jun 16, 2022, at 11:52 PM, Gedalya wrote: > > On 6/17/22 12:29, Austin Witmer wrote: >> Do I add this to my postfix main.cf file and what is the exact syntax? > Yes, e.g.: > sender_bcc_maps = hash:/etc/postfix/back-to-sent-folder > > /etc/postfix/back-to-sent-folder : (simple key-value) > user@domain user+sent@domain > > hash the file with: postmap back-to-sent-folder > this will create back-to-sent-folder.db which is what postfix will actually > look at > > >> Will this affect all users or just this user? > > The content of the file determines that. > > For details: https://www.postfix.org/postconf.5.html#sender_bcc_maps > > In this example, we have only one line affecting only one user. > > The data can be taken from other sources, including SQL database: > > https://www.postfix.org/DATABASE_README.html#types >
Re: Move sent emails to sent folder?
What client is being used? For this kind of thing in Thunderbird we right click on the folder with duplicates > properties > repair folder (button) On 6/17/2022 12:00 PM, Gedalya wrote: On 6/17/22 22:18, Austin Witmer wrote: Now I’ve run into a bit of a problem . . . For some reason I am now getting five duplicate emails placed in my sent folder! I have the email client I am testing with set to not place a copy in the sent folder, so none of those are being synced to my sent folder by my email client. Is it possible that the message is routed outwards and then in again somehow? Each time a message with the sender address user@domain comes in, the extra recipient will be added. You could easily get into a loop. -- Christopher Wensink IS Administrator Five Star Plastics, Inc 1339 Continental Drive Eau Claire, WI 54701 Office: 715-831-1682 Mobile: 715-563-3112 Fax: 715-831-6075 cwens...@five-star-plastics.com www.five-star-plastics.com
Re: Move sent emails to sent folder?
I believe my client is using an iPhone to check mail on this address. The interesting thing is that it seems like apple mail clients don’t show the duplicate messages like thunderbird does. I don’t like the idea of the unnecessary emails piling up. Are you saying that doing a repair on a folder in thunderbird will delete the duplicate messages? Doing an ls /maildir/user/.Sent/cur folder shows the duplicate messages. It seems like postfix is bccing the outgoing message more than once somehow. Maybe I need to take this conversation over to the postfix mailing list? Austin Witmer > On Jun 17, 2022, at 11:21 AM, Christopher Wensink > wrote: > > What client is being used? > > For this kind of thing in Thunderbird we right click on the folder with > duplicates > properties > repair folder (button) > > > > On 6/17/2022 12:00 PM, Gedalya wrote: >> On 6/17/22 22:18, Austin Witmer wrote: >>> Now I’ve run into a bit of a problem . . . For some reason I am now getting >>> five duplicate emails placed in my sent folder! I have the email client I >>> am testing with set to not place a copy in the sent folder, so none of >>> those are being synced to my sent folder by my email client. >> Is it possible that the message is routed outwards and then in again somehow? >> >> Each time a message with the sender address user@domain comes in, the extra >> recipient will be added. You could easily get into a loop. >> >> > > -- > Christopher Wensink > IS Administrator > Five Star Plastics, Inc > 1339 Continental Drive > Eau Claire, WI 54701 > Office: 715-831-1682 > Mobile: 715-563-3112 > Fax: 715-831-6075 > cwens...@five-star-plastics.com > www.five-star-plastics.com
Re: Move sent emails to sent folder?
I am saying that when I have this issue with duplicate messages in Thunderbird, the repair takes care of that. I honestly haven't checked the quantity of messages on the server to see if the issue was there before, or after the fix, you could try that fix. This may be completely unrelated but back in the day I've seen this type of issue on machines using outlook when the .pst file is full and hit it's max size, or the computer running it runs out of hard drive space. That's something else to check. Chris On 6/17/2022 1:48 PM, Austin Witmer wrote: I believe my client is using an iPhone to check mail on this address. The interesting thing is that it seems like apple mail clients don’t show the duplicate messages like thunderbird does. I don’t like the idea of the unnecessary emails piling up. Are you saying that doing a repair on a folder in thunderbird will delete the duplicate messages? Doing an ls /maildir/user/.Sent/cur folder shows the duplicate messages. It seems like postfix is bccing the outgoing message more than once somehow. Maybe I need to take this conversation over to the postfix mailing list? Austin Witmer On Jun 17, 2022, at 11:21 AM, Christopher Wensink wrote: What client is being used? For this kind of thing in Thunderbird we right click on the folder with duplicates > properties > repair folder (button) On 6/17/2022 12:00 PM, Gedalya wrote: On 6/17/22 22:18, Austin Witmer wrote: Now I’ve run into a bit of a problem . . . For some reason I am now getting five duplicate emails placed in my sent folder! I have the email client I am testing with set to not place a copy in the sent folder, so none of those are being synced to my sent folder by my email client. Is it possible that the message is routed outwards and then in again somehow? Each time a message with the sender address user@domain comes in, the extra recipient will be added. You could easily get into a loop. -- Christopher Wensink IS Administrator Five Star Plastics, Inc 1339 Continental Drive Eau Claire, WI 54701 Office: 715-831-1682 Mobile: 715-563-3112 Fax: 715-831-6075 cwens...@five-star-plastics.com www.five-star-plastics.com -- Christopher Wensink IS Administrator Five Star Plastics, Inc 1339 Continental Drive Eau Claire, WI 54701 Office: 715-831-1682 Mobile: 715-563-3112 Fax: 715-831-6075 cwens...@five-star-plastics.com www.five-star-plastics.com