Jan 10, 2020
11
1
3
USA
cPanel Access Level
Root Administrator
Hi,

I was able to successfully add calendar for all users. I am also able to send email invites to other users not in the same domain. But the calendar does not send email invites to users in the same top level domain as the organizer.

Is there any settings where I can configure that.

Thanks :)
 
Jan 10, 2020
11
1
3
USA
cPanel Access Level
Root Administrator
Hi @cPanelLauren,

Thanks for your response.

Steps:
1. I get my principal url link from cPanel -> Email Accounts -> Manage a users account -> Configure Calendars and Contacts -> Copy the 'Alternate Server URL'
2. Open calendar app on Mac -> Preferences -> Accounts -> Add CalDav Account -> Fill in all the information.
3. Create a event on the calendar.
4. Sends email invites to people outside of the organization but doesn't send email invites to people in the organization.

I want to send everyone invited to the event a email invite when I create an event. Hopefully, I could articulate my issue correctly.

Thanks :)
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,301
363
Houston
Ok, this is essentially what I did in testing yesterday but I was able to receive event/calendar invites to same domain users. Here is what I found in the exim log for the transaction as well:

Code:
[[email protected] ~]# exigrep 1jOW85-0001vf-PJ /var/log/exim_mainlog
2020-04-14 19:42:13 cwd=/var/spool/exim 3 args: /usr/sbin/exim -Mc 1jOW85-0001vf-PJ
2020-04-14 19:42:13 1jOW85-0001vf-PJ <= [email protected] H=(localhost) [127.0.0.1]:34694 P=esmtp S=11067 [email protected]tld T="test invite" for [email protected]
2020-04-14 19:42:13 1jOW85-0001vf-PJ => user1 <[email protected]> R=virtual_user T=dovecot_virtual_delivery C="250 2.0.0 <[email protected]> 1jPCNmVYll4GHQAA9Z/phw Saved"2020-04-14 19:42:13 1jOW85-0001vf-PJ Completed
[[email protected] ~]#
When you send invites to local users are you able to see a similar transaction in the log file?
 
Jan 10, 2020
11
1
3
USA
cPanel Access Level
Root Administrator
I don't get any logs when I invite a person in the same domain.

But I get the following log (similar to yours) when I invite someone from outside the org.

Code:
2020-04-15 15:42:37 1jOpnp-00051z-LS <= [email protected] H=localhost (server_host_name) [127.0.0.1]:54136 P=esmtpsa X=TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256 CV=no A=dovecot_login:cpanel-ccs S=4410 [email protected]_host_name T="Event invitation: Email Test" for [email protected]
2020-04-15 15:42:37 1jOpnp-00051z-LS Sender identification U=cpanel-ccs D=-system- S=cpanel-ccs
2020-04-15 15:42:41 1jOpnp-00051z-LS => [email protected] R=lookuphost T=remote_smtp H=anotherdomain.tld [IP_Address] X=TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256 CV=yes C="250 Email accepted"
2020-04-15 15:42:41 1jOpnp-00051z-LS Completed
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,301
363
Houston
Huh! Interesting. I think the difference is in I'm making the calendar changes in horde where you're doing them in the mac mail client using cpanel-ccs the new CalDav server. I'll dig into this a bit more tomorrow and see what I can find out. :)
 
  • Like
Reactions: tejas.designer07

garconcn

Well-Known Member
Oct 29, 2009
172
18
68
A client had similar issue on iphone in the past, end up he bought an app "BusyCal" which solve this issue. The default calendar app seems not work.
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,301
363
Houston
@garconcn Ahh it could be a mac thing - I will be testing on a mac in the morning tomorrow. I'll update with my findings. In the meantime @tejas.designer07 is anything noted in the caldav logs?

You can find them at /usr/local/cpanel/logs/cpdavd_error_log and cpdavd_session_log
 
Jan 10, 2020
11
1
3
USA
cPanel Access Level
Root Administrator
@garconcn Thanks for the update.

@cPanelLauren Thanks for taking the effort for testing it on a mac. I tried using Thunderbird as well, but I got the same result. Emails get sent to outside org invitees and not internal people.

These lines are repeated several times in cpdavd_error_log
Code:
Use of uninitialized value $ENV{"REMOTE_ADDR"} in string ne at libexec/cpdavd.pl line 794, <GEN4> line 2.
Use of uninitialized value $ENV{"REMOTE_ADDR"} in string ne at libexec/cpdavd.pl line 794, <GEN5> line 1.
Nothing specific in cpdavd_session_log
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,301
363
Houston
Hello,

I'm sorry I didn't get to this yesterday, I tried and then got caught up. I was able to get calendar invites to send to outside domains. Here's the steps I took exactly:

1. Access the account configuration menu.
Perform the following steps to access the calendars (CalDav) on your Apple computer:

  1. Click Launchpad, and then click System Preferences.

  2. Click Internet Accounts.

  3. Click Add Other Account….
2. Add the appropriate account type.
Click CalDAV Account to add a calendar account, then, click Create.

3. Enter your account information.
To complete the setup of your account, enter your information in the appropriate text boxes.

Note:
For calendar accounts (CalDAV), you must select Automatic from the Account Type menu.

I used the documentation here: How to Set Up Calendars and Contacts | cPanel & WHM Documentation

I found I didn't need the Principal or Direct URL to accomplish this as CalDav through the mac interface was able to find my calendar.

4. Create an event and send to outside servers
  • On my newly created calendar I created an event and invited several email addresses
  • I confirmed I received them on the outside server
  • I also double checked the log entry on my server to confirm:
    Code:
    2020-04-17 13:30:00 1jPVkW-0004k5-GZ <= [email protected] H=(server.myserver.us) [127.0.0.1]:55376 P=esmtpsa X=TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256 CV=no A=dovecot_login:cpanel-ccs S=9833 [email protected] T="Event invitation: Test Invite" for [email protected]
    2020-04-17 13:30:00 SMTP connection from (server.myserver.us) [127.0.0.1]:55376 closed by QUIT
    2020-04-17 13:30:00 1jPVkW-0004k6-H1 <= [email protected] H=(server.myserver.us) [127.0.0.1]:55378 P=esmtpsa X=TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256 CV=no A=dovecot_login:cpanel-ccs S=9820 [email protected] T="Event invitation: Test Invite" for [email protected]