Hurricane Electric's IPv6 Tunnel Broker Forums

IPv6 Certification Program Topics => General Discussion => Topic started by: RanahMinang on July 20, 2011, 06:07:23 AM

Title: sendmail does not listen on ipv6
Post by: RanahMinang on July 20, 2011, 06:07:23 AM
hi dear,

I am currently Enthusiast and wanna going to Administrator but I am stuck with my sendmail that does not listen on ipv6.
I am using CentOS 5.6 with sendmail preinstall from the disc. It listen on ipv4 but not on ipv6
my /etc/mail/sendmail.mc already comply with the one shown on the slide :

dnl # enable both ipv6 and ipv4 in sendmail:
dnl #
dnl DAEMON_OPTIONS(`Name=MTA-v4, Family=inet, Name=MTA-v6, Family=inet6')
dnl #

I try to add the following two lines but it does not help the situation.
dnl DAEMON_OPTIONS(`Name=IPv4, Family=inet, Addr=192.168.200.20')
dnl DAEMON_OPTIONS(`Name=IPv6, Family=inet6, Addr=2001:470:36:43::7')

Any clue ?

[root@IPV6 mail]# netstat -a|grep http
tcp        0      0 192.168.200.20:http         *:*                         LISTEN     
tcp        0      0 2001:470:36:43::7:http      *:*                         LISTEN     
tcp        0      0 *:https                     *:*                         LISTEN     
[root@IPV6 mail]# netstat -a|grep smtp
tcp        0      0 *:smtp                      *:*                         LISTEN     
[root@IPV6 mail]#

P
Title: Re: sendmail does not listen on ipv6
Post by: cconn on July 20, 2011, 09:11:47 AM
DAEMON_OPTIONS(`Port=smtp,Name=MTA, Family=inet6')dnl

then, in /etc/mail

run

"make"

service sendmail restart
Title: Re: sendmail does not listen on ipv6
Post by: snarked on July 20, 2011, 11:07:50 AM
Quotednl DAEMON_OPTIONS(`Name=MTA-v4, Family=inet, Name=MTA-v6, Family=inet6')
You can't do that.  Your second attempt with two lines is the correct way.

Did you rebuild "/etc/mail/sendmail.cf" using the M4 compiler?
Title: Re: sendmail does not listen on ipv6
Post by: RanahMinang on July 20, 2011, 08:17:40 PM
Thx for the responses,

I did try multiple options such as :

dnl DAEMON_OPTIONS(`Name=MTA-v4, Family=inet, Name=MTA-v6, Family=inet6')
DAEMON_OPTIONS(`Name=MTA-v4, Family=inet, Name=MTA-v6, Family=inet6')dnl

dnl DAEMON_OPTIONS(`Name=IPv4, Family=inet, Port=smtp')
dnl DAEMON_OPTIONS(`Name=IPv6, Family=inet6, Port=smtp')

DAEMON_OPTIONS(`Name=IPv4, Family=inet, Port=smtp')dnl
DAEMON_OPTIONS(`Name=IPv6, Family=inet6, Port=smtp')dnl

dnl DAEMON_OPTIONS(`Name=IPv4, Family=inet, Addr=192.168.200.20')
dnl DAEMON_OPTIONS(`Name=IPv6, Family=inet6, Addr=2001:470:36:43::7')

DAEMON_OPTIONS(`Name=IPv4, Family=inet, Addr=192.168.200.20')dnl
DAEMON_OPTIONS(`Name=IPv6, Family=inet6, Addr=2001:470:36:43::7')dnl

But the smtp only listen on ipv4; not ipv6 yet.

On every changes, I always did :
make -C /etc/mail
/etc/rc.d/init.d/sendmail restart
netstat -a | grep smtp

QuoteDid you rebuild "/etc/mail/sendmail.cf" using the M4 compiler?
What do you mean ? the sendmail package is installed from the centos dvd.
I did try to :
yum remove sendmail
yum install sendmail
yum install sendmail-cf
but the result still the same...

P
Title: Re: sendmail does not listen on ipv6
Post by: kcochran on July 20, 2011, 10:41:19 PM
Anything with dnl on it is a comment in M4 (means Discard to New Line), so you should be using the:
DAEMON_OPTIONS(`Name=IPv4, Family=inet')
DAEMON_OPTIONS(`Name=IPv6, Family=inet6')
lines.  I run with the above on one of my server's daemon sendmail.mc.  With the above, and a regenerated config, you should be most of the way there.  Just ensure sendmail is built with v6.  sendmail -d0.1 and look for NETINET6 in the Compiled options, and that should be the rest of it.  Use Port and Address options if you want to specifically bind to one besides the defaults/all.
Title: Re: sendmail does not listen on ipv6
Post by: RanahMinang on July 21, 2011, 07:29:44 PM
Thx.

I will try it again soon.

Paul