Re: how to change host name in greeting string based on listen IP/hostname?
- From: dmitry sychov <dmitry.sychov@xxxxxxx>
- Date: Thu, 27 Sep 2007 19:40:17 -0700
Patch? Why?
Per Hedeland told you the solution to use without a patch.
Don't forget to change your received header also:
define(`_REC_BY_', `$.by $?{if_name}${if_name}$|$j$. ($v/$Z)$?r with $r
$. id $i$?{tls_version}')dnl
the problem is that sendmail still connects to the remote host always
using default machine IP address.
it should be:
socket(..)
bind(..)
connect(..)
....
ie not like now:
socket(..)
connect(..)
....
(sendmail does not explicitly bind the created socket to the listen
socket address of the client connection)
my patch (which rebinds local address) works unless the delivery is
deferred (ie when remote server returns error like:
"Too many connections - try again later")
so i still have the problem with deferred delivery - sendmail always
rollbacks back to default machine IP...
thanks for _REC_NY_ hint - this is what I needed too.
dmitry
.
- Follow-Ups:
- References:
- how to change host name in greeting string based on listen IP/hostname?
- From: dmitry sychov
- Re: how to change host name in greeting string based on listen IP/hostname?
- From: dmitry sychov
- Re: how to change host name in greeting string based on listen IP/hostname?
- From: Per Hedeland
- Re: how to change host name in greeting string based on listen IP/hostname?
- From: dmitry sychov
- Re: how to change host name in greeting string based on listen IP/hostname?
- From: Per Hedeland
- Re: how to change host name in greeting string based on listen IP/hostname?
- From: -
- how to change host name in greeting string based on listen IP/hostname?
- Prev by Date: Red Hat + Brightmail: Getting "Cannot allocate memory" errors.
- Next by Date: Re: No milters with command line message submission? (v8.14.1)
- Previous by thread: Re: how to change host name in greeting string based on listen IP/hostname?
- Next by thread: Re: how to change host name in greeting string based on listen IP/hostname?
- Index(es):
Relevant Pages
|