Networking Forums

Networking Forums > Computer Networking > Linux Networking > Sendmail config question

Reply
Thread Tools Display Modes

Sendmail config question

 
 
Mark Bratcher
Guest
Posts: n/a

 
      11-19-2003, 06:32 PM

I currently have a server set up as the SMTP server for our e-mail.

We have a corporate domain (foo.com), and another domain we use for our
site (foo-east.com). The mail server for foo.com is outside of our
facility (3rd party hosted). We have on site the mail server for foo-east.com
(different machine than the SMTP server for our site).

If I want to send an email to (E-Mail Removed) who is in our same facility
(foo-east.com), it goes out through the SMTP server, into the corporate mail
server. We then retrieve our email from that server over the internet.
No biggy, works OK.

But what I'd like to do is intercept emails going out through our SMTP
that can be routed locally. So if I send an email to (E-Mail Removed), it looks
up fred and finds that fred is at (E-Mail Removed) and changes the
address to be foo-east instead of foo in the "To" field.

I tried using genericstable for this, but it doesn't really work
to change (E-Mail Removed) to (E-Mail Removed).

Is there a way to do this?

Thanks.

--
Mark Bratcher
--------------------------------------------------------
Why choose Linux? Check out this Ernie Ball saga:
http://linux.bryanconsulting.com/stories/storyReader$172
 
Reply With Quote
 
 
 
 
ynotssor
Guest
Posts: n/a

 
      11-19-2003, 10:56 PM
"Mark Bratcher" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) om

> I tried using genericstable for this, but it doesn't really work
> to change (E-Mail Removed) to (E-Mail Removed).


It is always helpful to post the configuration effort you've already made in
genericstable, in the off-chance that it's a simple syntax issue.

More likely however is that you haven't yet added foo.com to class {G} as
stated in cf/README:

genericstable
This feature will cause unqualified addresses (i.e., without a domain) and
addresses with a domain listed in class {G} to be looked up in a map and
turned into another ("generic") form, which can change both the domain name
and the user name. Notice: if you use an MSP (as it is default starting with
8.12), the MTA will only receive qualified addresses from the MSP (as
required by the RFCs). Hence you need to add your domain to class {G}.
This feature is similar to the userdb functionality. The same types of
addresses as for masquerading are looked up, i.e., only header sender
addresses unless the allmasquerade and/or masquerade_envelope features are
given. Qualified addresses must have the domain part in class {G}; entries
can be added to this class by the macros GENERICS_DOMAIN or
GENERICS_DOMAIN_FILE (analogously to MASQUERADE_DOMAIN and
MASQUERADE_DOMAIN_FILE, see below).


tony

--
use hotmail for any email replies



-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
 
Reply With Quote
 
Mark Bratcher
Guest
Posts: n/a

 
      11-20-2003, 12:03 AM
On Wed, 19 Nov 2003 15:56:10 -0800, ynotssor <> took up his/her discourse and spake:
> "Mark Bratcher" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed) om
>
>> I tried using genericstable for this, but it doesn't really work
>> to change (E-Mail Removed) to (E-Mail Removed).

>
> It is always helpful to post the configuration effort you've already made in
> genericstable, in the off-chance that it's a simple syntax issue.
>
> More likely however is that you haven't yet added foo.com to class {G} as
> stated in cf/README:
>
> genericstable
> This feature will cause unqualified addresses (i.e., without a domain) and
> addresses with a domain listed in class {G} to be looked up in a map and
> turned into another ("generic") form, which can change both the domain name
> and the user name. Notice: if you use an MSP (as it is default starting with
> 8.12), the MTA will only receive qualified addresses from the MSP (as
> required by the RFCs). Hence you need to add your domain to class {G}.
> This feature is similar to the userdb functionality. The same types of
> addresses as for masquerading are looked up, i.e., only header sender
> addresses unless the allmasquerade and/or masquerade_envelope features are
> given. Qualified addresses must have the domain part in class {G}; entries
> can be added to this class by the macros GENERICS_DOMAIN or
> GENERICS_DOMAIN_FILE (analogously to MASQUERADE_DOMAIN and
> MASQUERADE_DOMAIN_FILE, see below).
>
>


Tony, thanks for the info.

The reason I asked was that it wasn't clear to me whether genericstable
was the correct place to do this. Mainly because I do not want to
alter From addresses, only To addresses. I had examined the cf/README
and found it a little confusing since I am very new at messing with
configuring sendmail, and the README assumes a bit of knowledge.
For example, I don't know how to "add foo.com to class {G}".

Thanks again for clarifying. I'll have another look at it.

--
Mark Bratcher
--------------------------------------------------------
Why choose Linux? Check out this Ernie Ball saga:
http://linux.bryanconsulting.com/stories/storyReader$172
 
Reply With Quote
 
Mark Bratcher
Guest
Posts: n/a

 
      11-20-2003, 12:27 AM
