Thursday, January 30, 2014

And now for the mailman...

I got this in my maillogs After I got it working
Mailman mail-wrapper: Group mismatch error.  Mailman expected the mail#012wrapper script to be executed as group "mailman", but#012 the system's mail server executed the mail script as#012group "nobody".  Try tweaking the mail server to run the#012script as group "mailman", or re-run configure, #012providing the command line option `--with-mail-gid=nobody'.
Jan 30 16:28:18 list postfix/local[23349]: B67D2C153C: to=<mydomain>, orig_to=<listname>, relay=local, delay=0.2, delays=0.02/0.15/0/0.02, dsn=5.3.0, status=bounced (Command died with status 2:  "/usr/local/mailman/mail/mailman post "listname"". Command output: Group mis match error.  Mailman expected the mail wrapper script to be executed as group "mailman", but the system's mail server executed the mail script as group "nobody".  Try tweaking the mail server to run the script as group "mailman", or re-run configure,  providing the command line option `--with-mail-gid=nobody'. )
this page provided me every thing I needed to get it working.
http://www.list.org/mailman-install/postfix-integration.html

Postfix Centos : inet service cannot be private

Postfix would not listen on external interface port 25
CentOS 5
All my research was saying I should be looking in the main.cf
for the mynetworks = 127.0.0.0/8
I kept changing it it to every thing I could think of, back and forth, resarting postfix nothing would work.
So I changed it one last time to $hostname and it resolved my hostname via DNS... Weird why did it not use the entry in the hosts file?? any way I thought I should look in the master.cf.
So I need to back track a bit.
I had been messing with this for a couple days.
When I first started troubleshooting I got an error in the /var/log/maillog
Jan 30 11:34:45 list postfix/master[20710]: fatal: /etc/postfix/master.cf: line 40: inet service cannot be private
I looked everywhere in master.cf for a something un-commented that might cause this issue.
I found it
"smtp      inet  -       -       n       -       -       smtpd"
I changed the first - to a n and restarted
Got another error that I can not reproduce...
Made another change
"25      inet  n       -       n       -       -       smtpd"
commented out the
#smtp      inet  n       -       n       -       -       smtp"
and post fix started with out error.
But would not listen on external IPs
So that was when I went to the main.cf and back again I am led to the Master.cf.
Went back in un-commented the
"smtp      inet  n       -       n       -       -       smtp"
Started this time no error and could connect port 25 on the external interfaces!!!
had to write what I could remember down before it is gone.
Success feels good until it doesn't...
ME