I'm working on an application which only accepts email coming from the google mail servers. The challenge is, the applications doesn't know, upfront, which domains to accept and so i need Postfix to accept email from all domains.
- This is the end point for all email, no relaying being done
Only accept mail from the Google Apps servers:
dig txt _spf.google.com | grep spf |format_spf.py > /etc/postfix/network_table mynetworks = hash:/etc/postfix/network_table smtpd_client_restrictions = permit_mynetworks, reject
Email not accepted by any local alias is being forwarded to a catch-all user where it is processed by procmail:
luser_relay = catch-all-user mailbox_command = /usr/bin/procmail -Y -a $DOMAIN
At this point i can't accept mail without a table containing the domains:
mydestination = hash:/etc/postfix/mydestination_table
So, how can i get rid of the "mydestination" table?
Thanks.