Discussion: Sendmail as a gateway
Afficher un message
Vieux 16/01/2007, 17h46   #5
Grant Taylor
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Sendmail as a gateway

Foxbird wrote:
> I've seen plenty of posts on suggestions for making this work, and I've
> got sendmail blindly forwarding all mail for the domain to exchange,
> but I'd like to check the recipient at the boundry. I've tried the
> access map and virtuser methods, and neither of them seem to work for
> this particular instance. In short, sendmail either forwards it like it
> did before, or denies the relay (complaining about a failed name lookup
> of the host I'm using as a test).


What you are wanting to do is configure Sendmail to relay messages for
specific domain(s) to your internal mail server(s).

1) Add the domain(s) that you want to relay messages for to your
relay-domains (class R) file.

2) Add entries in your Access DB for each valid recipient. I.e:
To:valid@domain.tld OK

3) Add a catch all entries for the domain(s) in question to REJECT
messages. I.e:
To:domain.tld REJECT

4) Set up a mailertable entry to tell Sendmail to relay messages for
the domain(s) to the internal mail server(s). I.e:
domain.tld relay:mailbox.domain.tld

5) Remove any stale config from any files not listed above.

This *should* get you the results that you are after.



Grant. . . .

  Réponse avec citation
 
Page generated in 0,04873 seconds with 9 queries