On Thu, 20 Nov 2003 01:03:39 GMT, Mark Bratcher <(E-Mail Removed)> took up his/her discourse and spake:
> On Wed, 19 Nov 2003 15:56:10 -0800, ynotssor <> took up his/her discourse and spake:
>> "Mark Bratcher" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed) om
>>
>>> I tried using genericstable for this, but it doesn't really work
>>> to change (E-Mail Removed) to (E-Mail Removed).

>>
>> It is always helpful to post the configuration effort you've already made in
>> genericstable, in the off-chance that it's a simple syntax issue.
>>
>> More likely however is that you haven't yet added foo.com to class {G} as
>> stated in cf/README:
>>
>> genericstable
>> This feature will cause unqualified addresses (i.e., without a domain) and
>> addresses with a domain listed in class {G} to be looked up in a map and
>> turned into another ("generic") form, which can change both the domain name
>> and the user name. Notice: if you use an MSP (as it is default starting with
>> 8.12), the MTA will only receive qualified addresses from the MSP (as
>> required by the RFCs). Hence you need to add your domain to class {G}.
>> This feature is similar to the userdb functionality. The same types of
>> addresses as for masquerading are looked up, i.e., only header sender
>> addresses unless the allmasquerade and/or masquerade_envelope features are
>> given. Qualified addresses must have the domain part in class {G}; entries
>> can be added to this class by the macros GENERICS_DOMAIN or
>> GENERICS_DOMAIN_FILE (analogously to MASQUERADE_DOMAIN and
>> MASQUERADE_DOMAIN_FILE, see below).
>>
>>

>
> Tony, thanks for the info.
>
> The reason I asked was that it wasn't clear to me whether genericstable
> was the correct place to do this. Mainly because I do not want to
> alter From addresses, only To addresses. I had examined the cf/README
> and found it a little confusing since I am very new at messing with
> configuring sendmail, and the README assumes a bit of knowledge.
> For example, I don't know how to "add foo.com to class {G}".
>
> Thanks again for clarifying. I'll have another look at it.
>


OK Tony, I have that set up as described, but still no joy.

I have a line in genericstable like this:

(E-Mail Removed) (E-Mail Removed)

And I have this in my sendmail.cf:

CGfoo.com

Testing with "sendmail -bt" and using "/tryflags HS" followed by "/try smtp (E-Mail Removed)"
it indicates that it's being mapped to "(E-Mail Removed)".

But when I actually send an email to (E-Mail Removed), it still goes out to (E-Mail Removed),
not (E-Mail Removed).

Mark


--
Mark Bratcher
--------------------------------------------------------
Why choose Linux? Check out this Ernie Ball saga:
http://linux.bryanconsulting.com/stories/storyReader$172
 
Reply With Quote
 
Mark Bratcher
Guest
Posts: n/a

 
      11-24-2003, 02:19 PM
On Thu, 20 Nov 2003 01:27:59 GMT, Mark Bratcher <(E-Mail Removed)> took up his/her discourse and spake:
> On Thu, 20 Nov 2003 01:03:39 GMT, Mark Bratcher <(E-Mail Removed)> took up his/her discourse and spake:
>> On Wed, 19 Nov 2003 15:56:10 -0800, ynotssor <> took up his/her discourse and spake:
>>> "Mark Bratcher" <(E-Mail Removed)> wrote in message
>>> news:(E-Mail Removed) om
>>>
>>>> I tried using genericstable for this, but it doesn't really work
>>>> to change (E-Mail Removed) to (E-Mail Removed).
>>>
>>> It is always helpful to post the configuration effort you've already made in
>>> genericstable, in the off-chance that it's a simple syntax issue.
>>>
>>> More likely however is that you haven't yet added foo.com to class {G} as
>>> stated in cf/README:
>>>
>>> genericstable
>>> This feature will cause unqualified addresses (i.e., without a domain) and
>>> addresses with a domain listed in class {G} to be looked up in a map and
>>> turned into another ("generic") form, which can change both the domain name
>>> and the user name. Notice: if you use an MSP (as it is default starting with
>>> 8.12), the MTA will only receive qualified addresses from the MSP (as
>>> required by the RFCs). Hence you need to add your domain to class {G}.
>>> This feature is similar to the userdb functionality. The same types of
>>> addresses as for masquerading are looked up, i.e., only header sender
>>> addresses unless the allmasquerade and/or masquerade_envelope features are
>>> given. Qualified addresses must have the domain part in class {G}; entries
>>> can be added to this class by the macros GENERICS_DOMAIN or
>>> GENERICS_DOMAIN_FILE (analogously to MASQUERADE_DOMAIN and
>>> MASQUERADE_DOMAIN_FILE, see below).
>>>
>>>

