mailman 403 - ISPConfig 3, Debian 7, nginx

Discussion in 'ISPConfig 3 Priority Support' started by inside83, Mar 9, 2015.

  1. inside83

    inside83 Member HowtoForge Supporter

    Hello,

    I am trying to create a list for all employees of my clients company so that when manager wants to send them all an announcement, he does not have to put everyone's e-mail address individually, but instead he send an e-mail to one address and it gets forwarded to every employee.
    Is mailman the way to go in this situation?
    I have set up new mail list but when I go to: http://vps3.domain.com:8081/cgi-bin/mailman/admin/mail-list-name
    I get 403.
    This is from /var/log/nginx/error.log
    Code:
    2015/03/09 20:07:15 [error] 7840#0: *5154 open() "/var/www/apps/images/mailman/mailman.jpg" failed (2: No such file or directory), client: my.IP.add.ress, server: _, request: "GET /images/mailman/mailman.jpg HTTP/1.1", host: "vps3.domain.com:8081", referrer: "http://vps3.domain.com:8081/cgi-bin/mailman/admin"
    2015/03/09 20:07:15 [error] 7840#0: *5161 open() "/var/www/apps/images/mailman/PythonPowered.png" failed (2: No such file or directory), client: my.IP.add.ress, server: _, request: "GET /images/mailman/PythonPowered.png HTTP/1.1", host: "vps3.domain.com:8081", referrer: "http://vps3.domain.com:8081/cgi-bin/mailman/admin"
    2015/03/09 20:07:15 [error] 7840#0: *5160 open() "/var/www/apps/images/mailman/gnu-head-tiny.jpg" failed (2: No such file or directory), client: my.IP.add.ress, server: _, request: "GET /images/mailman/gnu-head-tiny.jpg HTTP/1.1", host: "vps3.domain.com:8081", referrer: "http://vps3.domain.com:8081/cgi-bin/mailman/admin"
    2015/03/09 20:07:15 [error] 7840#0: *5155 open() "/var/www/apps/images/mailman/debianpowered.png" failed (2: No such file or directory), client: my.IP.add.ress, server: _, request: "GET /images/mailman/debianpowered.png HTTP/1.1", host: "vps3.domain.com:8081", referrer: "http://vps3.domain.com:8081/cgi-bin/mailman/admin"
    2015/03/09 20:11:36 [error] 7843#0: *5256 open() "/var/www/apps/images/mailman/mailman.jpg" failed (2: No such file or directory), client: my.IP.add.ress, server: _, request: "GET /images/mailman/mailman.jpg HTTP/1.1", host: "vps3.domain.com:8081", referrer: "http://vps3.domain.com:8081/cgi-bin/mailman/admin"
    2015/03/09 20:11:36 [error] 7843#0: *5257 open() "/var/www/apps/images/mailman/PythonPowered.png" failed (2: No such file or directory), client: my.IP.add.ress, server: _, request: "GET /images/mailman/PythonPowered.png HTTP/1.1", host: "vps3.domain.com:8081", referrer: "http://vps3.domain.com:8081/cgi-bin/mailman/admin"
    2015/03/09 20:11:36 [error] 7843#0: *5259 open() "/var/www/apps/images/mailman/gnu-head-tiny.jpg" failed (2: No such file or directory), client: my.IP.add.ress, server: _, request: "GET /images/mailman/gnu-head-tiny.jpg HTTP/1.1", host: "vps3.domain.com:8081", referrer: "http://vps3.domain.com:8081/cgi-bin/mailman/admin"
    2015/03/09 20:11:36 [error] 7843#0: *5260 open() "/var/www/apps/images/mailman/debianpowered.png" failed (2: No such file or directory), client: my.IP.add.ress, server: _, request: "GET /images/mailman/debianpowered.png HTTP/1.1", host: "vps3.domain.com:8081", referrer: "http://vps3.domain.com:8081/cgi-bin/mailman/admin"
    2015/03/09 20:26:42 [error] 7843#0: *5456 FastCGI sent in stderr: "Cannot chdir to script directory (/usr/lib/cgi-bin/mailman/admin)" while reading response header from upstream, client: my.IP.add.ress, server: _, request: "GET /cgi-bin/mailman/admin/zaposleni HTTP/1.1", upstream: "fastcgi://unix:/var/run/fcgiwrap.socket:", host: "vps3.domain.com:8081"
    Please help.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    If the company has many employees, then mailman is an option to handle such lists.

    Regarding the error: Which Linux distribution do you use?
     
  3. inside83

    inside83 Member HowtoForge Supporter

    Debian 7
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    I just checked on my debian server and I have a file
    /usr/lib/cgi-bin/mailman/admin.

    Please post the output of:

    ls -la /usr/lib/cgi-bin/mailman/admin
     
  5. inside83

    inside83 Member HowtoForge Supporter

    Here it is:
    Code:
    [email protected]:~# ls -la /usr/lib/cgi-bin/mailman/admin
    -rwxr-sr-x 1 root list 9548 Jun 16  2012 /usr/lib/cgi-bin/mailman/admin
    
     
  6. inside83

    inside83 Member HowtoForge Supporter

  7. till

    till Super Moderator Staff Member ISPConfig Developer

    Most likely there is an additional alias required in nginx directives to load the images from the correct directories. I dont have a nginx + mailman install here at hand at the moment, so I acnt look that up.
     
  8. inside83

    inside83 Member HowtoForge Supporter

    Ok, but what about the 403 error?
     
  9. inside83

    inside83 Member HowtoForge Supporter

    I followed instructions here: https://www.howtoforge.de/forum/threads/nginx-mailman-debian-7.8313/
    beacuse it is the exact same problem (403 displayed (very small in the upper left corner ...)).
    I created a new site as a subdomain and entered this in nginx directives:
    Code:
    location /cgi-bin/mailman {
                   root /usr/lib/;
                   fastcgi_split_path_info (^/cgi-bin/mailman/[^/]*)(.*)$;
                   include /etc/nginx/fastcgi_params;
                   fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                   fastcgi_param PATH_INFO $fastcgi_path_info;
                   fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
                   fastcgi_intercept_errors on;
                   fastcgi_pass unix:/var/run/fcgiwrap.socket;
            }
    
            location ^~ /images/mailman {
                   alias /usr/share/images/mailman;
            }
    
            location /pipermail {
                   alias /var/lib/mailman/archives/public;
                   autoindex on;
            }
    commented out
    Code:
    # fastcgi_param    SCRIPT_FILENAME        $request_filename;
    in /etc/nginx/fastcgi_params
    Then ran /etc/init.d/nginx restart
    and when I go to http://subdomain.domain.com/cgi-bin/mailman I get "ERROR 502 - Bad Gateway!"

    Here is the contents of /var/www/clients/client1/web8/log/error.log
    Code:
    2015/03/13 03:38:11 [error] 31083#0: *12 upstream prematurely closed FastCGI stdout while reading response header from upstream, client: my.IP.add.ress, server: subdomain.domain.com, request: "GET /cgi-bin/mailman HTTP/1.1", upstream: "fastcgi://unix:/var/run/fcgiwrap.socket:", host: "subdomain.domain.com"
    
    Please help.
     
    Last edited: Mar 13, 2015
  10. till

    till Super Moderator Staff Member ISPConfig Developer

    I dont use nginx with mailman, so I cant help you with that issue.
     
  11. inside83

    inside83 Member HowtoForge Supporter

    If you cant, who can?
     
    RHITNL likes this.
  12. till

    till Super Moderator Staff Member ISPConfig Developer

    You can e.g. try to post in a mailman or nginx mailinglist.
     

Share This Page