Hi
As I understod your posting I'd simply make an addenment to mydestination:

mydestination = $myhostname, localhost.$mydomain, localhost, lists.telemar.se

Copying your suggestion and I have my aliases files in my alias_maps:
alias_maps = hash:/etc/aliases, hash:/usr/local/mailman/data/aliases
and
alias_database = hash:/etc/aliases, hash:/usr/local/mailman/data/aliases

I got one step further mailman is found as a local user causing my server to accept the mail but the redirection fails.
I must have mixed up domain or something

Error message in the bounced email corresponds to my maillogs error:

<"|/usr/local/mailman/mail/mailman post mailman"@apollo.telemar.se> (expanded
   from <mail...@lists.telemar.se>): unknown user:
   "|/usr/local/mailman/mail/mailman post mailman"

Im confused here...

/GH


mouss skrev:
Göran Höglund a écrit :
Hi
Sorry my fault! I did change the original listname and made an error in
the snippet.
Here is the correct errorlog:
Feb  8 13:06:05 apollo postfix/smtpd[12115]: NOQUEUE: reject: RCPT from
unknown[172.16.254.4]: 550 5.1.1 <test_...@telemar.se>: Recipient
address rejected: User unknown in virtual mailbox table;
from=<goran.hogl...@telemar.se> to=<test_...@telemar.se> proto=ESMTP
helo=<[192.168.0.4]>

And my alias file looks as below. It seems as if Postfix ignores this
alias file or do I need to define a mailbox for the list, I have lost
track here.


alias_maps is only used for local domains (domains listed in
mydestination). but telemar.se is listed in virtual_mailbox_maps.

if you want to use alias_maps, you need to use virtual_alias_maps to
pass the addresses to a domain that is listed in mydestination
(localhost?). note that virtual won't execute commands, so you can't
simply put your aliases in virtual_alias_maps. you need a two-steps
process (first to pass mail to a local domain, and then use alias_maps
to exec mailman).

a better idea is to use a dedicated domain, say lists.telemar.se. you
can then simply list this domain in mydestination, and alias_maps will
do the rest.



Reply via email to