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 31st January 2013, 23:40
cFoo cFoo is offline
Junior Member
 
Join Date: Jan 2013
Posts: 6
Thanks: 1
Thanked 1 Time in 1 Post
Default Postfix, Dovecot blocking Mailman user unknown error

I've followed the perfect installation instructions. I used Till's instructions to get Postfix and Dovecot to play nicely. Postfix and Dovecot are running, mailman web interface works, user subscription via the GUI works, it's all great.. except. It seems like Dovecot is blocking emails destined for mailman.


From the log, the email doesn't get to mailman. It appeared to die here:
Jan 31 14:14:25 scorponok dovecot: auth-worker: mysql(localhost): Connected to database dbispconfig
Jan 31 14:14:25 scorponok postfix/pipe[29977]: A99271D00BB1: to=<mylist@mydomain.xx>, relay=dovecot, delay=0.37, delays=0.04/0.02/0/0.31, dsn=5.1.1, status=bounced (user unknown)

dovecot.conf
Code:
protocols = imap pop3
auth_mechanisms = plain login
disable_plaintext_auth = no
log_timestamp = "%Y-%m-%d %H:%M:%S "
mail_privileged_group = vmail
ssl_cert = </etc/postfix/smtpd.cert
ssl_key = </etc/postfix/smtpd.key
passdb {
  args = /etc/dovecot/dovecot-sql.conf
  driver = sql
}
userdb {
  args = /etc/dovecot/dovecot-sql.conf
  driver = sql
}
plugin {
  quota = dict:user::file:/var/vmail/%d/%n/.quotausage
  sieve=/var/vmail/%d/%n/.sieve
}
service auth {
  unix_listener /var/spool/postfix/private/auth {
    group = postfix
    mode = 0660
    user = postfix
  }
  unix_listener auth-userdb {
    group = vmail
    mode = 0600
    user = vmail
  }
  user = root
}
protocol imap {
  mail_plugins = quota imap_quota
}
protocol pop3 {
  pop3_uidl_format = %08Xu%08Xv
  mail_plugins = quota
}
protocol lda {
  mail_plugins = sieve quota
}
postfix/main.cf
Code:
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
append_dot_mydomain = no
readme_directory = /usr/share/doc/postfix

# TLS parameters
smtpd_tls_cert_file = /etc/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.key
smtpd_use_tls = yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

myhostname = mydomain.host.xx
alias_maps = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases
alias_database = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases
myorigin = /etc/mailname
mydestination = mydomain.host.xx, localhost, localhost.localdomain
relayhost =
mynetworks = 127.0.0.0/8 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
html_directory = /usr/share/doc/postfix/html
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_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
virtual_mailbox_base = /var/vmail
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_sasl_authenticated_header = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, check_recipient_access mysql:/etc/postfix/mysql-virtual_recipient.cf, reject_unauth_destination
smtpd_tls_security_level = may
transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
relay_domains = mysql:/etc/postfix/mysql-virtual_relaydomains.cf
relay_recipient_maps = mysql:/etc/postfix/mysql-virtual_relayrecipientmaps.cf
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
smtpd_sender_restrictions = check_sender_access mysql:/etc/postfix/mysql-virtual_sender.cf
smtpd_client_message_rate_limit = 100
maildrop_destination_concurrency_limit = 1
maildrop_destination_recipient_limit = 1
virtual_transport = dovecot
header_checks = regexp:/etc/postfix/header_checks
mime_header_checks = regexp:/etc/postfix/mime_header_checks
nested_header_checks = regexp:/etc/postfix/nested_header_checks
body_checks = regexp:/etc/postfix/body_checks
owner_request_special = no
dovecot_destination_recipient_limit = 1
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
content_filter = amavis:[127.0.0.1]:10024
receive_override_options = no_address_mappings
message_size_limit = 0
mm_cfg
Code:
from Defaults import *
MAILMAN_SITE_LIST = 'mailman'
DEFAULT_URL_PATTERN = 'http://%s/cgi-bin/mailman/'
PRIVATE_ARCHIVE_URL = '/cgi-bin/mailman/private'
IMAGE_LOGOS         = '/images/mailman/'
DEFAULT_EMAIL_HOST = 'mydomain.xx'
DEFAULT_URL_HOST   = 'mydomain.xx'
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
DEFAULT_SERVER_LANGUAGE = 'en'
USE_ENVELOPE_SENDER    = 0
DEFAULT_SEND_REMINDERS = 0
MTA='Postfix'
POSTFIX_STYLE_VIRTUAL_DOMAINS = ['mydomain.xx', 'mydomain2.xx']
Reply With Quote
Sponsored Links
  #2  
