-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 On Tue, 2024-02-06 at 22:31 +0530, Akshay Pushparaj via Postfix-users wrote: > I would like to know if i can configure postfix to forward mails if > user not found in local recipient table. > > Usecase: > > Users are split between LDAP in my server and a remote server for > example.com. So if u...@example.com is not present in LDAP it must > forward to remote server.
My questions would be: 1. How much control do you have over the remote server? 2. Is the remote server using LDAP to identify users too? 3. If you have little to no control and LDAP is not being used, then how co-operative are the administrators of the remote server? In that case that 1 and 2 are true then slave the remote LDAP into a separate directory on your local server and adjust the postfix configuration to take it into account accordingly. Other than that if you can get a valid list of delivery addresses from the remote server scripting a solution to turn it into a valid map for forwarding is relatively easy. If the administrators of the remote host are not being helpful, and wanting you to split the hosting of addresses for a domain you can either convince them to become helpful, or hand the the entire domain to them. I will admit that at a previous employer I had problems getting some of the other sysadmins to accept that with the postfix/dovecot/ldap setup we had we could have mail delivered to specific office servers (we had one mail server in the head office that everyone, including offices in foreign locations, accessed via IMAP - we frequently got complaints from overseas that email access was "slow". My argument was that local delivery of their email would fix this and could be done via existing VPN tunnels we had - some people mistook that as local storage with remote dovecot using NFS to access mail stores). - -- Nikolai Lusan Email: niko...@lusan.id.au -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEVfd4GW6z4nsBxdLo4ZaDRV2VL6QFAmXMxaUACgkQ4ZaDRV2V L6Sp2g//dpIlHe9Ns6bnDIKHtzUyETlbIaBKa7sWig0lL3kJjQm2I8dtV47ObVve +RDWnELgRGSlXmzUrKKClgifqHotK9XuBdzhQgknxAMjJDirCWJxTYgWmXhiE8TW vnMty3D0yiHCOZsvuoBT5T5poWeysK5OHzvkoEXRl7KSyw+0/uwvocERwRw0bc98 JO4ludmvHwXw/YlcWLF7D2FwSE483pG0QZhWlU/A/g1rGrHPAy8NyYSi+ikQvB12 lOoQVbfS+3rFTn1y4vH0GJ5h6cNqPkm6l9bKfa4ghZ/Xhm5oURTiuLkn5MtRTtiv EFMNTQICOYbM9HvfmUmVRwAWnXKDQh8TojBgVwx+KGox4rXWXTnEWdBF/fLVWlOU VL4PjiryvOBji2aySt9KRh3FJ4FMm1JvQum8XAcj6X3ribbOQEmJMKeqMms3HkaI bOyuCowD3WGjzBJvZkkhl0lJKzDgvcppXtHXPU2qtiOdDVNwsXt2JExlIzVw7tch 0QRSB0EDopkj2H6D5dbMasprMSReyYqaMVIfng1YUljFZ99EdZEJcRede291qG3y uAg4GhKjN96UrsjaxhtEpmFR9y8lC85owX1o8R5B3sLuSIq2IDi1ak5hdC9MGIZg GSepC+SmZ+ET2vyiJJqW7c8ol8nXY+kSPpSiFFl/wsRQKl49Kzc= =fo1T -----END PGP SIGNATURE----- _______________________________________________ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org