With regard to the UAPI function Email::set_always_accept documented here:
documentation.cpanel.net
The "mxcheck" parameter has the following note:
This parameter is redundant with the alwaysaccept parameter. Do not enter the mxcheck and alwaysaccept parameter at the same time. Undefined behavior may occur if this happens.
The "alwaysaccept" parameter has the following note:
This parameter is redundant with the mxcheck parameter. Do not enter the mxcheck and alwaysaccept parameter at the same time. Undefined behavior may occur if this happens.
In the examples section, two of the examples provided (command line and cPanel/webmail session) show both parameters in use at the same time:
Also, in these examples, alwaysaccept is set to "1" whereas the documentation indicates that alwaysaccept's valid values are the same as mxcheck (strings): auto, local, secondary, or remote.
Am I not understanding this correctly or should only one of these two params be used at a time?
Also what are the acceptable values for the alwaysaccept parameter?
Thanks for any clarification you can provide.
UAPI Functions - Email::set_always_accept - Developer Documentation - cPanel Documentation
The "mxcheck" parameter has the following note:
This parameter is redundant with the alwaysaccept parameter. Do not enter the mxcheck and alwaysaccept parameter at the same time. Undefined behavior may occur if this happens.
The "alwaysaccept" parameter has the following note:
This parameter is redundant with the mxcheck parameter. Do not enter the mxcheck and alwaysaccept parameter at the same time. Undefined behavior may occur if this happens.
In the examples section, two of the examples provided (command line and cPanel/webmail session) show both parameters in use at the same time:
Code:
uapi --user=username Email set_always_accept domain=example.com mxcheck=auto alwaysaccept=1
https://hostname.example.com:2083/cpsess##########/execute/Email/set_always_accept?domain=example.com&mxcheck=auto&alwaysaccept=1
Am I not understanding this correctly or should only one of these two params be used at a time?
Also what are the acceptable values for the alwaysaccept parameter?
Thanks for any clarification you can provide.
Last edited by a moderator: