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....
- 06-10-2008 #1Just 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.
- 06-10-2008 #2
this should do it, use in your /etc/postfix/main.cf
you could also just close the port access, which would be the best method instead of exposing it to the net.Code:inet_interfaces = localhost
- 06-10-2008 #3Just Joined!
- Join Date
- May 2008
- Posts
- 7
re
not work
with this configuration, users is able to send mails outisde, i want to send only to localhost, how i do thisCode: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
- 06-13-2008 #4Just Joined!
- Join Date
- Feb 2008
- Location
- France - Paris
- Posts
- 18
You can try mydestination = localhost


Reply With Quote
