Hello, Let me ask you if SmartList will work in my Postfix installation. I'm using postfix with virtual mailboxes, as you can see in the howto i did used: http://www.howtoforge.com/virtual_users_and_domains_with_postfix_debian_etch I'm using Debian and so far i tried to install smartlist package with "apt" and configure postfix, i couldn't send e-mails to any list created with smartlist. At main.cf, i made the following change: virtual_alias_maps = mysql:/etc/postfix/mysql-virtual_email2email.cf, hash:/etc/aliases At /etc/aliases, ######################################################################## testlist: "|/var/list/.bin/flist testlist" testlist-request: "|/var/list/.bin/flist testlist-request" ######################################################################## As i try to send mail to testlist@mydomain.br, i get the response from MAILER-DAEMON@mydomain.br: The mail system <"|/var/list/.bin/flist testlist"@mydomain.br> (expanded from <testlist@mydomain.br>): unknown user: "|/var/list/.bin/flist testlist@mydomain.br" Well, i just kicked the ball, don't have any idea if it's supposed to work or not. thanks, Paiva
On Fri, Feb 01, 2008 at 04:59:34PM -0300, Lineu Paiva wrote:
Let me ask you if SmartList will work in my Postfix installation. I'm using ...
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual_email2email.cf, hash:/etc/aliases
You cannot use virtual_alias_maps for piping to commands. use something like alias_maps = hash:/etc/mail/listaliases, hash:/etc/mail/otheraliases and put in /etc/mail/listaliases: ######################################################################## testlist: "|exec /var/list/.bin/flist testlist" testlist-request: "|exec /var/list/.bin/flist testlist-request" ######################################################################## If you change owner:group of /etc/mail/listaliases to the smartlist user flist will run as smartlist user and you are able to remove setuid/setgid permissions on flist. Werner
Thanks you all. As Werner said, i cutted off the "hash:/etc/aliases" from $virtual_alias_maps in main.cf, and inserted it in $alias_maps instead. I also found the text below in the postfix documentation. As it suggests, i made one virtual_alias_maps entry like: testlist@mydomain.br : testlist@localhost So the "local(8)" daemon could receive messages destinated to testlist@mydomain.br. And then i changed /etc/aliases with the smartlist configuration lines. It works fine now. Thanks, Lineu Paiva The Postfix documentation: The examples that were given above already show how to direct mail for virtual postmaster addresses to a local postmaster. You can use the same method to direct mail for any address to a local or remote address. There is one major limitation: virtual aliases and virtual mailboxes can't directly deliver to mailing list managers such as majordomo. The solution is to set up virtual aliases that direct virtual addresses to the local delivery agent: /etc/postfix/main.cf: virtual_alias_maps = hash:/etc/postfix/virtual /etc/postfix/virtual: listname-request@example.com listname-request listname@example.com listname owner-listname@example.com owner-listname /etc/aliases: listname: "|/some/where/majordomo/wrapper ..." owner-listname: ... listname-request: ... On Feb 5, 2008 11:17 PM, Werner Reisberger <werner@pure.ch> wrote:
On Fri, Feb 01, 2008 at 04:59:34PM -0300, Lineu Paiva wrote:
Let me ask you if SmartList will work in my Postfix installation. I'm using ...
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual_email2email.cf, hash:/etc/aliases
You cannot use virtual_alias_maps for piping to commands.
use something like
alias_maps = hash:/etc/mail/listaliases, hash:/etc/mail/otheraliases and put in /etc/mail/listaliases:
######################################################################## testlist: "|exec /var/list/.bin/flist testlist" testlist-request: "|exec /var/list/.bin/flist testlist-request" ########################################################################
If you change owner:group of /etc/mail/listaliases to the smartlist user flist will run as smartlist user and you are able to remove setuid/setgid permissions on flist.
Werner
participants (2)
-
Lineu Paiva
-
Werner Reisberger