Re: sendmail and virtual hosting: still a small annoying problem
On Tue, Mar 12, 2002 at 11:21:17AM -0500, Richard A Nelson <[EMAIL PROTECTED]> wrote a message of 42 lines which said: > You have FEATURE(`allmasquerade') Correct? You were right... > Try FEATURE(`limited_masquerade') and add *ONLY* the hosts you to > masquerade (localhost, etc) to class {M} (Leave {w} as is) It works fine. Thank you very much. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: sendmail and virtual hosting: still a small annoying problem
On Mon, Mar 11, 2002 at 07:12:42PM -0500, Bulent Murtezaoglu <[EMAIL PROTECTED]> wrote a message of 15 lines which said: > What else do you have in your .mc ? Masquerading options maybe? Ooops, here it is (domain names changed). Can I have both masquerading and virtusertable or should I try again to convince the customer to switch to Postfix? VERSIONID(`@(#)sendmail.mc 8.9.1a (Linux) 19981026') OSTYPE(debian)dnl LOCAL_CONFIG FEATURE(`virtusertable', `hash /etc/mail/virtusertable')dnl FEATURE(`genericstable', `hash /etc/mail/genericstable')dnl FEATURE(masquerade_envelope)dnl FEATURE(allmasquerade)dnl FEATURE(always_add_domain)dnl FEATURE(use_cw_file)dnl FEATURE(use_ct_file)dnl FEATURE(redirect)dnl FEATURE(nouucp)dnl FEATURE(bestmx_is_local)dnl define(`confME_TOO', True)dnl MAILER_DEFINITIONS MAILER(local)dnl MAILER(smtp)dnl LOCAL_CONFIG MASQUERADE_AS(dot.bar)dnl -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
sendmail and virtual hosting: still a small annoying problem
SB> If I send a mail to [EMAIL PROTECTED] when the main domain is SB> dot.bar and I have in the virtusertable: SB> [EMAIL PROTECTED] bortzmeyer SB> the mail is received with a header: SB> To: [EMAIL PROTECTED] SB> which is not what the customer wants. What else do you have in your .mc ? Masquerading options maybe? Out of the box with no other options sendmail should leave the header to alone. cheers, BM -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
sendmail and virtual hosting: still a small annoying problem
I'm clearly rusty in sendmail (I now use Postfix but a customer wants to keep sendmail) and I have a small but annoying problem with virtual hosting. I have implemented: http://www.sendmail.org/virtual-hosting.html with a M4 configuration file as instructed above. It works fine except that To: fields are rewritten with the main domain, not the virtual one. If I send a mail to [EMAIL PROTECTED] when the main domain is dot.bar and I have in the virtusertable: [EMAIL PROTECTED] bortzmeyer the mail is received with a header: To: [EMAIL PROTECTED] which is not what the customer wants. Any simple solution? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]