LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-26-2008, 09:29 AM   #1
3dd13
LQ Newbie
 
Registered: Mar 2008
Distribution: Slackware
Posts: 2

Rep: Reputation: 0
Postfix recipient restrictions problem


need to set postfix to reject incoming mail where recipient is not in my list of company emails
(no, there is no local delivery, server acts as MX for company domains)

this is the part of main.cf which is questionable

smtpd_recipient_restrictions =
permit_mynetworks
reject_unauth_destination
check_recipient_access hash:/etc/postfix/odobreno
reject


file odobreno contains list of addresses that should be valid in rcpt to command

user@domain OK
user@domain2 OK

and so on...

problem is that I can't test this on a working server .
when I telnet from localhost any rcpt to works...

current mailing system is like this

MX
transport_map
|
|
|
qmail_on_hosting_1 qmail_on_hosting_2 qmail_on_hosting_3

i got the list of emails from hosting servers in one file and I need postfix to check it...

hope that I made a good explanation of the stuff that I need
 
Old 03-26-2008, 10:12 AM   #2
msound
Member
 
Registered: Jun 2003
Location: SoCal
Distribution: CentOS
Posts: 465

Rep: Reputation: 30
This may be a stupid question but have you left white space in front of your smtpd_recipient_restrictions arguments?

So instead of:
Code:
smtpd_recipient_restrictions =
permit_mynetworks
reject_unauth_destination
check_recipient_access hash:/etc/postfix/odobreno
reject
it should really look like:
Code:
smtpd_recipient_restrictions =
    permit_mynetworks
    reject_unauth_destination
    check_recipient_access hash:/etc/postfix/odobreno
    reject
 
Old 03-26-2008, 10:20 AM   #3
3dd13
LQ Newbie
 
Registered: Mar 2008
Distribution: Slackware
Posts: 2

Original Poster
Rep: Reputation: 0
actually it is like that... forum script translated blank spaces to ""

how could I test it ?
 
  


Reply



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 whitelisting by recipient address? carlmarshall Linux - Server 4 12-07-2006 07:12 AM
Postfix on RH 9 'No Recipient' in queue rangert Linux - Server 3 10-25-2006 11:57 AM
postfix problem:: Internet recipient cannot receive mail adrianmak Linux - Software 2 08-16-2005 05:30 AM
postfix and php : recipient unknown jodaog Linux - Software 1 03-13-2005 09:25 AM
postfix - wrong recipient address iliah Linux - Networking 2 09-26-2004 09:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:36 PM.

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