Talk:Sendmail

From ArchWiki
Jump to: navigation, search

Sendmail documentation tends to be somehow hard, so I want to create a very KISS article here.

I will add the dovecot article later Chrisl (talk) 02:18, 22 August 2012 (UTC)

SSL and auth

I must comment this article is not complete: it is missing ssl and auth support! Those are really important for real life use! I'm just waiting the sendmail maintainer add support for them.

In the meantime, if somebody wants to use ssl right away, here is:

  • add this lines to the PKGBUILD, just before the "./Build || return 1" line:
chmod +w devtools/OS/Linux
echo -e "define(\`confSTDIO_TYPE', \`portable')\nAPPENDDEF(\`conf_sendmail_ENVDEF', \`-DSTARTTLS')\nAPPENDDEF(\`conf_sendmail_LIBS', \`-lssl -lcrypto')\n">>devtools/OS/Linux
echo "APPENDDEF(\`conf_sendmail_ENVDEF', \`-DSASL=2')" >>devtools/OS/Linux
echo "APPENDDEF(\`conf_sendmail_LIBS', \`-lsasl2')" >>devtools/OS/Linux
  • Install cyrus-sasl.
  • do
    # saslpasswd2 -d your-email-user
  • Then add this lines to the sendmail.mc
define(`confAUTH_OPTIONS', `A p y')dnl
TRUST_AUTH_MECH(`LOGIN PLAIN')dnl
define(`confAUTH_MECHANISMS', `LOGIN PLAIN')dnl

define(`confCACERT_PATH',`/etc/ssl/certs')
define(`confCACERT',`/etc/ssl/certs/ca.pem')
define(`confSERVER_CERT',`/etc/ssl/certs/server.crt')
define(`confSERVER_KEY',`/etc/ssl/private/server.key')
  • do the rest of the steps normally

I will remove from here this lines once I officialy add them to the wiki.

Chrisl (talk) 17:11, 31 August 2012 (UTC)