Re: Sendmail genericstable help, please

2005-09-19 Thread Giorgos Keramidas
On 2005-09-18 22:25, stan [EMAIL PROTECTED] wrote:
 I;m trying to set up a 4.11 STABLE machine to act as the mailhost
 for a buch of virtual doamins. I'm planning on having users on
 the machien for each user/doaimn pair. I've got the incoming
 side of this working well with the Sendmail that came with 4.11
 (Not the ports version if it matters). I've done this with
 /etc/mail/virtusertable and appropruate configuration in the.mc file.

 Now, I;m trying to get the outbound side of it workig, and I'm
 not having much luck.

 I've crate /etc/mail/genericstable and it looks like this:

 stan[EMAIL PROTECTED]

I think you have to use a fully qualified hostname in the left hand
side too here, i.e.:

[EMAIL PROTECTED]   [EMAIL PROTECTED]

where foo.example.net is your local hostname.

 I'v also created /etc/mail/generics-domains it looks like this:

 i-v-o.net

 I've added the following to both ops2.ivo.net.mc and ops2.ivo.net.submit.mc

 MASQUERADE_DOMAIN(`ops2.i-v-o.net')
 FEATURE(`genericstable', `hash -o /etc/mail/genericstable')
 GENERICS_DOMAIN_FILE(`/etc/mail/generics-domains')
 FEATURE(`allmasquerade')
 FEATURE(`masquerade_envelope')
 FEATURE(`masquerade_entire_domain')

Remove the -o option from genericstable.  It means that the generics
table lookup is optional and Sendmail will continue posting the
messages (probably using the wrong address, as you've discovered) even
if there's something wrong with your generics table setup

 I've dome a make ; make install ; make restart sequence in /etc/mail, and
 I've set up muut to use a From of [EMAIL PROTECTED] Yet still the message
 (sent from the machine to the machine) contains:

Setting up mutt is unnecessary.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Sendmail genericstable help, please

2005-09-19 Thread Dan Busarow


On Sunday, September 18, 2005, at 08:25  PM, stan wrote:


I;m trying to set up a 4.11 STABLE machine to act as the mailhost
for a buch of virtual doamins. I'm planning on having users on
the machien for each user/doaimn pair. I've got the incoming
side of this working well with the Sendmail that came with 4.11
(Not the ports version if it matters). I've done this with
/etc/mail/virtusertable and appropruate configuration in the.mc file.

Now, I;m trying to get the outbound side of it workig, and I'm
not having much luck.

I've crate /etc/mail/genericstable and it looks like this:

stan[EMAIL PROTECTED]

I'v also created /etc/mail/generics-domains it looks like this:

i-v-o.net

I've added the following to both ops2.ivo.net.mc and 
ops2.ivo.net.submit.mc


MASQUERADE_DOMAIN(`ops2.i-v-o.net')
FEATURE(`genericstable', `hash -o /etc/mail/genericstable')
GENERICS_DOMAIN_FILE(`/etc/mail/generics-domains')
FEATURE(`allmasquerade')
FEATURE(`masquerade_envelope')
FEATURE(`masquerade_entire_domain')



Masquerade is the opposite of what you want to do.  Remove all of the 
masquerade lines and you should be OK


Dan
--
  Dan Busarow 406 287 
2182
  Fish Creek Ventures   
[EMAIL PROTECTED]

  5913 St Hwy 41, Whitehall, MT 59759

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Sendmail genericstable help, please

2005-09-19 Thread stan
On Mon, Sep 19, 2005 at 02:08:35PM +0300, Giorgos Keramidas wrote:
 On 2005-09-18 22:25, stan [EMAIL PROTECTED] wrote:
  I;m trying to set up a 4.11 STABLE machine to act as the mailhost
  for a buch of virtual doamins. I'm planning on having users on
  the machien for each user/doaimn pair. I've got the incoming
  side of this working well with the Sendmail that came with 4.11
  (Not the ports version if it matters). I've done this with
  /etc/mail/virtusertable and appropruate configuration in the.mc file.
 
  Now, I;m trying to get the outbound side of it workig, and I'm
  not having much luck.
 
  I've crate /etc/mail/genericstable and it looks like this:
 
  stan[EMAIL PROTECTED]
 
 I think you have to use a fully qualified hostname in the left hand
 side too here, i.e.:
 
   [EMAIL PROTECTED]   [EMAIL PROTECTED]
 
 where foo.example.net is your local hostname.
 
  I'v also created /etc/mail/generics-domains it looks like this:
 
  i-v-o.net
 
  I've added the following to both ops2.ivo.net.mc and ops2.ivo.net.submit.mc
 
  MASQUERADE_DOMAIN(`ops2.i-v-o.net')
  FEATURE(`genericstable', `hash -o /etc/mail/genericstable')
  GENERICS_DOMAIN_FILE(`/etc/mail/generics-domains')
  FEATURE(`allmasquerade')
  FEATURE(`masquerade_envelope')
  FEATURE(`masquerade_entire_domain')
 
 Remove the -o option from genericstable.  It means that the generics
 table lookup is optional and Sendmail will continue posting the
 messages (probably using the wrong address, as you've discovered) even
 if there's something wrong with your generics table setup
 
  I've dome a make ; make install ; make restart sequence in /etc/mail, and
  I've set up muut to use a From of [EMAIL PROTECTED] Yet still the message
  (sent from the machine to the machine) contains:
 
 Setting up mutt is unnecessary.
 

Thanks for the help.

I thought I'd post as to what I did to finally get this working. 

I had to add the following:

MASQUERADE_AS(i-v-o.net)

Acording to the sendmail docs this needs to be a space seperated list of
domains that we are willing to masqureade for. In addition it appears that
if the domsin(s) you want to masquerade for are ont in
/etc/mail/local-host-names  m then you need to add:

MASQUERADE_DOMAIN(i-v-o.net)

It appears as though this is possible to replace with  something like:

GENERICS_DOMAIN_FILE(`/etc/mail/generics-domains')

Although I have not gotten this to work yet.

Having said all of that, this may just be a hack to get things working.
I'll try your sugestions this evening. I hope they work, as I'd prefer to
have all of this stored in a file that is read at runtime, as oposed to one
that I have to restart sendmail to read (the .mc/.cf files).

Thansk again for the adivce, I'll report back (if only for the archives)
after I try the above sugestiosn.


-- 
U.S. Encouraged by Vietnam Vote - Officials Cite 83% Turnout Despite Vietcong 
Terror 
- New York Times 9/3/1967
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Sendmail genericstable help, please

2005-09-18 Thread stan
I;m trying to set up a 4.11 STABLE machine to act as the mailhost
for a buch of virtual doamins. I'm planning on having users on
the machien for each user/doaimn pair. I've got the incoming 
side of this working well with the Sendmail that came with 4.11
(Not the ports version if it matters). I've done this with
/etc/mail/virtusertable and appropruate configuration in the.mc file.

Now, I;m trying to get the outbound side of it workig, and I'm
not having much luck. 

I've crate /etc/mail/genericstable and it looks like this:

stan[EMAIL PROTECTED]

I'v also created /etc/mail/generics-domains it looks like this:

i-v-o.net

I've added the following to both ops2.ivo.net.mc and ops2.ivo.net.submit.mc

MASQUERADE_DOMAIN(`ops2.i-v-o.net')
FEATURE(`genericstable', `hash -o /etc/mail/genericstable')
GENERICS_DOMAIN_FILE(`/etc/mail/generics-domains')
FEATURE(`allmasquerade')
FEATURE(`masquerade_envelope')
FEATURE(`masquerade_entire_domain')


I've dome a make ; make install ; make restart sequence in /etc/mail, and
I've set up muut to use a From of [EMAIL PROTECTED] Yet still the message
(sent from the machine to the machine) contains:

From [EMAIL PROTECTED] Sun Sep 18 15:44:49 2005
Return-Path: [EMAIL PROTECTED]
Received: from ops2.ivo.net (localhost [127.0.0.1])
by ops2.ivo.net (8.13.1/8.13.1) with ESMTP id j8IJijnE070566
for [EMAIL PROTECTED]; Sun, 18 Sep 2005 15:44:45 -0400 (EDT)
(envelope-from [EMAIL PROTECTED])

ops2.ivo.net is the machines real name.

Can anyone see anything I'm doing wrong, this is driving me nuts :-(


-- 
U.S. Encouraged by Vietnam Vote - Officials Cite 83% Turnout Despite Vietcong 
Terror 
- New York Times 9/3/1967
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]