Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Apr 2001 10:59:12 +0400 (MSD)
From:      Maxim Konovalov <maxim@macomnet.ru>
To:        Sean Farley <sean-freebsd@farley.org>
Cc:        <freebsd-net@FreeBSD.ORG>
Subject:   Re: Sendmail outgoing bind() fails on PPP
Message-ID:  <Pine.BSF.4.33.0104271048010.6419-100000@news1.macomnet.ru>
In-Reply-To: <20010426205613.L28093-100000@thor.farley.org>

next in thread | previous in thread | raw e-mail | index | archive | help

Hello,

On Thu, 26 Apr 2001, Sean Farley wrote:

> I previously posted this on comp.mail.sendmail and freebsd-questions.
> After no answer and some extra testing, I believe this probably belongs
> here.
>
> --------
>
> I need some help debugging a problem I am having with setting up Sendmail.
> Previously, I have been using Exim, but I have decided to try my hand with
> a different MTA.  :)
>
> Here is the error I just cannot seem to get around (with indenting):
>
> Apr 21 16:10:14 gw sendmail[1985]: starting daemon (8.11.2):
>                 SMTP+queueing@00:30:00
> Apr 21 16:10:15 gw sendmail[1986]: f3LK0XL00702: SYSERR(root):
>                 makeconnection: cannot bind socket [216.140.158.72]:
>                 Invalid argument
> Apr 21 16:10:15 gw sendmail[1986]: f3LK0XL00702: to<ME@blackhat.net>,
>                 delay1:09:42, xdelay0:00:01, maileresmtp, priR80326,
>                 relaymail.blackhat.net. [216.140.158.10], dsn4.0.0,
>                 stat=Deferred: Invalid argument
>
> My setup consists of FreeBSD-4.2, Sendmail v8.11.2, a multi-home system
> with a cable modem, analog modem, and a LAN.
>
> I only wish it to receive on the LAN (192.168.1.0) and the analog modem
> (216.140.158.72).  This is easy to change (DAEMON_OPTIONS), but I just
> can't get confCLIENT_OPTIONS to work.  From looking at sendmail.cf, I can
> see that it is being set:
>
> # SMTP client options
> O ClientPortOptions=Family=inet, Addr=216.140.158.72
>
> Here are my files, interfaces, and routing tables.  I have Exim working
> with this, but I would like to get sendmail running.  Also, I use IP
> Filter to actually route the packets from the cable modem over to the
> analog modem, but this is not the problem.
>
>
> sendmail.mc:
> divert(-1)
> # Lots of comments.  :)
> divert(0)dnl
> VERSIONID(`@(#)freebsd.mc	$Revision: 1.4.2.1 $')
> OSTYPE(bsd4.4)
> DOMAIN(generic)
> FEATURE(relay_entire_domain)
> FEATURE(`dnsbl')
> FEATURE(`always_add_domain')
>
> define(`confCLIENT_OPTIONS', `Addr=216.140.158.72')
> define(`confNO_RCPT_ACTION', `add-to-undisclosed')
> define(`confPRIVACY_FLAGS', `authwarnings,novrfy')
> define(`confDONT_PROBE_INTERFACES', `true')
> MODIFY_MAILER_FLAGS(`LOCAL', `+S')
>
> dnl Mailers.
> MAILER(local)
> MAILER(smtp)
>
>
> ifconfig -a:
> vx0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>         inet6 fe80::220:afff:fef0:e85d%vx0 prefixlen 64 scopeid 0x1
>         inet 66.25.132.129 netmask 0xfffffc00 broadcast 255.255.255.255
>         ether 00:20:af:f0:e8:5d
> ed0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>         inet 192.168.1.2 netmask 0xffffff00 broadcast 192.168.1.255
>         inet6 fe80::200:c0ff:fec2:cfdd%ed0 prefixlen 64 scopeid 0x2
>         inet6 fec0::1:200:c0ff:fec2:cfdd prefixlen 64
>         inet6 fec0:0:0:1:: prefixlen 64 anycast
>         ether 00:00:c0:c2:cf:dd
> faith0: flags=8041<UP,RUNNING,MULTICAST> mtu 1500
>         inet6 fe80::220:afff:fef0:e85d%faith0 prefixlen 64 scopeid 0x3
> gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
> gif1: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
> gif2: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
> gif3: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
> lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
>         inet6 fe80::1%lo0 prefixlen 64 scopeid 0x8
>         inet6 ::1 prefixlen 128
>         inet 127.0.0.1 netmask 0xff000000
> ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
> stf0: flags1<UP> mtu 1280
> tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
>         inet6 fe80::220:afff:fef0:e85d%tun0 --> :: prefixlen 64 scopeid 0xb
>         inet 216.140.158.72 --> 216.140.158.15 netmask 0xffffff00
>         Opened by PID 139
>

Well, I have had the same problem. The solution was in removing IPv6
support. I have not done any futher investigations.

HTH

- -maxim

-- 
Maxim Konovalov, MAcomnet, Internet-Intranet Dept., system engineer
phone: +7 (095) 796-9079, mailto: maxim@macomnet.ru


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.33.0104271048010.6419-100000>