View Single Post
Old 16th February 2009
DNAeon DNAeon is offline
Shell Scout
 
Join Date: Sep 2008
Location: Bulgaria
Posts: 138
Default

I'm looking in /var/log/maillog, /usr/local/mailman/logs/ - nothing interesting

I'll start from the beginning - this is what I did to configure mailman

1. installed mailman from ports, enabled mailman in /etc/rc.conf
2. downloaded http://www.gurulabs.com/downloads/po...mailman-2.1.py and moved it to /usr/local/mailman/, made it executable and owned by mailman user and group

3. edited postfix-to-mailman.py script
Code:
! #/usr/local/bin/python

MailmanHome = “/usr/local/mailman“; # Mailman home directory.
MailmanOwner = “postmaster@mydomain.net"; # Postmaster and abuse mail recipient.
4. /usr/local/etc/postfix/main.cf
Code:
relay_domains = proxy:mysql:/usr/local/etc/postfix mysql_relay_domains_maps.cf lists.mydomain.net

# TRANSPORT MAP
#
# See the discussion in the ADDRESS_REWRITING_README document.
transport_maps = hash:/usr/local/etc/postfix/transport
vacation_destination_recipient_limit = 1
mailman_destination_recipient_limit = 1
5. echo 'lists.mydomain.net mailman:' >> /usr/local/etc/postfix/transport

6. added this to /usr/local/etc/postfix/master.cf
Code:
mailman unix - n n - - pipe
  flags=FR user=mailman:mailman
  argv=/usr/local/mailman/postfix-to-mailman.py ${nexthop} ${user}
7. postmap /usr/local/etc/postfix/transport
8. postfix reload

9. created the vhosts in apache - everything works fine now

10.
Code:
#cd /usr/local/mailman
#bin/mmsitepass
New site password: mailman_password
Again to confirm password: mailman_password
11.
Code:
#bin/newlist
Enter the name of the list: mailman
Enter the email of the person running the list: admin@mydomain.net
Initial mailman password: list_password
12. echo "add_virtualhost('lists.mydomain.net','lists.mydom ain.net')" >> /usr/local/mailman/Mailman/mm_cfg.py

13. /usr/local/etc/rc.d/mailman start

14.
Code:
#cd /usr/local/mailman
#bin/genaliases
15. this is what i've added to /etc/aliases and then ran newaliases
Code:
## test mailing list
test:              "|/usr/local/mailman/mail/mailman post test"
test-admin:        "|/usr/local/mailman/mail/mailman admin test"
test-bounces:      "|/usr/local/mailman/mail/mailman bounces test"
test-confirm:      "|/usr/local/mailman/mail/mailman confirm test"
test-join:         "|/usr/local/mailman/mail/mailman join test"
test-leave:        "|/usr/local/mailman/mail/mailman leave test"
test-owner:        "|/usr/local/mailman/mail/mailman owner test"
test-request:      "|/usr/local/mailman/mail/mailman request test"
test-subscribe:    "|/usr/local/mailman/mail/mailman subscribe test"
test-unsubscribe:  "|/usr/local/mailman/mail/mailman unsubscribe test"

## mailman mailing list
mailman:              "|/usr/local/mailman/mail/mailman post mailman"
mailman-admin:        "|/usr/local/mailman/mail/mailman admin mailman"
mailman-bounces:      "|/usr/local/mailman/mail/mailman bounces mailman"
mailman-confirm:      "|/usr/local/mailman/mail/mailman confirm mailman"
mailman-join:         "|/usr/local/mailman/mail/mailman join mailman"
mailman-leave:        "|/usr/local/mailman/mail/mailman leave mailman"
mailman-owner:        "|/usr/local/mailman/mail/mailman owner mailman"
mailman-request:      "|/usr/local/mailman/mail/mailman request mailman"
mailman-subscribe:    "|/usr/local/mailman/mail/mailman subscribe mailman"
mailman-unsubscribe:  "|/usr/local/mailman/mail/mailman unsubscribe mailman"
16. this is what i've added to /usr/local/etc/postfix/relay_recipients
Code:
test@lists.mydomain.net OK
test-admin@lists.mydomain.net OK
test-bounces@lists.mydomain.net OK
test-confirm@lists.mydomain.net OK
test-join@lists.mydomain.net OK
test-leave@lists.mydomain.net OK
test-owner@lists.mydomain.net OK
test-request@lists.mydomain.net OK
test-subscribe@lists.mydomain.net OK
test-unsubscribe@lists.mydomain.net OK
mailman@lists.mydomain.net OK
mailman-admin@lists.mydomain.net OK
mailman-bounces@lists.mydomain.net OK
mailman-confirm@lists.mydomain.net OK
mailman-join@lists.mydomain.net OK
mailman-leave@lists.mydomain.net OK
mailman-owner@lists.mydomain.net OK
mailman-request@lists.mydomain.net OK
mailman-subscribe@lists.mydomain.net OK
mailman-unsubscribe@lists.mydomain.net O
17. postmap /usr/local/etc/postfix/relay_recipients
18. edited /usr/local/etc/postfix/main.cf
Code:
relay_recipient_maps = proxy:mysql:/usr/local/etc/postfix/mysql_virtual_mailbox_maps.cf, hash:/usr/local/etc/postfix/relay_recipients
19. postfix reload

20. I have these lines in my /etc/pf.conf file on the gateway
Code:
# --- services running on the webserver ---
WEB_SERVICES = "{ 25 80 110 143 443 465 993 995 }

# --- redirect web traffic (http, https, mail, etc.) to the internal web server ---
rdr on $ext_if proto { tcp udp } from any to $ext_if port $WEB_SERVICES -> $webserver

# --- pass incoming web traffic (http, https, mail, etc.) ---
pass in quick on $ext_if inet proto { tcp udp } from any to $webserver port $WEB_SERVICES keep state
Now everything works fine.. from the internal network only. When I send a mail to the test@lists.mydomain.net the message is distributed to the subscribers successfully.

But when I send a message from the outside (gmail, yahoo, etc.) to test@lists.mydomain.net - the message is never to be delivered.

I think I'm missing something in my config. I checked it, double checked and found nothing wrong with

PS.: Sorry for the long post.
__________________
"I never think of the future. It comes soon enough." - A.E

Useful links: FreeBSD Handbook | FreeBSD Developer's Handbook | The Porter's Handbook | PF User's Guide | unix-heaven.org
Reply With Quote