blog:set_up_davmail_gateway
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
blog:set_up_davmail_gateway [2018-10-11 16:33] – brb | blog:set_up_davmail_gateway [2018-10-11 16:40] (current) – brb | ||
---|---|---|---|
Line 81: | Line 81: | ||
<code class=" | <code class=" | ||
- | Copy and paste the following into the file: | + | Copy and paste the following into the file: [[: |
- | <code class=" | ||
- | ### BEGIN INIT INFO | ||
- | # Provides: | ||
- | # Required-Start: | ||
- | # Required-Stop: | ||
- | # Default-Start: | ||
- | # Default-Stop: | ||
- | # Short-Description: | ||
- | # Description: | ||
- | ### END INIT INFO | ||
- | # Author: Jesse TeKrony <jesse ~at~ jtekrony ~dot~ com> | ||
- | |||
- | PATH=/ | ||
- | DESC=" | ||
- | NAME=davmail | ||
- | CONFIG=/ | ||
- | DAEMON=/ | ||
- | DAEMON_ARGS=" | ||
- | PIDFILE=/ | ||
- | SCRIPTNAME=/ | ||
- | LOGFILE=/ | ||
- | |||
- | # Exit if the package is not installed | ||
- | [ -x " | ||
- | |||
- | # Read configuration variable file if it is present | ||
- | [ -r / | ||
- | |||
- | # Load the VERBOSE setting and other rcS variables | ||
- | . / | ||
- | |||
- | # Define LSB log_* functions | ||
- | . / | ||
- | |||
- | # | ||
- | # Function that starts the daemon/ | ||
- | # | ||
- | do_start() | ||
- | { | ||
- | start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \ | ||
- | || return 1 | ||
- | start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \ | ||
- | $DAEMON_ARGS >> $LOGFILE 2>&1 & | ||
- | [ $? != 0 ] && return 2 | ||
- | echo $! > $PIDFILE | ||
- | exit 0 | ||
- | } | ||
- | |||
- | # | ||
- | # Function that stops the daemon/ | ||
- | # | ||
- | do_stop() | ||
- | { | ||
- | start-stop-daemon --stop --quiet --retry=TERM/ | ||
- | RETVAL=" | ||
- | [ " | ||
- | start-stop-daemon --stop --quiet --oknodo --retry=0/ | ||
- | [ " | ||
- | rm -f $PIDFILE | ||
- | return " | ||
- | } | ||
- | |||
- | case " | ||
- | start) | ||
- | [ " | ||
- | do_start | ||
- | case " | ||
- | 0|1) [ " | ||
- | 2) [ " | ||
- | esac | ||
- | ;; | ||
- | stop) | ||
- | [ " | ||
- | do_stop | ||
- | case " | ||
- | 0|1) [ " | ||
- | 2) [ " | ||
- | esac | ||
- | ;; | ||
- | status) | ||
- | | ||
- | ;; | ||
- | restart|force-reload) | ||
- | log_daemon_msg " | ||
- | do_stop | ||
- | case " | ||
- | 0|1) | ||
- | do_start | ||
- | case " | ||
- | 0) log_end_msg 0 ;; | ||
- | 1) log_end_msg 1 ;; # Old process is still running | ||
- | *) log_end_msg 1 ;; # Failed to start | ||
- | esac | ||
- | ;; | ||
- | *) | ||
- | # Failed to stop | ||
- | log_end_msg 1 | ||
- | ;; | ||
- | esac | ||
- | ;; | ||
- | *) | ||
- | echo " | ||
- | exit 3 | ||
- | ;; | ||
- | esac</ | ||
Save and close the file. | Save and close the file. | ||
Line 199: | Line 94: | ||
===== Client Configuration ===== | ===== Client Configuration ===== | ||
- | Now that the server is running, you are ready to configure your E-mail clients. Create a new account, using the " | + | Now that the server is running, you are ready to configure your E-mail clients. |
- | You will get warnings from your E-mail | + | ==== Mail setup ==== |
+ | |||
+ | Create a new account, using the " | ||
Specific instructions for Thunderbird, | Specific instructions for Thunderbird, | ||
You should now be able to send/ | You should now be able to send/ | ||
+ | |||
+ | ==== Calendar setup in Thunderbird ==== | ||
+ | |||
+ | In the thundebird calendar create a new networked calendar | ||
+ | Name: your-company | ||
+ | Location: https:// | ||
+ | | ||
+ | ==== LDAP Directory setup in Thunderbird ==== | ||
+ | |||
+ | The following worked for me to connect to an exchange server through davmail. | ||
+ | |||
+ | In the address book set up a new server | ||
+ | Name: your-company | ||
+ | Hostname: your-server | ||
+ | Base DN: ou=people | ||
+ | Port number: 636 | ||
+ | Bind DN: your-name@your-company | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
Ref: Original by Jesse TeKrony [[https:// | Ref: Original by Jesse TeKrony [[https:// |
blog/set_up_davmail_gateway.1539268381.txt.gz · Last modified: 2018-10-11 16:33 by brb