Results 1 to 2 of 2
Hi All,
i have this problem:
with my postfix i want that all client that connect to postfix, all mail can be send to a only domain, example: gmail.com
in ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 03-01-2011 #1Just Joined!
- Join Date
- Mar 2011
- Posts
- 2
postfix allow one domain recipient
Hi All,
i have this problem:
with my postfix i want that all client that connect to postfix, all mail can be send to a only domain, example: gmail.com
in main.cf file i have add this rule:
smtpd_recipient_restrictions = permit_mynetworks, hash:/etc/postfix/send_recipient_restriction, reject
and in the send_recipient_restriction file:
/gmail\.com$/ OK ## replaced the domain with original one ##
/./ REJECT
with postmap i have generated db file and restart postfix, but this rule is not applicable. where I wrong?
Thanks!!
- 03-04-2011 #2Just Joined!
- Join Date
- Mar 2011
- Posts
- 2
I have resolv with:
insert in the mail.cf file this roule:
smtpd_recipient_restrictions = reject_unknown_recipient_domain hash:/etc/postfix/recipent_domain, reject
create file /etc/postfix/recipent_domain and write in only the domain that you want accept exemple:
google.com OK
write and run:
postmap /etc/postfix/recipent_domain
and last restart postfix.
done
Bye


Reply With Quote
