13,420
edits
Changes
→Installing and Configuring the Local Delivery Agent (LDA)
#Move to your '''vm3''' machine.
#Dovecot is not installed when you installed your Virtual machines in previous labs.<br>Install the Dovecot application by issuing the following command:<br><source>yum install dovecot</source>
#Edit your '''/etc/postfix/main.cf ''' file and scroll down to (or search for) '''mailbox_command'''. Add the following line:<br><presource>mailbox_command = /usr/libexec/dovecot/dovecot-lda -f "$SENDER" -a "$RECIPIENT"</presource>
:NOTE: Do <u>'''not'''</u> replace any variables, those are set automatically by Postfix when it runs the LDA. If you are interested in learning more about the Dovecot application, you can read about dovecot-lda [http://wiki.dovecot.org/LDA/Postfix here] and [http://wiki.dovecot.org/LDA here].
<ol><li value="4">Finally, edit the '''/etc/dovecot/conf.d/10-mail.conf''' file and indicated where you want your mail delivered by including the following line:</li></ol> <presource>mail_location = maildir:~/Maildir</presource></li></ol><br>
<ol><li value="5">Restart your postfix service.</li><li>While the emails are still stored only on VM3, they will now be easier for other machines/services to access.</li></ol>