Old 1st February 2013, 11:48
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 35,777
Thanks: 821
Thanked 5,332 Times in 4,184 Posts
Default

Are the aliases for the mailing list which xou created in ispconfig listed in /var/lib/mailman/data/aliases ?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 1st February 2013, 21:30
cFoo cFoo is offline
Junior Member
 
Join Date: Jan 2013
Posts: 6
Thanks: 1
Thanked 1 Time in 1 Post
Default

Yes they are. All the stanza are there.
Reply With Quote
  #4  
Old 3rd February 2013, 23:04
cFoo cFoo is offline
Junior Member
 
Join Date: Jan 2013
Posts: 6
Thanks: 1
Thanked 1 Time in 1 Post
Default Solved

The problem is in the relay=dovecot part. What you need to do is configure your mailman transport to use local instead of dovecot. Otherwise, dovecot cannot resolve your virtual domain.

Follow these instructions:
http://wiki.list.org/display/DOC/Mai...+or+other+maps

Ignore point number (2).
Quote:
Do not put the domains in Postfix virtual_alias_domains, and do not put hash:/path/to/data/virtual_mailman in virtual_alias_maps.
You need to tell Postfix to map your virtual alias maps. So keep it in there.
Reply With Quote
The Following User Says Thank You to cFoo For This Useful Post:
till (4th February 2013)
  #5  
Old 5th February 2013, 16:10
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 35,777
Thanks: 821
Thanked 5,332 Times in 4,184 Posts
Default

Where exactly did you change the "relay=dovecot" to local? Or do you mean to set virtual_transport = dovecot to virtual_transport = local in main.cf?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.

Last edited by till; 5th February 2013 at 16:12.
Reply With Quote
  #6  
Old 5th February 2013, 16:21
cFoo cFoo is offline
Junior Member
 
Join Date: Jan 2013
Posts: 6
Thanks: 1
Thanked 1 Time in 1 Post
Default

Adding the script /etc/mailman/virtual_to_transport
Code:
#!/bin/sh
sed -r -e 's/(^[^#]\S+\s+).+$/\1local/' $1 > /var/lib/mailman/data/transport-mailman
/usr/sbin/postmap /var/lib/mailman/data/transport-mailman
When you run bin/genaliases mailman will generate the transport-mailman with a list aliases mapping to local. Example,

Code:
...
# STANZA START: test
# CREATED: Sun Feb  3 12:49:43 2013
test@yourdomain.net              local
test-admin@yourdomain.net        local
test-bounces@yourdomain.net      local
test-confirm@yourdomain.net      local
..
Why this works is beyond my understanding of mailman. If you look at virtual-mailman that mapping should have picked up the mapping and directs the mail to aliases which then delivers to mailman. With the transport-mailman mapping, essentially you are sending it to the local system and letting the local services deal with it. I think.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPConfig 3 system installation script Mark_NL Tips/Tricks/Mods 12 7th March 2014 06:30
Webmail problems with only one domain? compner Installation/Configuration 14 16th February 2010 16:59
Undelivered Mail Returned to Sender Error202 General 5 7th May 2009 11:14
Apache2 Freezes celtic Server Operation 31 28th May 2007 17:18
configuring IPTABLES firewall adityavpratap HOWTO-Related Questions 9 27th May 2006 21:42


All times are GMT +2. The time now is 06:38.


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