Re: How to restrict outgoing email to local/company domain only?



Taylor, Grant wrote:
I don't know if it is possible or not to get Sendmail to NOT relay for the host that it is running on. If this is possible, you could remove all domains from class w (local-host-names) and add your domain name to class R (relay-domains). This way, your Test / Development / QA servers would only relay for your main domain name. This would work if your main domain name is not housed on the systems you want restricted. The idea being to allow your systems to relay ONLY for your production domain. Though I'm not sure how to get Sendmail to not relay for local host. Does any one have any suggestions?

Something else you could do is configure your Test / Development / QA servers to SmartHost via your production mail server. Configure your mail server to not relay (class R) for the Test / Development / QA servers. This will allow your Test / Development / QA servers to send email to your domain via the SmartHost but reject any thing not to your domain when your local MTAs talk to the SmartHost. Thus when the local MTA tries to hand off the message to the SmartHost, the SmartHost should reject the message with a permanent error thus causing your local MTA to bounce the original message.



Grant. . . .
.



Relevant Pages

  • smtp relay to internal but not external!
    ... We are connecting to a windows 2000 exchange server and using it to ... ASP page is using its own SMTP virtual server to relay the email to ... our exchange server via it being specified as the smart host. ... Specify the Hosts That You Want to Openly Relay to All ...
    (microsoft.public.exchange.connectivity)
  • smtp relay to internal ok but not external!
    ... We are connecting to a windows 2000 exchange server and using it to ... ASP page is using its own SMTP virtual server to relay the email to ... our exchange server via it being specified as the smart host. ... Specify the Hosts That You Want to Openly Relay to All ...
    (microsoft.public.inetserver.iis.activeserverpages)
  • CDONTS sends internally but not externally
    ... We are connecting to a windows 2000 exchange server and using it to ... ASP page is using its own SMTP virtual server to relay the email to ... our exchange server via it being specified as the smart host. ... Specify the Hosts That You Want to Openly Relay to All ...
    (microsoft.public.inetserver.asp.components)
  • Re: Sendmail Question
    ... if you did not define your ISP's SMTP server as your SMART_HOST ... mail host to be able to send him a mail. ... What's partly right in your opinion is the idea, that the receiving MTA ... either authenticate against that ISP's mail host to be able to relay ...
    (Fedora)
  • Re: Postfix Update for Suse 8.2
    ... > |someone tries to relay mail through my system. ... but after some time it starts delivering the mails. ... > the criteria for deciding if the mail from a trusted host or trusted ... status=deferred (Name service error for name=localhost type=A: ...
    (alt.os.linux.suse)