Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 19th April 2012, 04:58
rafael-ec rafael-ec is offline
Member
 
Join Date: Jul 2007
Posts: 57
Thanks: 15
Thanked 6 Times in 4 Posts
Default 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
Reply With Quote
Sponsored Links
  #2  
Old 19th April 2012, 05:24
rafael-ec rafael-ec is offline
Member
 
Join Date: Jul 2007
Posts: 57
Thanks: 15
Thanked 6 Times in 4 Posts
Default

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
Reply With Quote
  #3  
Old 19th April 2012, 05:32
rafael-ec rafael-ec is offline
Member
 
Join Date: Jul 2007
Posts: 57
Thanks: 15
Thanked 6 Times in 4 Posts
Default

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
Reply With Quote
  #4  
Old 19th April 2012, 08:42
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,430
Thanks: 813
Thanked 5,208 Times in 4,084 Posts
Default

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.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
rafael-ec (24th April 2012)
  #5  
Old 19th April 2012, 13:11
rafael-ec rafael-ec is offline
Member
 
Join Date: Jul 2007
Posts: 57
Thanks: 15
Thanked 6 Times in 4 Posts
Default

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
Reply With Quote
  #6  
Old 20th April 2012, 15:28
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,721 Times in 2,562 Posts
Default

Did you install mailman before ISPConfig or afterwards?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
rafael-ec (24th April 2012)
  #7  
Old 21st April 2012, 03:24
rafael-ec rafael-ec is offline
Member
 
Join Date: Jul 2007
Posts: 57
Thanks: 15
Thanked 6 Times in 4 Posts
Default

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
Reply With Quote
  #8  
Old 21st April 2012, 12:07
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,721 Times in 2,562 Posts
Default

I suggest that (now that mailman is installed) you update ISPConfig to the latrst version. This will also reconfigure mailman.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
rafael-ec (24th April 2012)
  #9  
Old 24th April 2012, 03:56
rafael-ec rafael-ec is offline
Member
 
Join Date: Jul 2007
Posts: 57
Thanks: 15
Thanked 6 Times in 4 Posts
Default

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
Reply With Quote
  #10  
Old 24th April 2012, 15:16
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,721 Times in 2,562 Posts
 
Default

What's the output of
Code:
grep prueba /etc/passwd
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 10:40.


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