sendmail on server with ip aliases

Matthew Seaman m.seaman at infracaninophile.co.uk
Thu Jul 3 06:06:08 UTC 2008


Giorgos Keramidas wrote:
> On Wed, 2 Jul 2008 11:56:58 -0400, "D W" <lists at duanewinner.net> wrote:
>> Hello,
>>
>> Having a problem with sendmail on some of my servers supporting several
>> virtual apache hosts. Because these servers have 5-10 ip aliases bound, it
>> sometimes trips up sendmail when sending outbound mail to my smarthost. All
>> servers are configured to use the same smarthost. But on one of the hosts,
>> sendmail will send out as the one of the virtual hosts instead of the main
>> host, which is what I need.
>>
>> Example: webhost01.webdomain.com is the host.
>> Five ip aliases for apache virtual servers:
> 
> Something is probably missing below the last quoted line.
> 
> Are you using jails for the virtual hosts?  If not, then you are
> probably using *one* Sendmail instance for all the domains, which still
> sends emails as the primary hostname but should work fine...
> 

You can also force sendmail to send /from/ a specific IP by putting some
something like the following into /etc/mail/$(hostname).mc 

dnl Send via the IP number that correctly reverses to our EHLO
CLIENT_OPTIONS(`Name=MTA, Family=inet, Addr=12.34.56.78')

	Cheers,

	Matthew


-- 
Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey     Ramsgate
                                                  Kent, CT11 9PW

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 258 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20080703/be08e93d/signature.pgp


More information about the freebsd-questions mailing list