HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   mailman and subdomain does not work (http://www.howtoforge.com/forums/showthread.php?t=56981)

rafael-ec 19th April 2012 04:58

mailman and subdomain does not work
 
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:

Quote:

<pruebas@cayambelibre.com> (expanded from <pruebas@listas.cayambelibre.com>):
host mail.cayambelibre.com[173.230.147.82] said: 550 5.1.1
<pruebas@cayambelibre.com>: Recipient address rejected: User unknown in
virtual mailbox table (in reply to RCPT TO command)
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

rafael-ec 19th April 2012 05:24

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

rafael-ec 19th April 2012 05:32

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

Quote:

<prueba@cayambelibre.com> (expanded from <prueba@cayambecalidad.org>): host
mail.cayambelibre.com[173.230.147.82] said: 550 5.1.1
<prueba@cayambelibre.com>: Recipient address rejected: User unknown in
virtual mailbox table (in reply to RCPT TO command)

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

till 19th April 2012 08:42

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

Quote:

So I try to create a mailling list using mailman interface, there I get an unknown virtual host error.
This can not work. Delete the list you created in mailman and create it in ispconfig instead.

rafael-ec 19th April 2012 13:11

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

falko 20th April 2012 15:28

Did you install mailman before ISPConfig or afterwards?

rafael-ec 21st April 2012 03:24

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

falko 21st April 2012 12:07

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

rafael-ec 24th April 2012 03:56

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

falko 24th April 2012 15:16

What's the output of
Code:

grep prueba /etc/passwd
?


All times are GMT +2. The time now is 20:53.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.