>>
>> Tony, thanks for the info.
>>
>> The reason I asked was that it wasn't clear to me whether genericstable
>> was the correct place to do this. Mainly because I do not want to
>> alter From addresses, only To addresses. I had examined the cf/README
>> and found it a little confusing since I am very new at messing with
>> configuring sendmail, and the README assumes a bit of knowledge.
>> For example, I don't know how to "add foo.com to class {G}".
>>
>> Thanks again for clarifying. I'll have another look at it.
>>

>
> OK Tony, I have that set up as described, but still no joy.
>
> I have a line in genericstable like this:
>
> (E-Mail Removed) (E-Mail Removed)
>
> And I have this in my sendmail.cf:
>
> CGfoo.com
>
> Testing with "sendmail -bt" and using "/tryflags HS" followed by "/try smtp (E-Mail Removed)"
> it indicates that it's being mapped to "(E-Mail Removed)".
>
> But when I actually send an email to (E-Mail Removed), it still goes out to (E-Mail Removed),
> not (E-Mail Removed).
>
> Mark
>
>


Any more suggestions...anyone?

 
Reply With Quote
 
Mark Bratcher
Guest
Posts: n/a

 
      11-30-2003, 07:30 PM
On Mon, 24 Nov 2003 15:19:43 GMT, Mark Bratcher <(E-Mail Removed)> took up his/her discourse and spake:
> On Thu, 20 Nov 2003 01:27:59 GMT, Mark Bratcher <(E-Mail Removed)> took up his/her discourse and spake:
>> On Thu, 20 Nov 2003 01:03:39 GMT, Mark Bratcher <(E-Mail Removed)> took up his/her discourse and spake:
>>> On Wed, 19 Nov 2003 15:56:10 -0800, ynotssor <> took up his/her discourse and spake:
>>>> "Mark Bratcher" <(E-Mail Removed)> wrote in message
>>>> news:(E-Mail Removed) om
>>>>
>>>>> I tried using genericstable for this, but it doesn't really work
>>>>> to change (E-Mail Removed) to (E-Mail Removed).
>>>>
>>>> It is always helpful to post the configuration effort you've already made in
>>>> genericstable, in the off-chance that it's a simple syntax issue.
>>>>
>>>> More likely however is that you haven't yet added foo.com to class {G} as
>>>> stated in cf/README:
>>>>
>>>> genericstable
>>>> This feature will cause unqualified addresses (i.e., without a domain) and
>>>> addresses with a domain listed in class {G} to be looked up in a map and
>>>> turned into another ("generic") form, which can change both the domain name
>>>> and the user name. Notice: if you use an MSP (as it is default starting with
>>>> 8.12), the MTA will only receive qualified addresses from the MSP (as
>>>> required by the RFCs). Hence you need to add your domain to class {G}.
>>>> This feature is similar to the userdb functionality. The same types of
>>>> addresses as for masquerading are looked up, i.e., only header sender
>>>> addresses unless the allmasquerade and/or masquerade_envelope features are
>>>> given. Qualified addresses must have the domain part in class {G}; entries
>>>> can be added to this class by the macros GENERICS_DOMAIN or
>>>> GENERICS_DOMAIN_FILE (analogously to MASQUERADE_DOMAIN and
>>>> MASQUERADE_DOMAIN_FILE, see below).
>>>>
>>>>
>>>
>>> Tony, thanks for the info.
>>>
>>> The reason I asked was that it wasn't clear to me whether genericstable
>>> was the correct place to do this. Mainly because I do not want to
>>> alter From addresses, only To addresses. I had examined the cf/README
>>> and found it a little confusing since I am very new at messing with
>>> configuring sendmail, and the README assumes a bit of knowledge.
>>> For example, I don't know how to "add foo.com to class {G}".
>>>
>>> Thanks again for clarifying. I'll have another look at it.
>>>

>>
>> OK Tony, I have that set up as described, but still no joy.
>>
>> I have a line in genericstable like this:
>>
>> (E-Mail Removed) (E-Mail Removed)
>>
>> And I have this in my sendmail.cf:
>>
>> CGfoo.com
>>
>> Testing with "sendmail -bt" and using "/tryflags HS" followed by "/try smtp (E-Mail Removed)"
>> it indicates that it's being mapped to "(E-Mail Removed)".
>>
>> But when I actually send an email to (E-Mail Removed), it still goes out to (E-Mail Removed),
>> not (E-Mail Removed).
>>
>> Mark
>>
>>

>
> Any more suggestions...anyone?
>


hello??.... :-/

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
WGT624 question abt config........ Scherb066 Network Routers 0 05-03-2007 03:42 PM
RRAS Config Question? =?Utf-8?B?Sm9l?= Windows Networking 2 04-04-2005 02:41 AM
How to config sendmail for relaying emails to my ISP? Peter Broadband 2 12-20-2004 09:44 PM
Sendmail config Rich Linux Networking 0 09-18-2004 01:55 PM
Sendmail - another newbie question Doug Laidlaw Linux Networking 4 07-01-2004 07:22 PM



1 2 3 4 5 6 7 8 9 10 11