View Single Post
  #6  
Old 5th February 2013, 16:21
cFoo cFoo is offline
Junior Member
 
Join Date: Jan 2013
Posts: 6
Thanks: 1
Thanked 1 Time in 1 Post
Default

Adding the script /etc/mailman/virtual_to_transport
Code:
#!/bin/sh
sed -r -e 's/(^[^#]\S+\s+).+$/\1local/' $1 > /var/lib/mailman/data/transport-mailman
/usr/sbin/postmap /var/lib/mailman/data/transport-mailman
When you run bin/genaliases mailman will generate the transport-mailman with a list aliases mapping to local. Example,

Code:
...
# STANZA START: test
# CREATED: Sun Feb  3 12:49:43 2013
test@yourdomain.net              local
test-admin@yourdomain.net        local
test-bounces@yourdomain.net      local
test-confirm@yourdomain.net      local
..
Why this works is beyond my understanding of mailman. If you look at virtual-mailman that mapping should have picked up the mapping and directs the mail to aliases which then delivers to mailman. With the transport-mailman mapping, essentially you are sending it to the local system and letting the local services deal with it. I think.
Reply With Quote