Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am trying to setup Postfix on CentOS. I have configured it to use my Google apps account to send mails.

Lets say I have configured Postfix to use user1@mydomain.net, which is a Google apps email. I can now successfully make Postfix send an email from user1@mydomain.net to xyz@gmail.com. But when I try to send an email to user2@mydomain.net, I get an error 'Recipient address rejected: User unknown in local recipient table'. i.e. I am unable to send mails to *@mydomain.net which is the domain my Postfix is configured for.

I understand that Postfix checks local_recipient_maps and rejects if the local_recipient is not found. Now my question, what is the right setting I need to add to disable this local recipient check?

Relevant links: LOCAL_RECIPIENT_README smtpd_recipient_restrictions

share|improve this question
    
Postfix shouldn't be the destination for mydomain.net if that's a Google Apps account. What exactly are you trying to do with Postfix? –  mgorven May 23 '12 at 0:57
    
@mgroven That just stuck me, so I changed mydestination from mydomain.net, its working fine now. Thanks. –  superxor May 23 '12 at 19:51

1 Answer 1

up vote 1 down vote accepted

By configuring Postfix with mydomain.net as a destination, you are telling it that it is the final endpoint for that domain (and therefore it should try to deliver it locally). If this domain is hosted at Google Apps it should not be specified as a destination for Postfix.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.