LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 08-04-2006, 10:06 AM   #1
doronunu
Member
 
Registered: Dec 2005
Location: Israel
Distribution: used : Ubuntu, Debian, Arch. current : Centos.
Posts: 69

Rep: Reputation: 15
postfix - mynetwork option


if i dont want to restrict any ip or u can say, if i want any ip be able to send from my postfix machine, what should i set in the mynetwork option if i should set it at all. by the way what is the default?
can i restrict only by the domain?
 
Old 08-04-2006, 01:28 PM   #2
Child of Wonder
Member
 
Registered: Jul 2004
Location: Sioux Falls, SD
Distribution: Debian, Ubuntu, Fedora, Red Hat
Posts: 69

Rep: Reputation: 16
You could put in 0.0.0.0/0 but that will make your machine an open relay if it's exposed to the internet. Then you'll get on every blacklist imaginable and all mail sent from your server will be rejected.

Just set up SMTP Auth with SASL.

Should be a guide on how to do it here or search on Google.
 
Old 08-04-2006, 02:56 PM   #3
doronunu
Member
 
Registered: Dec 2005
Location: Israel
Distribution: used : Ubuntu, Debian, Arch. current : Centos.
Posts: 69

Original Poster
Rep: Reputation: 15
im already set sasl. but tnx.
im aware about open relay and other security issues.
 
Old 08-04-2006, 08:55 PM   #4
Berhanie
Senior Member
 
Registered: Dec 2003
Distribution: Fedora
Posts: 1,492

Rep: Reputation: 144Reputation: 144
Quote:
can i restrict only by the domain?
Yes. I suppose you mean the domain which is the reverse lookup of the connection IP.
You'll need to have something like
Code:
smtpd_recipient_restrictions = 
   permit_mynetworks 
   check_client_access hash:/etc/postfix/access_clients
   reject_unauth_destination
This will allow anyone in mynetworks and domains listed in access_clients to send mail anywhere.
See postconf(5) for details. Also take a look at access(5) for access table formats.
I don't see a need to modify mynetworks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix - how do hosted domains download their mail from my postfix franschoek Linux - Software 1 04-01-2006 09:41 PM
rpm have --nodeps option with dpkg is such an option available deepclutch Debian 2 03-26-2006 09:49 PM
xset: unable to open display "mycomputer.mynetwork:0.0" nicolaeancuta Linux - Networking 2 07-13-2005 01:39 AM
Postfix send mail problem(In RH9, kernal 2.4.20, postfix 2.1.5) minor Linux - General 4 07-11-2005 09:12 PM
can't start postfix ./postfix status error jules_fraser Linux - Software 3 12-06-2003 06:33 PM


All times are GMT -5. The time now is 06:04 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration