Postfix - accepting mails for a concrete recipient
hi,
we have a Postfix mail relay server. Not to be an open relay we use check_sender_access restriction with allowed sender domains. Is there a way how to configure postfix to accept mails from any domain for a specified recipient? Something like Code:
if (recipient_address==host@mydomain.com) accept; Thanks for your help. |
It has been a while so it might have changed but
back when I knew something about postfix you would have a Code:
check_recipient_access (file pointer here, typically hash:/path/to/recipient/filter) Code:
host@mydomain.com OK if you search for check_recipient_access in the docs you'll probably get what you need |
Thanks for your answer but does not work for me.
I set this in main.cf Code:
#check_sender_access regexp:/etc/postfix/reg_sender_access Code:
/host@mydomain.com/ OK Code:
Sender address rejected: Access denied (in reply to RCPT TO command) What I need is some kind of exception for a recipient address. Thanks. |
concrete?
are you in the building business? |
sorry for my english. I mean for an explicitly specified recipient. Thanks for correction.
|
The problem there is the order - since you put the sender restrictions first, the system never gets to the recipient rules.
You need to look at what is in your reg_sender_access to make it a bit less drastic - you can always catch some of these in rules later, in the more general ruleset |
this page is really useful
http://jimsun.linxnet.com/misc/postfix-anti-UCE.txt look for that bit and the examples that follow Quote:
|
Thanks iphigenie. It works now. I put the checks into smtpd_recipient_restrictions
Code:
smtpd_recipient_restrictions = Code:
/.*@mydomain.com/ OK Code:
/host@mydomain.com/ OK |
All times are GMT -5. The time now is 08:48 AM. |