atack wrote:
Is it possible to create mailinglists with postfix mysql dbmail ?

Sort of...

Or aliases that forward to external email addresses ?

It is. Check the dbmail-adduser manpage and look at the x and f options.

This does work kind of, but dbmail-adduser is a rather simplistic interface for this functionality.

Try querying the aliases table directly.

The deliver_to field normally contains users.user_idnr, but aliases.alias, external addresses, or a comma-separated list of addresses are also valid it seems. If I read pipe.c correctly even domain-forwards are possible here... tested it, it works. So you can do something like:

insert into aliases (alias,deliver_to) values ('[EMAIL PROTECTED]','[EMAIL PROTECTED],[EMAIL PROTECTED]');

or

insert into aliases (alias,deliver_to) values ('@foobar.nl','[EMAIL PROTECTED]');

P.S. comma-separated lists are not treated all too intelligently it seems. The whole list is compared as-is to the alias column, not on a per-adres bases. So if such a list contains an address that would normally be treated as a locally delivered one, the message is still fed back to postfix to be send to all addresses in the list including the local address.

Still cool stuff though, I think.



--
  ________________________________________________________________
  Paul Stevens                                  mailto:[EMAIL PROTECTED]
  NET FACILITIES GROUP                     PGP: finger [EMAIL PROTECTED]
  The Netherlands________________________________http://www.nfg.nl

Reply via email to