Re: One Way sync is deleting emails

2024-01-29 Thread Aki Tuomi via dovecot
 
 On 29/01/2024 23:23 EET Steve Moser via dovecot 
 wrote:
  
  
 Hello,
 I am hoping that you can help me.
 I am running this command on my main email server, one way backup/
 sync to the backup server.
 sudo doveadm sync -1 -A remote:root@x.x.x.x
  
 x.x.x.x is my remote server.
 I will add a new email on the main, run the command and it shows up
 on the backup.  - Great!
 Now I delete that email from the main, run the command and the email
 is removed from the backup.  That should not delete anything from the
 backup, correct?  I prefer Not to delete anything, only update/add.
 Do you see what I am doing wrong?
 Thank You
 Here my installed versions
 dovecot-core                          1:2.3.16+dfsg1-3ubuntu2.2 
  dovecot-imapd                         1:2.3.16+dfsg1-
 3ubuntu2.2 dovecot-lmtpd                         1:2.3.16+dfsg1-
 3ubuntu2.2  dovecot-mysql                         1:2.3.16+dfsg1-
 3ubuntu2.2 dovecot-pop3d                         1:2.3.16+dfsg1-
 3ubuntu2.2
  
 postfix                               3.6.4-1ubuntu1.2               
         amd64        High-performance mail transport agentpostfix-
 mysql                         3.6.4-1ubuntu1.2                       
 amd64        MySQL map support for Postfixpostfix-policyd-spf-python 
           2.9.3-1                                 all         
 Postfix policy server for SPF checking
  
 Hello,
  
 I am hoping that you can help me.
  
 I am running this command on my main email server, one way backup/
 sync to the
 backup server.
  
 sudo doveadm sync -1 -A remote:root@x.x.x.x
  
 x.x.x.x is my remote server.
  
 I will add a new email on the main, run the command and it shows up
 on the
 backup.  - Great!
  
 Now I delete that email from the main, run the command and the email
 is removed
 from the backup.  
 That should not delete anything from the backup, correct?  I prefer
 Not to
 delete anything, only update/add.
  
 Do you see what I am doing wrong?
  
 Thank You
  
Sync will synchronize the state of your mailbox, including deletions. One way
sync only promises not to touch the source mailbox. 
 
Aki
___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


One Way sync is deleting emails

2024-01-29 Thread Steve Moser via dovecot
Hello,

I am hoping that you can help me.

I am running this command on my main email server, one way backup/sync to the
backup server.

sudo doveadm sync -1 -A remote:root@x.x.x.x

x.x.x.x is my remote server.

I will add a new email on the main, run the command and it shows up on the
backup.  - Great!

Now I delete that email from the main, run the command and the email is removed
from the backup.  
That should not delete anything from the backup, correct?  I prefer Not to
delete anything, only update/add.

Do you see what I am doing wrong?

Thank You

Here my installed versions

dovecot-core                          1:2.3.16+dfsg1-3ubuntu2.2   
dovecot-imapd                         1:2.3.16+dfsg1-3ubuntu2.2 
dovecot-lmtpd                         1:2.3.16+dfsg1-3ubuntu2.2  
dovecot-mysql                         1:2.3.16+dfsg1-3ubuntu2.2 
dovecot-pop3d                         1:2.3.16+dfsg1-3ubuntu2.2


postfix                               3.6.4-1ubuntu1.2                       
amd64        High-performance mail transport agent
postfix-mysql                         3.6.4-1ubuntu1.2                       
amd64        MySQL map support for Postfix
postfix-policyd-spf-python            2.9.3-1                               
 all          Postfix policy server for SPF checking


___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


Re: sieve filter generated email- sent folder

2024-01-29 Thread Tony G via dovecot


On 1/26/2024 3:02 PM, joe a wrote:
The "mailto:; function does not seem to place a copy of the sent 
message in the "Sent" folder.
...so a mailbox owner might have a ready means to track messages 
potentially sent under their name. 



The notify action has a specific purpose - it sends a notification. 
Outside that scope you can use whatever means that are available to 
(hint) notify the mailbox owner that they sent a notification.


Good news ... there are a number of ways to skin this cat.

First, the mailto: scheme of the URI supports a 'cc' parameter:
mailto:a...@a.com?subject=...=b...@b.com;c...@c.com
So, just ad the current user's own email address as a cc back to himself.

From what I see in the enotify code, "bcc" is not supported, but I 
could be wrong.
Note the delimiter between multiple CC's, the semicolon. As I was 
looking that up it seems different platforms support different 
delimiters. If you need this and semicolon doesn't work, try a simple 
comma, or a hex comma+space: b...@b.com%2c$2...@c.com


Another way is to notify the current user (as sender)  is to simply add 
another "notify "mailto:${current_user_notification_address}...; right 
after your first one. Then have Those inbound notification messages 
filtered into a dedicated "Sent Notifications" folder.


Here is a note from the 2019 Dovecot List by Stephan Bosch that's 
related to this topic:

https://dovecot.org/list/dovecot/2019-October/117341.html
That refers to RFC 8580 to do exactly what you're asking without a 
"loopback" email, File Carbon Copy (FCC) - ;TL/DR; it's not implemented 
in Dovecot/Pidegonhole (yet).

https://datatracker.ietf.org/doc/html/rfc8580

While the 'mailto:' scheme is the most common, the decades-old "trick" 
of emailing a phone provider to send an SMS is really fragile and easily 
subject to failure. Personally I'd prefer using Twilio or a similar 
service to completely eliminate that problem. I'd also try using the 
"tel:" schema, but that doesn't appear to be implemented in the enotify 
extension.


Another option for email-to-SMS notifications is to http: or mailto: a 
service like IFTTT or Zapier, and have them redirect the message to 
wherever the user actually prefers their messaging - maybe Slack or 
Skype or flashing the lights in their office.


I hope that helps.

___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org