Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Mar 2008 17:47:34 +0000
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Roberto Nunnari <roberto.nunnari@supsi.ch>
Cc:        Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl>, freebsd-questions@freebsd.org
Subject:   Re: sendmail: from virtual address changed to maindomain
Message-ID:  <47DC0BB6.8000806@infracaninophile.co.uk>
In-Reply-To: <47DC005C.1050203@supsi.ch>
References:  <47DB19D8.2010001@supsi.ch>	<20080315085852.B28960@wojtek.tensor.gdynia.pl> <47DC005C.1050203@supsi.ch>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigFE77AA2508D7B0214C69628D
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable

Roberto Nunnari wrote:
> yes. here it is.
>=20
> Thank you.
> Robi.
>=20
>=20
> Wojciech Puchar wrote:
>>>
>>> entries in hostname.mc
>>> FEATURE(virtusertable, `hash -o /etc/mail/virtusertable')
>>> FEATURE(genericstable, `hash -o /etc/mail/genericstable')
>>> GENERICS_DOMAIN_FILE(`/etc/mail/generics-domains')
>>>
>>> MX hostnames are all A records.
>>>
>>> well, as long as the users receive/send emails from/to external domai=
ns
>>> everything works just fine, but when:
>>>
>>> john@mydomain1.com sends to jack@mydomain1.com or viceversa
>>>
>>> the message gets to the right user, but the from header is
>>> changed to john@maindomain.com, mailbox that doesn't exists!
>>
>> could you please show whole hostname.mc


I assume that you've commented out all of the MASQUERADE and GENERICS stu=
ff
as part of your attempt to debug the problem and that you ultimately inte=
nd
to enable those capabilities.

Hmmm... not entirely certain, but I believe the part you are missing is:

FEATURE(limited_masquerade)dnl

This causes sendmail to only apply masquerading to the domains listed in
class {M} -- ie. what is listed in /etc/mail/generics-domains.  Without
that sendmail will also masquerade for any host in class {w} which includ=
es
any contents of /etc/mail/local-host-names,  all the interfaces of your
server by IP and any names those interfaces resolve into as well.  You
can see what the resulting lists are on your system by running

   sendmail -bt

and then typing $=3Dw or $=3DM at the prompt.

	Cheers,

	Matthew

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


--------------enigFE77AA2508D7B0214C69628D
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.8 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEAREIAAYFAkfcC7sACgkQ8Mjk52CukIz7FwCeN5r9ocAeknOq7LADZLiZNp47
MacAn3GLvxWcLbRVBETEjT8QJTPSZLRK
=Q5jl
-----END PGP SIGNATURE-----

--------------enigFE77AA2508D7B0214C69628D--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47DC0BB6.8000806>