ISPMan, Postfix Routing & Cyrus Virtual Domains
Pedro Algarvio <[email protected]> Fri, 23 Jun 2006 23:39:51 +0100
| Newsgroups | gmane.comp.isp.ispman.devel |
|---|---|
| Message-ID | <[email protected]> |
Ok someone on the postfix provided another solution. Here's the message contents: --------------------------------------------------------------------------------- On 23/06/06 18:22 +0100, Pedro Algarvio wrote: <snip> > For example, how do I deliver mail to cyrus trough lmtp, without > adding the virtual domains to $mydestination? > My general rule for working with LMTP is to act as if Postfix was merely relaying over the network. relay_domains = example.com transport_maps = hash:/etc/postfix/transport [email protected] lmtp:[192.168.1.1] [email protected] lmtp:[192.168.1.2] .... relay_recipient_maps = hash:/etc/postfix/relay_recipients [email protected] OK [email protected] OK Generating relay_recipient_maps and transport_maps from a single storage table (or directly using them from LDAP via appropriate queries) is left as an exercise. Devdas Bhagat --------------------------------------------------------------------------------- I tried this kind of setup, file based, and it all works, I was even able to test virtual_alias_map. So the current sictuation is: - Every virtual domain will be relayed trough lmtp to the correct host - virtual domains will be defined in relay_domains - Address mapping will be done via relay_recipient_maps - Aliases will be done via virtual_alias_maps, the file based approach I used was mapping [email protected] -> [email protected] What still needs to be figured out is how exacly does the forwarding works because I tried [email protected] -> my_user@my_isp.com in the virtual_alias_maps but postfix actually tries to connect to my_isp.com instead of mail.my_isp.com, but this is probably me that actually does not understand how this works with postfix; Canonical domains also needs some looking into it(did I told you that I'm new to ISPMan/Postfix/Cyrus? :) ) And what definitly needs some look is how exactly are we gonna define the ldap lookups for the transport maps. Every help on the subject is more than welcome. -- Pedro Algarvio __ ___ ___ _______ ___ __ | Y .' _| _ .-----.' _| |_ .-----.----.-----. |. | | _| 1___| _ | _| _|__| _ | _| _ | |. | |__| |____ |_____|__| |____|__|_____|__| |___ | |: 1 | |: 1 | |_____| |::.. . | |::.. . | ufs [AT] ufsoft [DOT] org `-------' `-------' ufs [AT] sapo [DOT] pt Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642