Tanstaafl wrote: >On 2010-05-03 6:24 PM, Mark Sapiro wrote: > >> So it appears that example.com is a virtual_mailbox_domain. So what's >> in virtual_mailbox_maps (mysql:/etc/postfix/mysql_vmm.cf)? Does >> >> postmap -s mysql:/etc/postfix/mysql_vmm.cf >> >> work? > >No :( is it supposed to? > ># postmap -s mysql:/etc/postfix/mysql_vmm.cf >postmap: fatal: mysql table /etc/postfix/mysql_vmm.cf: sequence >operation is not supported
No, it's not supposed to work, but I didn't know. I don't have any mysql tables. The docs say that -s only works with some database types, but doesnt say which ones, so I suspected it wouldn't work, but didn't know for sure. ># postmap -q listn...@example.com mysql:/etc/postfix/mysql_vam.cf >listn...@myhost.example.com > >which then maps to > ># postmap -q listn...@myhost.example.com >hash:/var/lib/mailman/data/virtual-mailman >listname > >and /var/lib/mailman/data/virtual-mailman is fully populated with these >STANZA's for all lists: > ># STANZA START: listname ># CREATED: Wed Jan 11 18:32:22 2006 >listn...@myhost.example.com listname >etc... > >But this kind of seems backwards to me... or at least, more complicated >than it needs to be. Maybe I initially wanted a virtual setup, but now >realize I only need lists for the one/main domain? <shrug> Here's how it looks to me. It was initially set up with email domain myhost.example.com and that is all fine. It all works as it should. You then decided that you wanted to be able to post to listn...@example.com so you added a virtual_alias_mapping in mysql:/etc/postfix/mysql_vam.cf to map listn...@example.com to listn...@myhost.example.com where it would be further mapped to local listname via Mailman's hash:/var/lib/mailman/data/virtual-mailman The only problem with this is the listname listinfo page, list welcome messages, etc all say post to listn...@myhost.example.com >Anyway, now I guess I just need to know if there's anything broken that >I really need to fix, or at least if it can be simplified. I'm also >thinking long term, for when MM3 is released and upgrade time comes. You can continue to do what you're doing and just change myh...@example.com to lists.example.com, but that means you have to manually maintain the particular mappings from listn...@example.com to listn...@lists.example.com. It would be better to just have the email domain as example.com and have POSTFIX_STYLE_VIRTUAL_DOMAINS = ['example.com'] so mailman creates the virtual-mailman. Then it appears that since mapping listn...@example.com to listn...@myhost.example.com in the current mysql:/etc/postfix/mysql_vam.cf works, you could just remove those mappings from mysql:/etc/postfix/mysql_vam.cf and let the mappings in virtual-mailman do the job. However, read the FAQ at <http://wiki.list.org/x/ZoCj> which I just wrote yesterday. Now I'm not sure whether that is even necessary. Clearly my understanding of Postfix is not complete. In your setup, is example.com a virtual_mailbox_domain (listed in mysql:/etc/postfix/mysql_vmd.cf)? -- Mark Sapiro <m...@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan ------------------------------------------------------ Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org