Book Cover Samba is a free software re-implementation of the SMB networking protocol, and was originally developed by Andrew Tridgell. Samba provides file and print services for various Microsoft Windows clients and can integrate with a Microsoft Windows Server domain, either as a Domain Controller (DC) or as a domain member. As of version 4, it supports Active Directory and Microsoft Windows NT domains.

Sendmail DNS Configuration

This is really ‘'’important’’’, hostname has to be set. Make sure it is set in /etc/rc.conf then update on dns zone to add an ‘’‘MX Record’’’. Most likely you can do this with your DNS provider as you will not be running a DNS server..

update ‘’’/etc/rc.conf’’’.

}

Compile Sendmail to support SMTP Auth

First fetch and unpack source: }

Next, add flags for sendmail in ‘’’/etc/make.conf’’’

}

then recompile sendmail:

}

After Sendmail has been compiled and reinstalled, edit /etc/mail/freebsd.mc or the local .mc. Many administrators choose to use the output from hostname(1) as the name of .mc for uniqueness. Add these lines:

}

These options configure the different methods available to Sendmail for authenticating users. To use a method other than pwcheck, refer to the Sendmail documentation.

Finally, run make(1) while in ‘’’/etc/mail’’’. That will run the new .mc and create a .cf named either freebsd.cf or the name used for the local .mc. Then, run make install restart, which will copy the file to sendmail.cf, and properly restart Sendmail. For more information about this process, refer to /etc/mail/Makefile.

}

== Setup SASL Authentication ==

Two steps are required, first creating a user in the ‘’‘saslpasswddb’’’, then indicating in the ‘’‘Sendmail.conf’’’ file that we will be using the ‘’‘saslpasswddb’’’.

}

you can then check if SASL Auth is working in Sendmail by running telent and verifying ‘’‘250-AUTH DIGEST-MD5 CRAM-MD5 LOGIN’’’ exists:

}

== Permitting Sendmail to accept emails coming from the SASL Authed User ==

We need to allow our domain to send email from the SASL Authed User. This is accomplished by editing the ‘’’/etc/mail/access’’’ file. Whenever this file is updated, update its database with ‘’‘makemap hash’’’ and rtestart sendmail.

}

Now we can send an email from a MUA, for example Thunderbird via SMTP Auth and sendmail will deliver this to any mail server on the internet.

Note: as we do not have a registered domain name, the recieving mail server may block this email.

== A note on Key permissions for STARTTLS ==

You will need to add the following to your host.mc file to allow use of a group readable private key.

}




... got something to say?