Re: Sendmail: sub-domain masquerade as top level
On Friday 04 January 2008 01:11, Jerahmy Pocott wrote: On 04/01/2008, at 12:59 AM, Barry Byrne wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jerahmy Pocott I'm having an issue with getting sendmail to masquerade as the top level domain when the host is a sub domain. You don't say what you've tried already. I use postfix these days, but from memory, something like the following should work for you: MASQUERADE_AS(`domain.com') MASQUERADE_DOMAIN(`sub.domain.com') Sorry, I should have mentioned what I had tried: I have tried the above and the above in combination with FEATURE(`masquerade_entire_domain') and pretty much every combination of those statements all to no effect. For some reason when the masquerade domain is the top level of the actual domain, it won't change it even with those options set.. This is from my live .mc file, which definitely works: MASQUERADE_AS(`hst.org.za')dnl MASQUERADE_DOMAIN(`hst.org.za')dnl FEATURE(`masquerade_envelope')dnl FEATURE(`masquerade_entire_domain')dnl MASQUERADE_EXCEPTION(`lists.hst.org.za barley.hst.org.za akima.hst.org.za')dnl My understanding is this. First of all, bear in mind that a domain name may refer to a group of hosts (I'll call this a zone by analogy with BIND), or a single host (a FQDN). MASQUERADE_AS gives the FQDN to be used when masquerading. It is applied to the domain names of the local mail host only - so if the only change is on your mailserver to go from mailserver.example.com to example.com, this should be all you need. MASQUERADE_DOMAIN adds additional FQDNs to the list of domain names to be masqueraded - if you need to masquerade other hosts within your zone. FEATURE(`masquerade_entire_domain') switches MASQUERADE_DOMAIN to affect whole zones instead of FQDNs of single hosts. As I read cf/README, you need both these options to masquerade a whole zone, as well as the first option to specify what to masquerade as. The last of the five lines exempts some hosts from masquerading because they handle their own mail. Not doing this can cause some... interesting breakage. Jonathan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Sendmail: sub-domain masquerade as top level
On 04/01/2008, at 7:11 PM, Jonathan McKeown wrote: On Friday 04 January 2008 01:11, Jerahmy Pocott wrote: On 04/01/2008, at 12:59 AM, Barry Byrne wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jerahmy Pocott I'm having an issue with getting sendmail to masquerade as the top level domain when the host is a sub domain. You don't say what you've tried already. I use postfix these days, but from memory, something like the following should work for you: MASQUERADE_AS(`domain.com') MASQUERADE_DOMAIN(`sub.domain.com') Sorry, I should have mentioned what I had tried: I have tried the above and the above in combination with FEATURE(`masquerade_entire_domain') and pretty much every combination of those statements all to no effect. For some reason when the masquerade domain is the top level of the actual domain, it won't change it even with those options set.. This is from my live .mc file, which definitely works: MASQUERADE_AS(`hst.org.za')dnl MASQUERADE_DOMAIN(`hst.org.za')dnl FEATURE(`masquerade_envelope')dnl FEATURE(`masquerade_entire_domain')dnl MASQUERADE_EXCEPTION(`lists.hst.org.za barley.hst.org.za akima.hst.org.za')dnl Adding FEATURE(`masquerade_envelope') fixed the issue I was having, thanks! Cheers, J. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Sendmail: sub-domain masquerade as top level
Hello, I'm having an issue with getting sendmail to masquerade as the top level domain when the host is a sub domain. For example I want server.exmaple.com to send mail as [EMAIL PROTECTED] rather than [EMAIL PROTECTED], how ever the masquerade options don't seem to work for this.. It works fine if the server is a different domain, but not when it's a sub domain.. How do I get this behavior? Thanks, J. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Sendmail: sub-domain masquerade as top level
On Thursday 03 January 2008 12:04, Jerahmy Pocott wrote: Hello, I'm having an issue with getting sendmail to masquerade as the top level domain when the host is a sub domain. For example I want server.exmaple.com to send mail as [EMAIL PROTECTED] rather than [EMAIL PROTECTED], how ever the masquerade options don't seem to work for this.. It works fine if the server is a different domain, but not when it's a sub domain.. How do I get this behavior? FEATURE(`masquerade_entire_domain') Check /usr/share/sendmail/cf/README for the details of the various masquerade options and features. Jonathan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Sendmail: sub-domain masquerade as top level
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jerahmy Pocott I'm having an issue with getting sendmail to masquerade as the top level domain when the host is a sub domain. For example I want server.exmaple.com to send mail as [EMAIL PROTECTED] rather than [EMAIL PROTECTED], how ever the masquerade options don't seem to work for this.. It works fine if the server is a different domain, but not when it's a sub domain.. How do I get this behavior? Jerahmy, You don't say what you've tried already. I use postfix these days, but from memory, something like the following should work for you: MASQUERADE_AS(`domain.com') MASQUERADE_DOMAIN(`sub.domain.com') - Barry ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Sendmail: sub-domain masquerade as top level
On 04/01/2008, at 12:59 AM, Barry Byrne wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jerahmy Pocott I'm having an issue with getting sendmail to masquerade as the top level domain when the host is a sub domain. For example I want server.exmaple.com to send mail as [EMAIL PROTECTED] rather than [EMAIL PROTECTED], how ever the masquerade options don't seem to work for this.. It works fine if the server is a different domain, but not when it's a sub domain.. How do I get this behavior? Jerahmy, You don't say what you've tried already. I use postfix these days, but from memory, something like the following should work for you: MASQUERADE_AS(`domain.com') MASQUERADE_DOMAIN(`sub.domain.com') Sorry, I should have mentioned what I had tried: I have tried the above and the above in combination with FEATURE(`masquerade_entire_domain') and pretty much every combination of those statements all to no effect. For some reason when the masquerade domain is the top level of the actual domain, it won't change it even with those options set.. Maybe a virtualusertable entry could do the trick? Thanks! Jerahmy. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]