LinuxQuestions.org
Help answer threads with 0 replies.
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
  Search this Thread
Old 04-28-2009, 08:29 PM   #1
allancth
Member
 
Registered: Mar 2009
Posts: 37

Rep: Reputation: 15
Help on Postfix 2.1.5 main.cf


Hi all,

I have totally no idea on how to configure mail servers. I have read several articles and tutorials but it seems I am getting more confused.

There is one mail server up running in my network. But I need to block emails from particular sender/domain because they are sending chunks of emails to some of the users here. How can I configure that?

My main.cf is this:

###################################################################################
### DEFINE OUR SMTPD RESTRICTIONS, RELAY CONTROL, RBL BLOCKING ETC
# HELO restrictions:
smtpd_delay_reject = yes
smtpd_helo_required = yes
smtpd_helo_restrictions =
permit_mynetworks,
permit

# Sender restrictions:
smtpd_sender_restrictions =
permit_mynetworks,
reject_non_fqdn_sender,
reject_unknown_sender_domain,
permit

# Recipient restrictions:
smtpd_recipient_restrictions =
reject_unauth_pipelining,
reject_non_fqdn_sender,
reject_non_fqdn_recipient,
reject_unknown_sender_domain,
reject_unknown_recipient_domain,
permit_sasl_authenticated,
permit_mynetworks,
reject_unauth_destination,
check_sender_access
hash:/etc/postfix/sender_access,
reject_rbl_client zen.spamhaus.org,
reject_rbl_client bl.spamcop.net,
reject_rbl_client list.dsbl.org,
reject_rbl_client cbl.abuseat.org,
reject_rbl_client dnsbl.njabl.org,
permit
# check_recipient_access,


# Additional Configuration
mail_name = Mymailname
bounce_queue_lifetime = 6h
local_recipient_maps =
luser_relay =
mailbox_size_limit = 20480000
message_size_limit = 10240000
default_destination_recipient_limit = 1

# Amavisd-new Configuration
content_filter=smtp-amavis:[127.0.0.1]:10024
smtp-amavis_destination_concurrency_limit=10

Is there a place where I can set the senders/domains parameters? Please help. I am totally out of idea.

Allan
 
Old 04-29-2009, 10:26 AM   #2
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Read up on this line in your config..

check_sender_access hash:/etc/postfix/sender_access,

the file sender_access can be used to 'blacklist' specific mail servers..
 
Old 04-29-2009, 07:08 PM   #3
allancth
Member
 
Registered: Mar 2009
Posts: 37

Original Poster
Rep: Reputation: 15
What about if I want to block some of the users in my domain to send e-mails to specific domains or the same domain but different users?
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix main.cf halvorls Linux - Server 8 09-25-2008 04:03 PM
postfix main.cf and master.cf configuration husseinalbazzar Linux - Newbie 10 03-19-2008 10:18 AM
postfix main.cf file okidokie Linux - Server 1 02-12-2007 06:04 AM
postfix main.cf illtbagu Linux - Software 8 07-21-2003 11:35 PM
POSTFIX main.cf question tuantran Linux - Networking 2 06-16-2002 05:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:04 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration