Replies: 7 comments 9 replies
-
|
There is no such thing (as of now) for DMS AFAIK. |
Beta Was this translation helpful? Give feedback.
-
|
Maybe this helps. |
Beta Was this translation helpful? Give feedback.
-
|
We discussed this before. Would it be possible to write a small plugin that creates the profiles instead? I guess the profile is just a file with some standarized format so it should be possible to create a profile file for mail clients based on all content that is in the mailserver docker? The reason for adking this again its really cybersome and buggy on osx and ios mail clients any mail client actually to setup mail sever settings. Thus it would be very beneficial to have the option to generate profile files with setup.sh that would output to the host running the docker container. It would then be easy to download those files and use them in your mail clients thus reducing thr time to setup new mail accounts. I guess with the help of gpt4 this could be done in 1 hour. Is there interest in this ? If i where to create a plugin Pr for this where would i start does docker mailserver has a plugin system? I guess it could be even as simple as a shell script that generates these profiles fetching data from the container and output to several profiles for each account in a loop! Would love to learn more and if anyone is interested in working on this |
Beta Was this translation helpful? Give feedback.
-
|
Is "mail profile file" mac/apple specific? Or is this a common standard? |
Beta Was this translation helpful? Give feedback.
-
|
Common mail profiles for clients |
Beta Was this translation helpful? Give feedback.
-
|
A quick draft: #!/bin/bash
# Mail server settings
MAIL_SERVER="mail.example.com"
IMAP_PORT="993"
SMTP_PORT="587"
USERNAME="your_username"
PASSWORD="your_password"
# Define the profile XML template function
generate_profile_template() {
cat <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<root>
<IncomingServer>
<Hostname>${MAIL_SERVER}</Hostname>
<Port>${IMAP_PORT}</Port>
<Username>${USERNAME}</Username>
<Password>${PASSWORD}</Password>
<UseSSL>true</UseSSL>
<Authentication>password</Authentication>
</IncomingServer>
<OutgoingServer>
<Hostname>${MAIL_SERVER}</Hostname>
<Port>${SMTP_PORT}</Port>
<Username>${USERNAME}</Username>
<Password>${PASSWORD}</Password>
<UseSSL>true</UseSSL>
<Authentication>password</Authentication>
<AddPortToURL>true</AddPortToURL>
<UseSPA>false</UseSPA>
</OutgoingServer>
</root>
EOF
}
# Create profile files function
create_profile() {
local device="$1"
local profile_file="mail_profile_${device}.xml"
generate_profile_template > "${profile_file}"
echo "Created profile file for ${device}: ${profile_file}"
}
# Call create_profile function for different clients
clients=("macOS" "iOS" "Thunderbird")
for client in "${clients[@]}"; do
create_profile "${client}"
done
echo "Mail profile files generated successfully." |
Beta Was this translation helpful? Give feedback.
-
|
Its less invase and does not include polluting dns with entries like this https://hub.docker.com/r/monogramm/autodiscover-email-settings/ We would only need to find out the rfc for each client then modify the bash script to export the files. We could even split this task up so a few users test and generate a function for each client. Could be do anle in 1/2 hours. Then after that never any manual fiddling setting up mail client settings with there quircks just import the mail profile and add a password and your set. Huge timesaver in my opinion and a great additon to docker mailsevers ease of use! Hope there is interest in this maybe thr core team can chime in and we can implement this Since the mail client profile rfcs are fixed i think this is a one time endavour. Probably start with:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Setting up mail on iphone is always such a pain. I could not find but might missed it is there some way to generate a mail profile file that you can load on iphone or mail client to setup the mail account for you?
Beta Was this translation helpful? Give feedback.
All reactions