PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Logiciels d'hébergement > comp.mail.sendmail > Receiving email with a DMZ mailhub
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.mail.sendmail Configuring and using the BSD sendmail agent.

Receiving email with a DMZ mailhub

Réponse
 
LinkBack Outils de la discussion
Vieux 13/09/2006, 20h20   #1
davekaas@aol.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Receiving email with a DMZ mailhub


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

  Réponse avec citation
Vieux 13/09/2006, 21h32   #2
davekaas@aol.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Receiving email with a DMZ mailhub


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

  Réponse avec citation
Vieux 13/09/2006, 22h55   #3
Peter Boosten
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Receiving email with a DMZ mailhub

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
  Réponse avec citation
Vieux 14/09/2006, 06h13   #4
Peter Boosten
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Receiving email with a DMZ mailhub

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
  Réponse avec citation
Vieux 14/09/2006, 07h09   #5
Per Hedeland
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Receiving email with a DMZ mailhub

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
  Réponse avec citation
Vieux 25/09/2006, 19h21   #6
ddkaas@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Receiving email with a DMZ mailhub

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


  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 23h08.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,11956 seconds with 14 queries