XmlRpcPlugin, Email for user required?

14 views
Skip to first unread message

Mo

unread,
Jul 24, 2019, 3:04:13 AM7/24/19
to Trac Users
Hi,

I found the XmlRpcPlugin very useful and we started to automate some ticket changes by external scripts.
Therefore a new user "RpcUser" was introduced. This new user requires a mail adress.
Isn't it possible to create a user without a mail adress?
Now the scripts with that user are working, the new mail adress rpcuser@ourdomain doesn't exist. This leads to errors on ticket changes due to failed email notification to that adress.
So next step we could create that mailbox, which means we get a lot of email-notifications to that adress.
Is it possible to disable all that mail transfer to that adress or remove the mail-adress completely?

Best regards.

Jun Omae

unread,
Jul 24, 2019, 3:39:36 AM7/24/19
to trac-...@googlegroups.com
On Wed, Jul 24, 2019 at 4:04 PM Mo <burcheri...@gmail.com> wrote:
>
> Hi,
>
> I found the XmlRpcPlugin very useful and we started to automate some ticket changes by external scripts.
> Therefore a new user "RpcUser" was introduced. This new user requires a mail adress.
> Isn't it possible to create a user without a mail adress?

That is depended on the user management which you're using. Please describe it.

> Now the scripts with that user are working, the new mail adress rpcuser@ourdomain doesn't exist. This leads to errors on ticket changes due to failed email notification to that adress.

Please share the error message. What application does raise the error?

> So next step we could create that mailbox, which means we get a lot of email-notifications to that adress.
> Is it possible to disable all that mail transfer to that adress or remove the mail-adress completely?

[notification]
smtp_enabled = disabled

--
Jun Omae <jun...@gmail.com> (大前 潤)

Mo

unread,
Jul 24, 2019, 4:02:49 AM7/24/19
to Trac Users
Am Mittwoch, 24. Juli 2019 09:39:36 UTC+2 schrieb Jun Omae:

That is depended on the user management which you're using. Please describe it.

TracAccountManager with

[account-manager]
hash_method
= HtDigestHashMethod
htdigest_file
= /mnt/data/trac/projects/trac/trac.htdigest
htdigest_realm
= trac
password_store
= HtDigestStore


 
Please share the error message. What application does raise the error?
 

Warning: The change has been saved, but an error occurred while sending notifications: Sendmail failed with (1, sendmail: RCPT TO:<rpcuser@ourdomain> (550 5.1.1 Mailbox <rpcuser@ourdomain> does not exist)), command: '[u'sendmail', '-i', '-f', 'trac@ourdomain', 'rpcuser@ourdomain']'

 
> So next step we could create that mailbox, which means we get a lot of email-notifications to that adress.
> Is it possible to disable all that mail transfer to that adress or remove the mail-adress completely?

[notification]
smtp_enabled = disabled

Yes, but that would disable notifications for all users.
For now I just disabled all rules for that user in /prefs/notification to see if the warning has gone...

Best regards.

Ryan Ollos

unread,
Jul 24, 2019, 11:36:31 AM7/24/19
to Trac Users
On Wed, Jul 24, 2019 at 4:02 AM Mo <burcheri...@gmail.com> wrote:
Am Mittwoch, 24. Juli 2019 09:39:36 UTC+2 schrieb Jun Omae:

That is depended on the user management which you're using. Please describe it.

TracAccountManager with

[account-manager]
hash_method
= HtDigestHashMethod
htdigest_file
= /mnt/data/trac/projects/trac/trac.htdigest
htdigest_realm
= trac
password_store
= HtDigestStore

Is there an error when removing the email address for RpcUser?

  
Please share the error message. What application does raise the error?
 

Warning: The change has been saved, but an error occurred while sending notifications: Sendmail failed with (1, sendmail: RCPT TO:<rpcuser@ourdomain> (550 5.1.1 Mailbox <rpcuser@ourdomain> does not exist)), command: '[u'sendmail', '-i', '-f', 'trac@ourdomain', 'rpcuser@ourdomain']'

 
> So next step we could create that mailbox, which means we get a lot of email-notifications to that adress.
> Is it possible to disable all that mail transfer to that adress or remove the mail-adress completely?

[notification]
smtp_enabled = disabled

Yes, but that would disable notifications for all users.
For now I just disabled all rules for that user in /prefs/notification to see if the warning has gone...

Best regards.

--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/9238708a-364b-4793-9f36-fc5810747d7a%40googlegroups.com.

RjOllos

unread,
Jul 25, 2019, 8:44:20 PM7/25/19
to Trac Users


On Wednesday, July 24, 2019 at 3:04:13 AM UTC-4, Mo wrote:
Hi,
[...]

Isn't it possible to create a user without a mail adress?
[...]

Yes, it is. But we need to know what error you are seeing when creating a user without an email address, or when deleting the email address for user RpcUser.

- Ryan

Mo

unread,
Jul 26, 2019, 1:19:08 AM7/26/19
to Trac Users

Am Freitag, 26. Juli 2019 02:44:20 UTC+2 schrieb RjOllos:

Yes, it is. But we need to know what error you are seeing when creating a user without an email address, or when deleting the email address for user RpcUser.
 
When creating a user in /admin/accounts/users without an email address, I get
Warning: You must specify a valid email address.
Afterwards the user has not been created.

But I was able to remove the email address from that user account. Thanks.

- Massimo
Reply all
Reply to author
Forward
0 new messages