Find the answer to your Linux question:
Results 1 to 2 of 2
I need to be able to configure sendmail to allow all ip addresses in a subnet to relay email @mydomain.com and I need to allow only specific IP addresses to ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2008
    Posts
    5

    Sendmail Relay


    I need to be able to configure sendmail to allow all ip addresses in a subnet to relay email @mydomain.com and I need to allow only specific IP addresses to be able to relay to the entire internet.

    I tried playing with the /etc/mail/access file but if I set

    x.x.x.x RELAY

    then it can send email anywhere. I need to be able to do something like:

    x.x.x.x RELAY:@MYDOMAIN.COM
    x.x.x.x RELAY:@INTERNET

    something like that..

  2. #2
    Linux Newbie
    Join Date
    Feb 2008
    Location
    Bangalore, India
    Posts
    112
    The /etc/mail/relay-domains file is used to determine domains from which it will relay mail.

    The contents of the relay-domains file should be limited to those domains that can be trusted not to originate spam. By default, this file does not exist.

    Code:
    my-relay-site.com
    Be sure to run the restart sendmail script for these changes to take effect.
    bigunix.blogspot.com
    Registered Linux User: #476440

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •