LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 12-20-2009, 01:10 PM   #1
janhe
Member
 
Registered: Jul 2007
Location: Belgium
Distribution: slackware64 13.1, slackware 13.1
Posts: 369

Rep: Reputation: 45
newbie modifying sendmail configuration for IPv6...


My goal is to make sendmail accept connections over IPv6.

ok, this is the diff from after my edit:
Code:
root@computer-compaq:/usr/share/sendmail/cf/cf# diff -u sendmail-slackware.mc sendmail-slackware-ipv6.mc
--- sendmail-slackware.mc       2009-06-26 21:50:54.000000000 +0200
+++ sendmail-slackware-ipv6.mc  2009-12-20 18:57:55.000000000 +0100
@@ -37,6 +37,8 @@
 EXPOSED_USER(`root')dnl
 dnl# Also accept mail for localhost.localdomain:
 LOCAL_DOMAIN(`localhost.localdomain')dnl
+DAEMON_OPTIONS(`Name=MTA-v4, Family=inet')
+DAEMON_OPTIONS(`Name=MTA-v6, Family=inet6')
 MAILER(local)dnl
 MAILER(smtp)dnl
 MAILER(procmail)dnl
I ran m4 and copied the file to /etc/mail/:
Code:
root@computer-compaq:/usr/share/sendmail/cf/cf# m4 sendmail-slackware-ipv6.mc > ../../sendmail-slackware-ipv6.cf
root@computer-compaq:/usr/share/sendmail/cf/cf# cp /usr/share/sendmail/sendmail-slackware-ipv6.cf /etc/mail/sendmail.cf
The result:
Code:
root@computer-compaq:/usr/share/sendmail/cf/cf# sh /etc/rc.d/rc.sendmail restart
Starting sendmail MTA daemon:  /usr/sbin/sendmail -L sm-mta -bd -q25m
554 5.3.5 /etc/mail/sendmail.cf: line 265: Unknown address family inet6 in Family=option
Starting sendmail MSP queue runner:  /usr/sbin/sendmail -L sm-msp-queue -Ac -q25m
It doesn't listen to IPv6.

Doesn't sendmail support IPv6 by default on slackware? How can I check that?

Do I have to modify some other configuration file? Which one?
 
Old 12-20-2009, 05:50 PM   #2
janhe
Member
 
Registered: Jul 2007
Location: Belgium
Distribution: slackware64 13.1, slackware 13.1
Posts: 369

Original Poster
Rep: Reputation: 45
I just found out that the slackware package doesn't support IPv6 (I think)

When I run this, I don't see the "NETINET6" option under "Compiled with:"
Code:
/usr/sbin/sendmail -bt -d0.4 < /dev/null
I will now look into recompiling the package...

Hints and tips are appreciated. Apparently I need to modify the site.config.m4 file. I've looked a few times at the slackbuild, and I'm not sure if it uses this file.
 
Old 12-21-2009, 05:03 AM   #3
janhe
Member
 
Registered: Jul 2007
Location: Belgium
Distribution: slackware64 13.1, slackware 13.1
Posts: 369

Original Poster
Rep: Reputation: 45
Allright, I recompiled the packages for sendmail and sendmail-cf.

The slackbuild from Pattrick does compile from source and uses site.local.m4.

I added this line to site.local.m4 and reran the slackbuild:
Code:
APPENDDEF(`confENVDEF', `-DNETINET6')
Now it supports IPv6!

Apparently you cannot run sendmail on port 25 for IPv6 and on port 25 for IPv4, so I had to change the MTA line to this:
Code:
DAEMON_OPTIONS(`Name=MTA-v4, Family=inet, Family=inet6')
Then it accepts IPv4 and IPv6.
 
  


Reply

Tags
ipv6, sendmail


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sendmail with IPv6 support archiac Linux - Server 0 11-19-2008 02:54 AM
IPv6 configuration hermiod Linux - Networking 0 06-19-2008 12:51 PM
Sendmail configuration problem (newbie) mastyle Linux - Software 3 03-11-2005 05:52 PM
IPv6 support and configuration for RH 8.0 davloz Red Hat 0 01-21-2004 04:49 AM
modifying configuration files while logged in as a regular user jgallas Linux - Security 3 08-13-2003 11:31 PM


All times are GMT -5. The time now is 12:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration