permit_mynetworks + check_recipient_access

This is a discussion on permit_mynetworks + check_recipient_access within the mailing.postfix.users forums, part of the Mail Servers and Related category; I suspect this has been answered before as it must be a common config, but I can not find any ...


Go Back   Usenet Forums > Mail Servers and Related > mailing.postfix.users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-20-2005
postfix@it.usyd.edu.au
 
Posts: n/a
Default permit_mynetworks + check_recipient_access



I suspect this has been answered before as it must be a common config, but
I can not find any info... sorry if its an FAQ

I want postfix to act as an outgoing SMTP for my local hosts (mynetworks)
and also relay for some domains (relay_domains) for everyone.

So I tried:

smtpd_recipient_restrictions =
permit_mynetworks,
check_recipient_access hash:recipient_access

But this does not check validity of recipients when mail is coming from
localhosts.

If you reverse them:

smtpd_recipient_restrictions =
check_recipient_access hash:recipient_access,
permit_mynetworks

But this will prevent local hosts from sending to domains other than my
relay domains (eg, local hosts sending to foobar.com.)


Note: My hash:recipient_access list has all _valid_ accounts for my
relay_domains.

How are people doing this kind of thing?

--
Adam
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:56 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0