Hi, I am trying to setup a new postfix server in a location where there is limited internet connectivity. I want local users to send emails to my Postfix server which then relays the emails later on when there is a internet connection (the plan is to put the emails in the hold queue and then trigger the send using postqueue). I want external emails to go into the hold queue whilst internal emails are delivered straight away locally.
Now this setup is fairly straight forward, however here is where it gets trickier. The domains (there might be more then one domain hosted locally) used locally also has other users on the outside server which host more accounts. So the problem I have now is that if someone tries to email us...@domain.com, which is a valid address on the external server, but not defined in the local one, then they get a NDR straight away saying that the user is invalid. So I basically want to use a list of full email addresses to use as local receipients, rather then full domains. So that if someone tries to email us...@domain.com and the email address is not a valid local address then it should then be relayed to the external email server, rather then being discarded. I am using MySQL to store all my settings/users in. Can someone point me in the right direction? I have setup more basic postfix servers before but this is where my knowledge stops. I am currently using Debian Lenny with postfix version 2.5.5-1.1. Best Regards Michele