Postfix on Intranet

Discussion in 'HOWTO-Related Questions' started by brom, Aug 10, 2009.

Thread Status:
Not open for further replies.
  1. brom

    brom New Member


    I have the setup of Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 9.04).

    The situation is like this: I need only to work with a local domain ( for the employees send an receive email internally but they should not be able to send emails for an external domain (, just local.

    I played a little with some settings in but no success. I was still able to send emails to an account in from

    Could anyone help me pointing in what is the setting that would make this possible?

    Thanks for your help :)
  2. Rocky

    Rocky New Member

    I believe if you mapped the following to local instead of smtp, then mails should no longer go to the outside world.

    smtp unix - - - - - local
    relay unix - - - - - local

    Post your results.


  3. brom

    brom New Member

    Hey Rocky,

    Thanks for the help :) it worked. no email goes outside and all local gets delivered.

    Now I have an extra question.

    I added a line to to have a template for the mails bounced:

    bounce_template_file = /etc/postfix/

    For now all emails to the outside are staying in the queue, will postfix bounce it or delete it form queue and send back to the user an email with the bounce template? or I will ahve to do it manually? is there a way to not do it manually? :p

    Thanks again for the help!
  4. Rocky

    Rocky New Member

  5. brom

    brom New Member

    Thank you once again :)

    I think the topic can be closed.
Thread Status:
Not open for further replies.

Share This Page