LinuxSA Mailing list archives

Index: [thread] [date] [subject] [author] [stats]
  From: Jake Hawkes <jake@infinitylimited.net>
  To  : David Newall <davidn@rebel.net.au>
  Date: Sat, 25 Nov 2000 20:44:42 -0700

Re: setting sendmail to use an interface

David Newall wrote:
> Perhaps sendmail can be reconfigured to use a "smart relay" in the small
> ISP's network?  They're bound to have an SMTP relay for their clients' use.

thing is, I'm not using a smart relay. Here is the answer I was looking
for:

cf/README:

confCLIENT_OPTIONS      ClientPortOption
			[none] Options for outgoing SMTP client connections.

doc/op/op.{me,ps}:

      ClientPortOptions=options
                [O] Set client SMTP  options.   The  options
                are  key=value  pairs  separated  by commas.
                Known keys are:

                    Port      Name/number of source port for connection
                              (defaults to any free port)
            >>>>    Addr      Address mask (defaults INADDR_ANY)
                    Family    Address family (defaults to INET)
                    SndBufSizeSize of TCP send buffer
                    RcvBufSizeSize of TCP receive buffer
                    Modifier  Options (flags) for the daemon

this is all a bunch of gobildegook to me, but what it means is put an
entry like this into /etc/mail/sendmail.mc

define(`confCLIENT_OPTIONS', Addr=w.x.y.z)

where w.x.y.z is the interface you want sendmail to use. Tried it, works
a treat.

btw: i've set it up like this:
define(`confCLIENT_OPTIONS', Addr=2.2.2.2)

and then:
ifconfig ppp0:1 inet 2.2.2.2

that way, it doesn't which of the three dialup accounts I use, it will
alwyas work.

nifty huh?

--
Jake Hawkes B.Eng, (CSE)

All generalizations are false.

-- 
LinuxSA WWW: http://www.linuxsa.org.au/  IRC: #linuxsa on irc.linux.org.au
To unsubscribe from the LinuxSA list:
  mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject


Index: [thread] [date] [subject] [author] [stats]
Return to the LinuxSA Mailing List Information Page