Imap authentication with helm chart

Hi there, I hope this fits in here.
I have a question about the imap authentication. I know the port and dns of the mailserverer.Do I have to use nextcloud.phpConfigs or nextcloud.configs helm value to get this working?