From: janus on
Hi all!

I've got a box with several aliased ips.. right now, sendmail is using
the first ip
for eth1: a.b.c.d and I need to get sendmail to use a.b.c.e when
talking to other servers (outgoing connections)
I'm trying to get sendmail to use an aliased IP when acting as a
client like so:

CLIENT_OPTIONS(`Family=inet, Addr=a.b.c.e')dnl

but the darn thing just doesn't work.. I'm sending a test email with
my mail server to my gmail account, and gmail still says that its
receiving email from a.b.c.d ... I'm pretty much at a loss here.. why
isn't it working?
sendmail version: Version 8.13.8 (maybe i need to upgrade?)
From: Andrzej Adam Filip on
janus <levchenko.i(a)gmail.com> wrote:

> I've got a box with several aliased ips.. right now, sendmail is using
> the first ip
> for eth1: a.b.c.d and I need to get sendmail to use a.b.c.e when
> talking to other servers (outgoing connections)
> I'm trying to get sendmail to use an aliased IP when acting as a
> client like so:
>
> CLIENT_OPTIONS(`Family=inet, Addr=a.b.c.e')dnl
>
> but the darn thing just doesn't work.. I'm sending a test email with
> my mail server to my gmail account, and gmail still says that its
> receiving email from a.b.c.d ... I'm pretty much at a loss here.. why
> isn't it working?

Standard set of checks before investigating more sinister explanations:
0) Have you restarted (or HUPed) sendmail daemon?
sendmail daemon "remembers" sendmail.cf as it was at daemon startup.
1) Have you checked that the setting has been passed to sendmail.cf?
grep ClientPortOptions /etc/mail/sendmail.cf

> sendmail version: Version 8.13.8 (maybe i need to upgrade?)

--
[pl>en Andrew] Andrzej Adam Filip : anfi(a)priv.onet.pl : anfi(a)xl.wp.pl
Thus mathematics may be defined as the subject in which we never know
what we are talking about, nor whether what we are saying is true.
-- Bertrand Russell
From: janus on
On Jun 24, 12:45 am, Andrzej Adam Filip <a...(a)onet.eu> wrote:
> janus <levchenk...(a)gmail.com> wrote:
> > I've got a box with several aliased ips.. right now, sendmail is using
> > the first ip
> > for eth1: a.b.c.d and I need to get sendmail to use a.b.c.e when
> > talking to other servers (outgoing connections)
> > I'm trying to get sendmail to use an aliased IP when acting as a
> > client like so:
>
> > CLIENT_OPTIONS(`Family=inet, Addr=a.b.c.e')dnl
>
> > but the darn thing just doesn't work.. I'm sending a test email with
> > my mail server to my gmail account, and gmail still says that its
> > receiving email from a.b.c.d ... I'm pretty much at a loss here.. why
> > isn't it working?
>
> Standard set of checks before investigating more sinister explanations:
> 0) Have you restarted (or HUPed) sendmail daemon?
>    sendmail daemon "remembers" sendmail.cf as it was at daemon startup.
> 1) Have you checked that the setting has been passed to sendmail.cf?
>    grep ClientPortOptions /etc/mail/sendmail.cf
>
> > sendmail version: Version 8.13.8 (maybe i need to upgrade?)
>
> --
> [pl>en Andrew] Andrzej Adam Filip : a...(a)priv.onet.pl : a...(a)xl.wp.pl
> Thus mathematics may be defined as the subject in which we never know
> what we are talking about, nor whether what we are saying is true.
>   -- Bertrand Russell

Hi,

Thanks for the info.

Yes, I restarted sendmail (service sendmail restart)

and yes, sendmail.cf includes the option:
O ClientPortOptions=Family=inet, Addr=a.b.c.e

looks like its time to get sinister =)