[prev in list] [next in list] [prev in thread] [next in thread] 

List:       crux
Subject:    Re: Setting up sendmail
From:       Mikhail Kolesnik <mike () openbunker ! org>
Date:       2006-08-31 13:38:05
Message-ID: 20060831163805.6aeb4a66 () mike ! staff ! sky
[Download RAW message or body]

Hello, Helge.

On Thu, 31 Aug 2006 15:01:59 +0200
"Helge Fredriksen" <helgeingvart@gmail.com> wrote:

> Hello again,
> 
> I'm trying to setup sendmail on my dyndns address so that people in my
> company might use it as a smtp server.
I doubt dyndns is a reliable way for getting mail server domain name.
Think twice here.

> Is this possible with crux? How do I open up for externally use, possibly
> requiring some authentication to avoid
> misuse. I know this doesn't have directly with the crux kernel to do
> [...]
Not with the kernel itself (note: _linux_ kernel), but there is
something special in core/sendmail port: it lacks sasl&ssl support to
get (encrypted) SMTP AUTH. See [1] for that.

Basically you have to add a few lines to site.config.m4 and modify
Pkgfile (+ # Depends on: cyrus-sasl). See attached diff for details.
After installation you should modify /etc/mail/sendmail.mc to listen
for remote requests and such. All that is described at sendmail site.

[1] http://www.sendmail.org/~ca/email/auth.html


-- 
Mikhail Kolesnik
ICQ: 260259143
IRC: mike_k at freenode/#crux, rusnet/#yalta
Jabber: mike_k@jabber.lafox.net
NIC handle: MKK83-UANIC
["usable-sendmail.diff" (text/x-patch)]

diff -Nru sendmail-core/.md5sum sendmail/.md5sum
--- sendmail-core/.md5sum	2006-08-10 11:30:32.000000000 +0300
+++ sendmail/.md5sum	2006-08-10 11:52:29.000000000 +0300
@@ -1,6 +1,6 @@
-3ee264f266988582628f4846b29412ff  aliases
-b8beb17bbd902abe29769bea02fdceb5  sendmail
+253f8fd4879a12eb037e91a30a94e4ec  aliases
+13167e58b4d3c2f4cf0c9f8b72e1bfa6  sendmail
 5f29c94b42e0bb74d546b2ae84203a1e  sendmail.8.13.8.tar.gz
 f58ec5515e1c19aaa3d6ab1e9d1d51fb  sendmail.mc
 8447ea0f862a5e5519cc3c0659470e47  sendmail.mk
-01b8884ef1b04d8cb057c73348975ed2  site.config.m4
+a32b7d4817f990d08c687e21417579dd  site.config.m4
diff -Nru sendmail-core/Pkgfile sendmail/Pkgfile
--- sendmail-core/Pkgfile	2006-08-10 11:30:32.000000000 +0300
+++ sendmail/Pkgfile	2006-08-10 11:34:39.000000000 +0300
@@ -1,6 +1,7 @@
 # Description: Mail Transfer Agent
 # URL:         http://sendmail.org/
 # Maintainer:  Per Lidén, core-ports at crux dot nu
+# Depends on:  cyrus-sasl
 
 name=sendmail
 version=8.13.8
diff -Nru sendmail-core/aliases sendmail/aliases
--- sendmail-core/aliases	2006-06-17 16:09:00.000000000 +0300
+++ sendmail/aliases	2006-06-13 20:55:01.000000000 +0300
@@ -8,6 +8,7 @@
 # Basic system aliases -- these MUST be present.
 MAILER-DAEMON:	postmaster
 postmaster:	root
+abuse:		root
 
 # Redirect root mail to personal account
 #root:		<user>
diff -Nru sendmail-core/sendmail sendmail/sendmail
--- sendmail-core/sendmail	2006-06-17 16:09:00.000000000 +0300
+++ sendmail/sendmail	2006-06-14 18:47:17.000000000 +0300
@@ -8,7 +8,7 @@
 	if [ ! -s /etc/mail/aliases.db ]; then
 		/usr/bin/newaliases > /dev/null
 	fi
-	/usr/sbin/sendmail -bd -q20m
+	/usr/sbin/sendmail -bd -q5m
 	;;
 stop)
 	if [ -f /var/run/sendmail.pid ]; then
diff -Nru sendmail-core/site.config.m4 sendmail/site.config.m4
--- sendmail-core/site.config.m4	2006-06-17 16:09:00.000000000 +0300
+++ sendmail/site.config.m4	2006-06-25 15:19:58.000000000 +0300
@@ -1,6 +1,10 @@
 define(`confCCOPTS', `#CFLAGS#')
-define(`confENVDEF', `-DNETINET6')
 define(`confMANROOTMAN', `/usr/man/man')
 define(`confDONT_INSTALL_CATMAN')
 define(`confINSTALL_RAWMAN')
 APPENDDEF(`conf_sendmail_ENVDEF', `-DMILTER')
+APPENDDEF(`conf_libmilter_ENVDEF', `-D_FFR_MILTER_ROOT_UNSAFE')
+APPENDDEF(`confENVDEF', `-DSASL=2')
+APPENDDEF(`conf_sendmail_LIBS', `-lsasl2')
+APPENDDEF(`conf_sendmail_ENVDEF', `-DSTARTTLS')
+APPENDDEF(`conf_sendmail_LIBS', `-lssl -lcrypto')


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic