[opensuse] postfix+mailman configuration problem

Hello, This is opeensuse 11.4 This is an operational mail server supporting multidomain and based on postfix+dovecot+mysql. The virtual domain related config at main.cf is as below [....] alias_maps = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases ######################################### ## virtual domain setting ######################################### virtual_alias_domains = hash:/etc/postfix/virtual virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf,mysql:/etc/postfix/mysql-email2email.cf virtual_gid_maps = static:5000 virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf virtual_transport = dovecot dovecot_destination_recipient_limit = 1 virtual_uid_maps = static:5000 [....] `````````````` I have installed mailman here and to support virtual domain also have the following at /usr/lib/mailman/Mailman/mm_cfg.py [....] DEFAULT_URL_PATTERN = 'http://%s/mailman/' DEFAULT_EMAIL_HOST = 'list.mydomain.com' DEFAULT_URL_HOST = 'list.mydomain.com' MTA = 'Postfix' POSTFIX_ALIAS_CMD = '/usr/sbin/postalias' POSTFIX_MAP_CMD = '/usr/sbin/postmap' DELIVERY_MODULE = 'SMTPDirect' SMTPPORT = '25' add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST) POSTFIX_STYLE_VIRTUAL_DOMAINS = ['list.infoservices.in'] IMAGE_LOGOS = '/mailmanicons/' [....] after reloading postfix and mailman I have created a list and also copy paste the suggested aliases at /etc/aliases and executed "newalias" command. If I send a request to <listname>-request@list.mydomain.com I get an error from postfix as ` ` ` ` Recipient address rejected: User unknown in virtual mailbox table ` ` ` ` Do I need to create all such an account required by mailman? I am confused...... any clue is very much welcome. TIA -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org

On Fri, 2 Sep 2011 17:16:32 +0530 "J. Bakshi" <joydeep@infoservices.in> wrote:
Hello,
This is opeensuse 11.4
This is an operational mail server supporting multidomain and based on postfix+dovecot+mysql. The virtual domain related config at main.cf is as below
[....] alias_maps = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases
######################################### ## virtual domain setting ######################################### virtual_alias_domains = hash:/etc/postfix/virtual virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf,mysql:/etc/postfix/mysql-email2email.cf virtual_gid_maps = static:5000 virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf virtual_transport = dovecot dovecot_destination_recipient_limit = 1 virtual_uid_maps = static:5000 [....] ``````````````
I have installed mailman here and to support virtual domain also have the following at /usr/lib/mailman/Mailman/mm_cfg.py
[....] DEFAULT_URL_PATTERN = 'http://%s/mailman/'
DEFAULT_EMAIL_HOST = 'list.mydomain.com' DEFAULT_URL_HOST = 'list.mydomain.com' MTA = 'Postfix' POSTFIX_ALIAS_CMD = '/usr/sbin/postalias' POSTFIX_MAP_CMD = '/usr/sbin/postmap' DELIVERY_MODULE = 'SMTPDirect' SMTPPORT = '25' add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST) POSTFIX_STYLE_VIRTUAL_DOMAINS = ['list.infoservices.in'] IMAGE_LOGOS = '/mailmanicons/' [....]
after reloading postfix and mailman I have created a list and also copy paste the suggested aliases at /etc/aliases and executed "newalias" command.
If I send a request to <listname>-request@list.mydomain.com I get an error from postfix as
` ` ` ` Recipient address rejected: User unknown in virtual mailbox table ` ` ` `
Do I need to create all such an account required by mailman?
I am confused...... any clue is very much welcome. TIA
and if I add <list>.mydomain.com at mydestination of main.cf I have no problem to send mail ( Don't know if adding it to mydestination is wrong or right). But a new error now `````````````` Command died with status 2: "/usr/lib/mailman/mail/mailman request typo3". Command output: Failure to exec script. WANTED gid 67, GOT gid 65533. `````````` !!!! -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org

On Fri, Sep 02, 2011 at 06:16:01PM +0530, J. Bakshi wrote:
On Fri, 2 Sep 2011 17:16:32 +0530 "J. Bakshi" <joydeep@infoservices.in> wrote:
Hello,
This is opeensuse 11.4
This is an operational mail server supporting multidomain and based on postfix+dovecot+mysql. The virtual domain related config at main.cf is as below
[....] alias_maps = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases
######################################### ## virtual domain setting ######################################### virtual_alias_domains = hash:/etc/postfix/virtual virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf,mysql:/etc/postfix/mysql-email2email.cf virtual_gid_maps = static:5000 virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf virtual_transport = dovecot dovecot_destination_recipient_limit = 1 virtual_uid_maps = static:5000 [....] ``````````````
I have installed mailman here and to support virtual domain also have the following at /usr/lib/mailman/Mailman/mm_cfg.py
[....] DEFAULT_URL_PATTERN = 'http://%s/mailman/'
DEFAULT_EMAIL_HOST = 'list.mydomain.com' DEFAULT_URL_HOST = 'list.mydomain.com' MTA = 'Postfix' POSTFIX_ALIAS_CMD = '/usr/sbin/postalias' POSTFIX_MAP_CMD = '/usr/sbin/postmap' DELIVERY_MODULE = 'SMTPDirect' SMTPPORT = '25' add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST) POSTFIX_STYLE_VIRTUAL_DOMAINS = ['list.infoservices.in'] IMAGE_LOGOS = '/mailmanicons/' [....]
after reloading postfix and mailman I have created a list and also copy paste the suggested aliases at /etc/aliases and executed "newalias" command.
If I send a request to <listname>-request@list.mydomain.com I get an error from postfix as
` ` ` ` Recipient address rejected: User unknown in virtual mailbox table ` ` ` `
Do I need to create all such an account required by mailman?
I am confused...... any clue is very much welcome. TIA
and if I add <list>.mydomain.com at mydestination of main.cf I have no problem to send mail ( Don't know if adding it to mydestination is wrong or right).
But a new error now
`````````````` Command died with status 2: "/usr/lib/mailman/mail/mailman request typo3". Command output: Failure to exec script. WANTED gid 67, GOT gid 65533. ``````````
I had this one too, and it puzzled me forever. You need to call the mailman wrappers from the mailman specific alias file, /var/lib/mailman/data/aliases and NOT from the global /etc/aliases! So paste the mailman snippet into /var/lib/mailman/data/aliases and remove it from /etc/aliases. Ciao, Marcus -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org

On Fri, 2 Sep 2011 14:50:55 +0200 Marcus Meissner <meissner@suse.de> wrote:
On Fri, Sep 02, 2011 at 06:16:01PM +0530, J. Bakshi wrote:
On Fri, 2 Sep 2011 17:16:32 +0530 "J. Bakshi" <joydeep@infoservices.in> wrote:
Hello,
This is opeensuse 11.4
This is an operational mail server supporting multidomain and based on postfix+dovecot+mysql. The virtual domain related config at main.cf is as below
[....] alias_maps = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases
######################################### ## virtual domain setting ######################################### virtual_alias_domains = hash:/etc/postfix/virtual virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf,mysql:/etc/postfix/mysql-email2email.cf virtual_gid_maps = static:5000 virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf virtual_transport = dovecot dovecot_destination_recipient_limit = 1 virtual_uid_maps = static:5000 [....] ``````````````
I have installed mailman here and to support virtual domain also have the following at /usr/lib/mailman/Mailman/mm_cfg.py
[....] DEFAULT_URL_PATTERN = 'http://%s/mailman/'
DEFAULT_EMAIL_HOST = 'list.mydomain.com' DEFAULT_URL_HOST = 'list.mydomain.com' MTA = 'Postfix' POSTFIX_ALIAS_CMD = '/usr/sbin/postalias' POSTFIX_MAP_CMD = '/usr/sbin/postmap' DELIVERY_MODULE = 'SMTPDirect' SMTPPORT = '25' add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST) POSTFIX_STYLE_VIRTUAL_DOMAINS = ['list.infoservices.in'] IMAGE_LOGOS = '/mailmanicons/' [....]
after reloading postfix and mailman I have created a list and also copy paste the suggested aliases at /etc/aliases and executed "newalias" command.
If I send a request to <listname>-request@list.mydomain.com I get an error from postfix as
` ` ` ` Recipient address rejected: User unknown in virtual mailbox table ` ` ` `
Do I need to create all such an account required by mailman?
I am confused...... any clue is very much welcome. TIA
and if I add <list>.mydomain.com at mydestination of main.cf I have no problem to send mail ( Don't know if adding it to mydestination is wrong or right).
But a new error now
`````````````` Command died with status 2: "/usr/lib/mailman/mail/mailman request typo3". Command output: Failure to exec script. WANTED gid 67, GOT gid 65533. ``````````
I had this one too, and it puzzled me forever.
You need to call the mailman wrappers from the mailman specific alias file, /var/lib/mailman/data/aliases and NOT from the global /etc/aliases!
So paste the mailman snippet into /var/lib/mailman/data/aliases and remove it from /etc/aliases.
Ciao, Marcus
I have done as you suggest. Now only /var/lib/mailman/data/aliases has the mapping. But the still the same issue !!! Obviously I have restarted postfix and mailman. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org

On Fri, Sep 02, 2011 at 06:43:30PM +0530, J. Bakshi wrote: ...
I had this one too, and it puzzled me forever.
You need to call the mailman wrappers from the mailman specific alias file, /var/lib/mailman/data/aliases and NOT from the global /etc/aliases!
So paste the mailman snippet into /var/lib/mailman/data/aliases and remove it from /etc/aliases.
Ciao, Marcus
I have done as you suggest. Now only /var/lib/mailman/data/aliases has the mapping. But the still the same issue !!! Obviously I have restarted postfix and mailman.
ls -la /var/lib/mailman/data/aliases -rw-rw---- 1 root mailman 14290 5. Mär 16:47 /var/lib/mailman/data/aliases Check that the group of this file is "mailman". I think this is the trigger ;) Ciao, Marcus -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org

On Fri, 2 Sep 2011 15:14:41 +0200 Marcus Meissner <meissner@suse.de> wrote:
On Fri, Sep 02, 2011 at 06:43:30PM +0530, J. Bakshi wrote: ...
I had this one too, and it puzzled me forever.
You need to call the mailman wrappers from the mailman specific alias file, /var/lib/mailman/data/aliases and NOT from the global /etc/aliases!
So paste the mailman snippet into /var/lib/mailman/data/aliases and remove it from /etc/aliases.
Ciao, Marcus
I have done as you suggest. Now only /var/lib/mailman/data/aliases has the mapping. But the still the same issue !!! Obviously I have restarted postfix and mailman.
ls -la /var/lib/mailman/data/aliases -rw-rw---- 1 root mailman 14290 5. Mär 16:47 /var/lib/mailman/data/aliases
Check that the group of this file is "mailman". I think this is the trigger ;)
OK, now I have the following -rw-rw---- 1 mailman root 1865 Sep 2 11:07 /var/lib/mailman/data/aliases but still the same error :-( -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org

On Fri, Sep 02, 2011 at 07:03:12PM +0530, J. Bakshi wrote:
On Fri, 2 Sep 2011 15:14:41 +0200 Marcus Meissner <meissner@suse.de> wrote:
On Fri, Sep 02, 2011 at 06:43:30PM +0530, J. Bakshi wrote: ...
I had this one too, and it puzzled me forever.
You need to call the mailman wrappers from the mailman specific alias file, /var/lib/mailman/data/aliases and NOT from the global /etc/aliases!
So paste the mailman snippet into /var/lib/mailman/data/aliases and remove it from /etc/aliases.
Ciao, Marcus
I have done as you suggest. Now only /var/lib/mailman/data/aliases has the mapping. But the still the same issue !!! Obviously I have restarted postfix and mailman.
ls -la /var/lib/mailman/data/aliases -rw-rw---- 1 root mailman 14290 5. Mär 16:47 /var/lib/mailman/data/aliases
Check that the group of this file is "mailman". I think this is the trigger ;)
OK, now I have the following
-rw-rw---- 1 mailman root 1865 Sep 2 11:07 /var/lib/mailman/data/aliases
but still the same error :-(
The other way round: chown root:mailman /var/lib/mailman/data/aliases Ciao, Marcus -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org

On Fri, 2 Sep 2011 15:35:30 +0200 Marcus Meissner <meissner@suse.de> wrote:
On Fri, Sep 02, 2011 at 07:03:12PM +0530, J. Bakshi wrote:
On Fri, 2 Sep 2011 15:14:41 +0200 Marcus Meissner <meissner@suse.de> wrote:
On Fri, Sep 02, 2011 at 06:43:30PM +0530, J. Bakshi wrote: ...
I had this one too, and it puzzled me forever.
You need to call the mailman wrappers from the mailman specific alias file, /var/lib/mailman/data/aliases and NOT from the global /etc/aliases!
So paste the mailman snippet into /var/lib/mailman/data/aliases and remove it from /etc/aliases.
Ciao, Marcus
I have done as you suggest. Now only /var/lib/mailman/data/aliases has the mapping. But the still the same issue !!! Obviously I have restarted postfix and mailman.
ls -la /var/lib/mailman/data/aliases -rw-rw---- 1 root mailman 14290 5. Mär 16:47 /var/lib/mailman/data/aliases
Check that the group of this file is "mailman". I think this is the trigger ;)
OK, now I have the following
-rw-rw---- 1 mailman root 1865 Sep 2 11:07 /var/lib/mailman/data/aliases
but still the same error :-(
The other way round:
chown root:mailman /var/lib/mailman/data/aliases
It was there by default and I have changed it to have mailman as owner -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (2)
-
J. Bakshi
-
Marcus Meissner