Find the answer to your Linux question:
Results 1 to 4 of 4
I want to setup postfix only from localhost. When somebody want to send mail outside from localhost, the mail will be rejected....
  1. #1
    Just Joined!
    Join Date
    May 2008
    Posts
    7

    Postfix only localhost

    I want to setup postfix only from localhost. When somebody want to send mail outside from localhost, the mail will be rejected.

  2. #2
    Linux Engineer jledhead's Avatar
    Join Date
    Oct 2004
    Location
    North Carolina
    Posts
    1,077
    this should do it, use in your /etc/postfix/main.cf
    Code:
    inet_interfaces = localhost
    you could also just close the port access, which would be the best method instead of exposing it to the net.

  3. #3
    Just Joined!
    Join Date
    May 2008
    Posts
    7

    re

    not work

    Code:
    myhostname = localhost
    alias_maps = hash:/etc/aliases
    alias_database = hash:/etc/aliases
    myorigin = localhost
    mydestination = $myhostname, localhost.$mydomain, localhost
    relayhost =
    mynetworks = 127.0.0.0/8
    mailbox_command = procmail -a "$EXTENSION"
    mailbox_size_limit = 51200000
    recipient_delimiter = +
    inet_interfaces = localhost
    inet_protocols = ipv4
    with this configuration, users is able to send mails outisde, i want to send only to localhost, how i do this

  4. #4
    Just Joined!
    Join Date
    Feb 2008
    Location
    France - Paris
    Posts
    18
    You can try mydestination = localhost

Posting Permissions

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