|
|
|
|
||||||
| comp.mail.sendmail Configuring and using the BSD sendmail agent. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
I have sendmail running on a dmz system and would like to use addresses like user@junk.com. I have an MX record set up for dmz.junk.com and this server can receive messages directly from the Internet. I would now like to forward these messages to an internal email hub (internal.junk.com) that would forward messages to Exchange and other unix systems. I want internal.junk.com to accept messages from dmz.junk.com using the same address, user@junk.com. I have looked at mailertable and virtual domains but it does not seem to work. What am I doing wrong or is there another way to accomplish the same think. Thanks Dave |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
Peter Boosten wrote: > davekaas@aol.com <davekaas@aol.com> wrote: > > > > I have sendmail running on a dmz system and would like to use addresses > > > > > mailertable is the one to use. > But what doesn't work? The forwarding or the receiving? > > -- > http://www.boosten.org > > Mail: peter at boosten dot org The dmz.junk.com recieved the message as user@junk.com. It was then forwarded to internal.junk.com and at that time the message had an address of user@internal.junk.com and not user@junk.com. My guess is that I am missing something simple or made a dumb mistake. Thanks Dave |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
davekaas@aol.com <davekaas@aol.com> wrote:
> > I have sendmail running on a dmz system and would like to use addresses > like user@junk.com. I have an MX record set up for dmz.junk.com and > this server can receive messages directly from the Internet. I would > now like to forward these messages to an internal email hub > (internal.junk.com) that would forward messages to Exchange and other > unix systems. I want internal.junk.com to accept messages from > dmz.junk.com using the same address, user@junk.com. I have looked at > mailertable and virtual domains but it does not seem to work. > > What am I doing wrong or is there another way to accomplish the same > think. > mailertable is the one to use. But what doesn't work? The forwarding or the receiving? -- http://www.boosten.org Mail: peter at boosten dot org |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
davekaas@aol.com <davekaas@aol.com> wrote:
> > The dmz.junk.com recieved the message as user@junk.com. It was then > forwarded to internal.junk.com and at that time the message had an > address of user@internal.junk.com and not user@junk.com. My guess is > that I am missing something simple or made a dumb mistake. > What does your mailertable look like? Mine looks like this: mydomain.xxx <TAB> esmtp:[my.internal.host] (no, I'm not in the porn industry). The <TAB> is important btw. Peter -- http://www.boosten.org Mail: peter at boosten dot org |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
In article <1158179547.360366.322910@e63g2000cwd.googlegroups .com>
"davekaas@aol.com" <davekaas@aol.com> writes: > >Peter Boosten wrote: >> davekaas@aol.com <davekaas@aol.com> wrote: >> > >> > I have sendmail running on a dmz system and would like to use addresses >> >> > >> >> mailertable is the one to use. >> But what doesn't work? The forwarding or the receiving? > >The dmz.junk.com recieved the message as user@junk.com. It was then >forwarded to internal.junk.com and at that time the message had an >address of user@internal.junk.com and not user@junk.com. My guess is >that I am missing something simple or made a dumb mistake. You probably used virtusertable (with an entry inappropriate for this) instead of mailertable. For mailertable lookup to happen, the destination domain must *not* be in /etc/mail/local-host-names or otherwise added to class {w}. (Which means that you need to allow relaying to it e.g. via access db, this isn't allowed based on the mailertable entry alone.) Virtusertable rewrites the envelope recipient address, mailertable does not. --Per Hedeland per@hedeland.org |
|
|
|
#6 |
|
Messages: n/a
Hébergeur: |
My sendmail.mc file is
divert(0)dnl VERSIONID(`$Id: generic-solaris.mc,v 8.13 2001/06/27 21:46:30 gshapiro Exp $') OSTYPE(solaris2)dnl DOMAIN(generic)dnl FEATURE(`relay_entire_domain') FEATURE(`mailertable',`dbm -o -T<TMPF> /etc/mail/mailertable')dnl FEATURE(`access_db', `dbm -o -T<TMPF> /etc/mail/access')dnl FEATURE(`delay_checks')dnl MAILER(local)dnl MAILER(smtp)dnl MASQUERADE_AS(domain.com) define(`confREJECT_MSG', `550 For contact info use www.hanford.gov/communication/phone/')dnl define(`confTO_IDENT',`0s')dnl Thanks Dave Per Hedeland wrote: > In article <1158179547.360366.322910@e63g2000cwd.googlegroups .com> > "davekaas@aol.com" <davekaas@aol.com> writes: > > > >Peter Boosten wrote: > >> davekaas@aol.com <davekaas@aol.com> wrote: > >> > > >> > I have sendmail running on a dmz system and would like to use addresses > >> > >> > > >> > >> mailertable is the one to use. > >> But what doesn't work? The forwarding or the receiving? > > > >The dmz.junk.com recieved the message as user@junk.com. It was then > >forwarded to internal.junk.com and at that time the message had an > >address of user@internal.junk.com and not user@junk.com. My guess is > >that I am missing something simple or made a dumb mistake. > > You probably used virtusertable (with an entry inappropriate for this) > instead of mailertable. For mailertable lookup to happen, the > destination domain must *not* be in /etc/mail/local-host-names or > otherwise added to class {w}. (Which means that you need to allow > relaying to it e.g. via access db, this isn't allowed based on the > mailertable entry alone.) Virtusertable rewrites the envelope recipient > address, mailertable does not. > > --Per Hedeland > per@hedeland.org |
|
![]() |
| Outils de la discussion | |
|
|