mailman and subdomain does not work

Discussion in 'Installation/Configuration' started by rafael-ec, Apr 19, 2012.

  1. rafael-ec

    rafael-ec New Member

    Hi friends,

    I have two sites one www.cayambelibre.com running elgg working ok. I created another one running mailman listas.cayambelibre.com. I created a mailing list call pruebas@listas.cayambelibre.com using ispconfig 3.0.4.2

    I can configure the mailing list, I can add users to the mailing list. The users would receive the notifications that they are welcome to the list. The problem comes when I try to send a mail. pruebas@listas.cayambelibre.com is converted to pruebas@cayambelibre.com and I receive a mail calling that error:

    In the mail log I get this at the moment I send the mail. I don't see any "pruebas@listas.cayambelibre.com" or "pruebas@cayambelibre.com" in the logs:

    Code:
    Apr 18 21:42:02 li333-246 postfix/pickup[20791]: 4A4D62B338: uid=0 from=<root>
    Apr 18 21:42:02 li333-246 postfix/cleanup[22225]: 4A4D62B338: message-id=<20120419024202.4A4D62B338@hosting.cayambelibre.com>
    Apr 18 21:42:02 li333-246 postfix/qmgr[2859]: 4A4D62B338: from=<root@cayambelibre.com>, size=1082, nrcpt=1 (queue active)
    Apr 18 21:42:02 li333-246 postfix/smtpd[22229]: connect from localhost.localdomain[127.0.0.1]
    Apr 18 21:42:02 li333-246 postfix/smtpd[22229]: BA07E2B337: client=localhost.localdomain[127.0.0.1]
    Apr 18 21:42:02 li333-246 postfix/cleanup[22225]: BA07E2B337: message-id=<20120419024202.4A4D62B338@hosting.cayambelibre.com>
    Apr 18 21:42:02 li333-246 postfix/qmgr[2859]: BA07E2B337: from=<root@cayambelibre.com>, size=1572, nrcpt=1 (queue active)
    Apr 18 21:42:02 li333-246 postfix/smtpd[22229]: disconnect from localhost.localdomain[127.0.0.1]
    Apr 18 21:42:02 li333-246 amavis[21619]: (21619-04) Passed CLEAN, <root@cayambelibre.com> -> <root@cayambelibre.com>, Message-ID: <20120419024202.4A4D62B338@hosting.cayambelibre.com>, mail_id: SJtxdoDj2FqM, Hits: -0.001, size: 1079, queued_as: BA07E2B337, 437 ms
    Apr 18 21:42:02 li333-246 postfix/smtp[22230]: BA07E2B337: to=<root@cayambelibre.com>, relay=mail.cayambelibre.com[173.230.147.82]:25, delay=0.02, delays=0.01/0/0/0, dsn=5.1.1, status=bounced (host mail.cayambelibre.com[173.230.147.82] said: 550 5.1.1 <root@cayambelibre.com>: Recipient address rejected: User unknown in virtual mailbox table (in reply to RCPT TO command))
    Apr 18 21:42:02 li333-246 postfix/smtp[22226]: 4A4D62B338: to=<root@cayambelibre.com>, orig_to=<root>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.49, delays=0.04/0/0.01/0.44, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=21619-04, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as BA07E2B337)
    Apr 18 21:42:02 li333-246 postfix/qmgr[2859]: 4A4D62B338: removed
    Apr 18 21:42:02 li333-246 postfix/cleanup[22225]: BE5042B33A: message-id=<20120419024202.BE5042B33A@hosting.cayambelibre.com>
    Apr 18 21:42:02 li333-246 postfix/bounce[22231]: BA07E2B337: sender non-delivery notification: BE5042B33A
    Apr 18 21:42:02 li333-246 postfix/qmgr[2859]: BE5042B33A: from=<>, size=3762, nrcpt=1 (queue active)
    Apr 18 21:42:02 li333-246 postfix/qmgr[2859]: BA07E2B337: removed
    Apr 18 21:42:02 li333-246 postfix/smtp[22230]: BE5042B33A: to=<root@cayambelibre.com>, relay=mail.cayambelibre.com[173.230.147.82]:25, delay=0.01, delays=0/0/0/0, dsn=5.1.1, status=bounced (host mail.cayambelibre.com[173.230.147.82] said: 550 5.1.1 <root@cayambelibre.com>: Recipient address rejected: User unknown in virtual mailbox table (in reply to RCPT TO command))
    Apr 18 21:42:02 li333-246 postfix/qmgr[2859]: BE5042B33A: removed
    
    So I try to create a mailling list using mailman interface, there I get an unknown virtual host error.

    I created the domain in the mailserver and I added the mailling list to that domain.

    Hope I can some help from you guys.

    Best regards,

    Rafael
     
  2. rafael-ec

    rafael-ec New Member

    I guess that postconf -n output would be useful:

    Code:
    alias_database = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases
    alias_maps = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases
    append_dot_mydomain = no
    biff = no
    body_checks = regexp:/etc/postfix/body_checks
    broken_sasl_auth_clients = yes
    config_directory = /etc/postfix
    content_filter = amavis:[127.0.0.1]:10024
    header_checks = regexp:/etc/postfix/header_checks
    html_directory = /usr/share/doc/postfix/html
    inet_interfaces = all
    inet_protocols = all
    mailbox_size_limit = 0
    mime_header_checks = regexp:/etc/postfix/mime_header_checks
    mydestination = hosting.cayambelibre.com, localhost, localhost.localdomain
    myhostname = hosting.cayambelibre.com
    mynetworks = 127.0.0.0/8 [::1]/128
    myorigin = /etc/mailname
    nested_header_checks = regexp:/etc/postfix/nested_header_checks
    owner_request_special = no
    proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps
    readme_directory = /usr/share/doc/postfix
    receive_override_options = no_address_mappings
    recipient_delimiter = +
    relay_domains = mysql:/etc/postfix/mysql-virtual_relaydomains.cf
    relay_recipient_maps = mysql:/etc/postfix/mysql-virtual_relayrecipientmaps.cf
    relayhost = 
    smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
    smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
    smtpd_client_message_rate_limit = 100
    smtpd_client_restrictions = check_client_access mysql:/etc/postfix/mysql-virtual_client.cf
    smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, check_recipient_access mysql:/etc/postfix/mysql-virtual_recipient.cf, reject_unauth_destination
    smtpd_sasl_auth_enable = yes
    smtpd_sasl_authenticated_header = yes
    smtpd_sender_restrictions = check_sender_access mysql:/etc/postfix/mysql-virtual_sender.cf
    smtpd_tls_cert_file = /etc/postfix/smtpd.cert
    smtpd_tls_key_file = /etc/postfix/smtpd.key
    smtpd_tls_security_level = may
    smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
    smtpd_use_tls = yes
    transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
    virtual_alias_domains = 
    virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, proxy:mysql:/etc/postfix/mysql-virtual_email2email.cf, hash:/var/lib/mailman/data/virtual-mailman
    virtual_gid_maps = static:5000
    virtual_mailbox_base = /var/vmail
    virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
    virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
    virtual_transport = maildrop
    virtual_uid_maps = static:5000
    
    
    
    BTW I don't how important is this, but the virtual listas.cayambelibre.com created for apache does not have a www subdomain

    Regards,

    Rafael
     
  3. rafael-ec

    rafael-ec New Member

    I guess the error has nothing to do with subdomain as I try with a different domain. Here my bounce mail:

    So it has to do with virtual mailbox table I guess. Is this a known bug for the version of ISP config I am using?

    Regards,

    Rafael
     
  4. till

    till Super Moderator

    Have you added "listas.cayambelibre.com" as email domain in ispconfig?

    This can not work. Delete the list you created in mailman and create it in ispconfig instead.
     
  5. rafael-ec

    rafael-ec New Member

    Yes I created the domain listas.cayambelibre.com in ispconfig mailserver configuration. It is needed to create a mailing list in ispconfig web interface.

    Regards,


    Rafael
     
  6. falko

    falko Super Moderator

    Did you install mailman before ISPConfig or afterwards?
     
  7. rafael-ec

    rafael-ec New Member

    Before for testing and then I purged mailman from my debian installation. Perhaps there are some configuration files out there that need to be deleted. I can purge and reinstall mailman again if you suggest that.

    Thank you very much.

    Rafael
     
  8. falko

    falko Super Moderator

    I suggest that (now that mailman is installed) you update ISPConfig to the latrst version. This will also reconfigure mailman.
     
  9. rafael-ec

    rafael-ec New Member

    Well, I just updated to the latest version, but I keep having the same issue.

    I got this messages in the update:

    Code:
    Restarting Mailman master qrunner: mailmanctlWaiting...done.
    .
    [Mon Apr 23 20:46:51 2012] [warn] The ScriptAlias directive in /etc/apache2/sites-enabled/mailman.conf at line 4 will probably never match because it overlaps an earlier ScriptAlias.
    [Mon Apr 23 20:46:51 2012] [warn] The Alias directive in /etc/apache2/sites-enabled/mailman.conf at line 6 will probably never match because it overlaps an earlier Alias.
    [Mon Apr 23 20:46:51 2012] [warn] The Alias directive in /etc/apache2/sites-enabled/mailman.conf at line 8 will probably never match because it overlaps an earlier Alias.
    [Mon Apr 23 20:46:52 2012] [warn] The ScriptAlias directive in /etc/apache2/sites-enabled/mailman.conf at line 4 will probably never match because it overlaps an earlier ScriptAlias.
    [Mon Apr 23 20:46:52 2012] [warn] The Alias directive in /etc/apache2/sites-enabled/mailman.conf at line 6 will probably never match because it overlaps an earlier Alias.
    [Mon Apr 23 20:46:52 2012] [warn] The Alias directive in /etc/apache2/sites-enabled/mailman.conf at line 8 will probably never match because it overlaps an earlier Alias.
    
    But that is a message in Apache and has nothing to do with postfix or mailman :( and the webserver works ok.

    Regards,

    Rafael
     
  10. falko

    falko Super Moderator

    What's the output of
    Code:
    grep prueba /etc/passwd
    ?
     
  11. rafael-ec

    rafael-ec New Member

    nothing. :(.
     
  12. falko

    falko Super Moderator

    That's good - I was thinking that you have a system user with that name, but that's not the case. :)

    Do prueba@cayambelibre.com and/or prueba@cayambecalidad.org exist in your ISPConfig database?
     
  13. rafael-ec

    rafael-ec New Member

    In the table mail_mailinglist I have the values:

    domain: listas.cayambelibre.com
    listname: prueba


    regards,

    Rafael
     
  14. falko

    falko Super Moderator

  15. rafael-ec

    rafael-ec New Member

    No I don't. However I have in another server the domain @cayambelibre.com that is planned to be migrated to ispconfig soon. The domain @listas.cayambelibre.com is hosted in the ispconfig server and the dns are working ok.

    regards,

    Rafael
     
  16. falko

    falko Super Moderator

    Do the accounts exist on the other server, and do the MX records for both domains point to the other server?
     
  17. rafael-ec

    rafael-ec New Member

    cayambelibre.com in one server and listas.cayambelibre.com is in ISP config server. Both MX are configured correctly and the mailing list was working on the same server before I installed ISPconfig.

    Just to refresh on of the previous post in this thread. I use to have mailman for testing on this same server before using ISPconfig and it was working ok. Then I insatlled ISP config, I purged mailman and installed again. I suspect something was left on and maybe it was not completly purged. How can I uninstall completly mailman and then configure it with ispconfig. I see no one else is having this issue so maybe it was something left between this to installs.

    Regards,

    Rafael
     
  18. rafael-ec

    rafael-ec New Member

    BTW, I do have the need to run the main mail server on one server that I don't manage and mailman in my server with a subdomain like lists.domain.com. Have don that before, but now with ISP config.

    Thanks for your help Falko.

    Regards,

    Rafael
     
  19. falko

    falko Super Moderator

    Run
    Code:
    apt-get purge mailman
    Then
    Code:
    apt-get install mailman
    and update ISPConfig - download the latest ISPConfig, unpack it, go to the install folder and run
    Code:
    php update.php
     
  20. rafael-ec

    rafael-ec New Member

    Sorry for the delay. After purgin mailman I got this message:

    Code:
    apt-get purge mailman
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following package was automatically installed and is no longer required:
      pwgen
    Use 'apt-get autoremove' to remove them.
    The following packages will be REMOVED:
      mailman*
    0 upgraded, 0 newly installed, 1 to remove and 68 not upgraded.
    After this operation, 45.0 MB disk space will be freed.
    Do you want to continue [Y/n]? y
    (Reading database ... 42089 files and directories currently installed.)
    Removing mailman ...
    Stopping Mailman master qrunner: mailmanctl.
    Purging configuration files for mailman ...
    insserv: warning: script 'K01jailkit' missing LSB tags and overrides
    insserv: warning: script 'jailkit' missing LSB tags and overrides
    Purging files from ucf database ............................................... done.
    dpkg: warning: while removing mailman, directory '/var/lib/mailman/data' not empty so not removed.
    dpkg: warning: while removing mailman, directory '/var/lib/mailman/qfiles' not empty so not removed.
    dpkg: warning: while removing mailman, directory '/var/lib/mailman/archives/private' not empty so not removed.
    dpkg: warning: while removing mailman, directory '/var/lib/mailman/archives/public' not empty so not removed.
    dpkg: warning: while removing mailman, directory '/var/lib/mailman/archives' not empty so not removed.
    dpkg: warning: while removing mailman, directory '/var/lib/mailman/lists' not empty so not removed.
    dpkg: warning: while removing mailman, directory '/var/lib/mailman' not empty so not removed.
    Processing triggers for man-db ...
    
    So without fear
    Code:
    rm -rf /var/lib/mailman
    
    So as far I know bye now I have no mailman in my server. Now lets install it.
    Code:
     apt-get install mailman
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Suggested packages:
      lynx listadmin
    The following NEW packages will be installed:
      mailman
    0 upgraded, 1 newly installed, 0 to remove and 68 not upgraded.
    Need to get 0 B/9,657 kB of archives.
    After this operation, 45.0 MB of additional disk space will be used.
    Preconfiguring packages ...
    Selecting previously deselected package mailman.
    (Reading database ... 38198 files and directories currently installed.)
    Unpacking mailman (from .../mailman_1%3a2.1.13-5_i386.deb) ...
    Processing triggers for man-db ...
    Setting up mailman (1:2.1.13-5) ...
    Looking for enabled languages (this may take some time) ... done.
    Installing site language en ............................................ done.
    Configuring mailman for domain cayambelibre.com ...
    Upgrading from version 0x0 to 0x2010df0
    getting rid of old source files
    insserv: warning: script 'K01jailkit' missing LSB tags and overrides
    insserv: warning: script 'jailkit' missing LSB tags and overrides
    Site list for mailman missing (looking for list named 'mailman'). ... (warning).
    Please create it; until then, mailman will refuse to start. ... (warning).
    
    Not sure about those warnings related to jailkit.

    I already had the latest version of ispconfig installed. So I run the update sript to reconfigure the services:
    Code:
     apt-get install mailman
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Suggested packages:
      lynx listadmin
    The following NEW packages will be installed:
      mailman
    0 upgraded, 1 newly installed, 0 to remove and 68 not upgraded.
    Need to get 0 B/9,657 kB of archives.
    After this operation, 45.0 MB of additional disk space will be used.
    Preconfiguring packages ...
    Selecting previously deselected package mailman.
    (Reading database ... 38198 files and directories currently installed.)
    Unpacking mailman (from .../mailman_1%3a2.1.13-5_i386.deb) ...
    Processing triggers for man-db ...
    Setting up mailman (1:2.1.13-5) ...
    Looking for enabled languages (this may take some time) ... done.
    Installing site language en ............................................ done.
    Configuring mailman for domain cayambelibre.com ...
    Upgrading from version 0x0 to 0x2010df0
    getting rid of old source files
    insserv: warning: script 'K01jailkit' missing LSB tags and overrides
    insserv: warning: script 'jailkit' missing LSB tags and overrides
    Site list for mailman missing (looking for list named 'mailman'). ... (warning).
    Please create it; until then, mailman will refuse to start. ... (warning).
    
    Mailman does not start
    Code:
    /etc/init.d/mailman restart
    Restarting Mailman master qrunner: mailmanctlPID unreadable in: /var/run/mailman/mailman.pid
    [Errno 2] No such file or directory: '/var/run/mailman/mailman.pid'
    Is qrunner even running?
    Site list is missing: mailman
     failed!
    
    So I repeat the prosudre, purge mailman, delete /var/lib/mailman and install it again. This time I created the mailman list:
    Code:
    newlist mailman
    Enter the email of the person running the list: rafael@bonifaz.ec
    Initial mailman password: 
    To finish creating your mailing list, you must edit your /etc/aliases (or
    equivalent) file by adding the following lines, and possibly running the
    `newaliases' program:
    
    ## mailman mailing list
    mailman:              "|/var/lib/mailman/mail/mailman post mailman"
    mailman-admin:        "|/var/lib/mailman/mail/mailman admin mailman"
    mailman-bounces:      "|/var/lib/mailman/mail/mailman bounces mailman"
    mailman-confirm:      "|/var/lib/mailman/mail/mailman confirm mailman"
    mailman-join:         "|/var/lib/mailman/mail/mailman join mailman"
    mailman-leave:        "|/var/lib/mailman/mail/mailman leave mailman"
    mailman-owner:        "|/var/lib/mailman/mail/mailman owner mailman"
    mailman-request:      "|/var/lib/mailman/mail/mailman request mailman"
    mailman-subscribe:    "|/var/lib/mailman/mail/mailman subscribe mailman"
    mailman-unsubscribe:  "|/var/lib/mailman/mail/mailman unsubscribe mailman"
    
    Hit enter to notify mailman owner...
    
    
    I am not going to edit the alias, because as far as I know ispconfig does that job. So I run update.php again.

    Now I only get some warnings related to apache:

    Code:
    PID unreadable in: /var/run/mailman/mailman.pid
    [Errno 2] No such file or directory: '/var/run/mailman/mailman.pid'
    Is qrunner even running?
    Restarting Mailman master qrunner: mailmanctl.
    [Tue May 08 11:26:51 2012] [warn] The ScriptAlias directive in /etc/apache2/sites-enabled/mailman.conf at line 4 will probably never match because it overlaps an earlier ScriptAlias.
    [Tue May 08 11:26:51 2012] [warn] The Alias directive in /etc/apache2/sites-enabled/mailman.conf at line 6 will probably never match because it overlaps an earlier Alias.
    [Tue May 08 11:26:51 2012] [warn] The Alias directive in /etc/apache2/sites-enabled/mailman.conf at line 8 will probably never match because it overlaps an earlier Alias.
    [Tue May 08 11:26:52 2012] [warn] The ScriptAlias directive in /etc/apache2/sites-enabled/mailman.conf at line 4 will probably never match because it overlaps an earlier ScriptAlias.
    [Tue May 08 11:26:52 2012] [warn] The Alias directive in /etc/apache2/sites-enabled/mailman.conf at line 6 will probably never match because it overlaps an earlier Alias.
    [Tue May 08 11:26:52 2012] [warn] The Alias directive in /etc/apache2/sites-enabled/mailman.conf at line 8 will probably never match because it overlaps an earlier Alias.
    Restarting web server: apache2 ... waiting .
    Restarting ftp server: Running: /usr/sbin/pure-ftpd-mysql-virtualchroot -l mysql:/etc/pure-ftpd/db/mysql.conf -l pam -D -b -u 1000 -Y 1 -O clf:/var/log/pure-ftpd/transfer.log -E -A -8 UTF-8 -H -B
    Update finished.
    
    Now I can start mailman. Time to test. I create the same mailing list as before and add some mails. Send the first mail and I get the mail bounce again :(. What could I possible be doing wrong?

     

Share This Page