How can I send a mail to everyone via dagent?
-
Hi
I want to pipe a mail into dagent and deliver it to everyone - like this:
cat "msg.txt" | kopano-dagent <USER>
I know that I work for normal users, but did it work also for “everyone”? Sure, I can try it - but I don’t want to annoy 500 User with my experiments.
thanks
Mathias -
Okay, I tried it - but as expected, it didn’t work. It seems there is no way to do it with dagent.
But maybe someone knows how to do it with python. So if the message is in a postbox, how can I send the message as new mail to everyone or to a given recipient?? Btw. the subject has to be changed as well.
The reason for all of this, is that I want to send some reminder in a regular manner with a cron job.
thanks
Mathias -
Okay, if it does not work with dagent - how about python? is there a way to send to everyone without generating hundreds of mails?
-
I cannot really see a way how this can be achieved. in the end you have to deliver a mail to an amount of x users. If its about generating the mail I would create a group in the mta that expands to all you users and deliver the mail once to your mta.
-
what about creating a dummy mailbox and create a rule to forward to everyone group in kopano ?
rg
Christian -
@externa1 said in How can I send a mail to everyone via dagent?:
dummy mailbox and create a rule to forward to everyone
would still go through the mta, but could indeed work.