Bind Sendmail to an IP address

Giorgos Keramidas keramida at ceid.upatras.gr
Thu Oct 29 03:26:16 UTC 2009


On Wed, 28 Oct 2009 15:49:15 -0700 (PDT), Aflatoon Aflatooni <aaflatooni at yahoo.com> wrote:
> Hi,
> I have a Freebsd 7.2 installation and using Sendmail for the SMTP
> service. This server has two public interfaces and different IP
> addresses.
>
> I need to have sendmail configured so that the outbound emails are
> sent using a certain IP address (SPF rules).  I have tried the
> following without any success:
>
> DAEMON_OPTIONS(`Addr=x.y.z.i')dnl
>  
> Any help or suggestions would be greatly appriciated.

When Sendmail relays messages to another server it acts as the `client'
for that server.  So you have to use CLIENT_OPTIONS() instead of the
DAEMON_OPTIONS() you are using now:

    CLIENT_OPTIONS(`Addr=a.b.c.d')dnl



More information about the freebsd-questions mailing list